| | |
| | | import com.gkhy.common.utils.DateUtils; |
| | | import com.gkhy.common.utils.SecurityUtils; |
| | | import com.gkhy.common.utils.StringUtils; |
| | | import com.gkhy.common.utils.uuid.RandomStringGenerator; |
| | | import com.gkhy.system.domain.*; |
| | | import com.gkhy.system.domain.vo.request.*; |
| | | import com.gkhy.system.domain.vo.response.*; |
| | |
| | | */ |
| | | @Override |
| | | public List<ProjectManagement> selectProjectManagementList(ProjectManagement projectManagement) { |
| | | if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())){ |
| | | if (!SecurityUtils.isAdmin(SecurityUtils.getUserId()) && SecurityUtils.getUserId() != 130L){ |
| | | projectManagement.setDeptId(SecurityUtils.getDeptId()); |
| | | } |
| | | return projectManagementMapper.selectProjectManagementList(projectManagement); |
| | |
| | | // projectManagementMapper.updateProjectManagement(projectManagementSave); |
| | | updateById(projectManagementSave); |
| | | }else { |
| | | projectManagementSave.setProjectCode(RandomStringGenerator.generateRandomString(10)); |
| | | projectManagementSave.setStep(1L); |
| | | projectManagementSave.setCreateBy(SecurityUtils.getUsername()); |
| | | projectManagementSave.setCreateTime(DateUtils.getNowDate()); |