|
|
@@ -4,6 +4,7 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
import com.ruoyi.common.enums.UserRolesType;
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
+import com.ruoyi.common.utils.bean.BeanUtils;
|
|
|
import com.ruoyi.project.bo.ProjectListInput;
|
|
|
import com.ruoyi.project.bo.ProjectTaskListOut;
|
|
|
import com.ruoyi.project.bo.ProjectTaskOut;
|
|
|
@@ -43,15 +44,10 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
@Override
|
|
|
public AjaxResult details(Long id) {
|
|
|
ProjectTask projectTask = projectTaskMapper.selectByPrimaryKey(id);
|
|
|
- ProjectTaskOut out=new ProjectTaskOut();
|
|
|
+ ProjectTaskOut out= new ProjectTaskOut();
|
|
|
+
|
|
|
if (projectTask!=null){
|
|
|
- out.setId(projectTask.getId());
|
|
|
- out.setAid(projectTask.getAid());
|
|
|
- out.setName(projectTask.getName());
|
|
|
- out.setProjectStatus(projectTask.getProjectStatus());
|
|
|
- out.setRemark(projectTask.getRemark());
|
|
|
- out.setCreateTime(projectTask.getCreateTime());
|
|
|
- out.setAdminName(projectTask.getAdminName());
|
|
|
+ BeanUtils.copyBeanProp(out, projectTask);
|
|
|
List<ProjectStaff> projectStaffs = projectStaffMapper.selectBypid(id);
|
|
|
if (!projectStaffs.isEmpty())out.setList(projectStaffs);
|
|
|
return AjaxResult.success(out);
|