Commit ae809111 authored by cq990612's avatar cq990612

优化代码结构

parent 029d6919
......@@ -645,7 +645,7 @@ public class WorkProjectServiceImpl implements WorkProjectService {
if (isFillIn) {
List<OrderChangeTypeDto> orderChangeTypeDtos = workProjectMapper.getOrderChangeTypeDtos(null);
List<DeptUserDto> deptUserDtos = workUserService.getOrganizationStructureDtos().get(0).getDeptUserDtos();
List<WorkType> workTypeServiceAll1 = workTypeService.getAll(1);
List<WorkType> workTypeServiceAll1 = workTypeService.getByIsStatus(1,1);
for (WorkType workType : workTypeServiceAll1) {
// 不是项目和商机
if (1 != workType.getReviewer()) {
......@@ -713,7 +713,7 @@ public class WorkProjectServiceImpl implements WorkProjectService {
// 组织架构
if (isFillIn) {
List<DeptUserDto> deptUserDtos = workUserService.getOrganizationStructureDtos().get(0).getDeptUserDtos();
List<WorkType> workTypeServiceAll1 = workTypeService.getAll(1);
List<WorkType> workTypeServiceAll1 = workTypeService.getByIsStatus(1,1);
List<DeptUserDto> deptUserDtoList = new ArrayList<>();
for (DeptUserDto deptUserDto : deptUserDtos) {
if (deptUserDto.getDeptId().equals(user.getDeptId())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment