|
|
|
@ -11,6 +11,8 @@ import org.jeecg.modules.demo.project.dto.ProjectShenBaoDto; |
|
|
|
|
import org.jeecg.modules.demo.project.entity.Project; |
|
|
|
|
import org.jeecg.modules.demo.project.mapper.ProjectMapper; |
|
|
|
|
import org.jeecg.modules.demo.project.service.IProjectService; |
|
|
|
|
import org.jeecg.modules.demo.projectType.entity.ProjectType; |
|
|
|
|
import org.jeecg.modules.demo.projectType.service.IProjectTypeService; |
|
|
|
|
import org.jeecg.modules.demo.userext.entity.UserExt; |
|
|
|
|
import org.jeecg.modules.demo.userext.service.IUserExtService; |
|
|
|
|
import org.jeecg.modules.system.entity.SysDepart; |
|
|
|
@ -43,10 +45,15 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl |
|
|
|
|
@Autowired |
|
|
|
|
private IUserExtService iUserExtService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IProjectTypeService iProjectTypeService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void save4shenbao(ProjectShenBaoDto dto) { |
|
|
|
|
log.info(">>> the 新增项目审报 reqParams:{}", JSON.toJSONString(dto)); |
|
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// SysDepart sysDepart = new SysDepart();
|
|
|
|
|
DepartExt departExt = new DepartExt(); |
|
|
|
|
// SysUser sysUser = new SysUser();
|
|
|
|
@ -58,9 +65,13 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl |
|
|
|
|
// BeanUtils.copyProperties(dto, sysUser);
|
|
|
|
|
BeanUtils.copyProperties(dto, userExt); |
|
|
|
|
BeanUtils.copyProperties(dto, project); |
|
|
|
|
|
|
|
|
|
project.setSysOrgCode(loginUser.getOrgId()); |
|
|
|
|
//负责人
|
|
|
|
|
project.setProjectCharger(loginUser.getId()); |
|
|
|
|
//申请人待提交
|
|
|
|
|
project.setProjectStatus("5"); |
|
|
|
|
// 预算书不存在
|
|
|
|
|
project.setBudgetStatus("10"); |
|
|
|
|
this.save(project); |
|
|
|
|
userExt.setUserId(loginUser.getId()); |
|
|
|
|
this.iUserExtService.save(userExt); |
|
|
|
|