|
|
@ -231,7 +231,8 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<ClassifyApiVO> selectClassifyList(String deptId) { |
|
|
|
public List<ClassifyApiVO> selectClassifyList(String deptId) { |
|
|
|
Long pid = 0L; |
|
|
|
Long pid = 0L; |
|
|
|
List<ClassifyApiVO> classifyEntities = getClassifyList(pid,null); |
|
|
|
List<Long> listId = new ArrayList<>(); |
|
|
|
|
|
|
|
List<ClassifyApiVO> classifyEntities = getClassifyList(pid,null); |
|
|
|
for (ClassifyApiVO classifyEntity : classifyEntities) { |
|
|
|
for (ClassifyApiVO classifyEntity : classifyEntities) { |
|
|
|
if (classifyEntity.getPId().equals(0L)) { |
|
|
|
if (classifyEntity.getPId().equals(0L)) { |
|
|
|
List<ClassifyApiVO> classifyList = new ArrayList<>(); |
|
|
|
List<ClassifyApiVO> classifyList = new ArrayList<>(); |
|
|
@ -240,13 +241,25 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif |
|
|
|
.ne(ClassifyEntity::getPId, 0L); |
|
|
|
.ne(ClassifyEntity::getPId, 0L); |
|
|
|
if (Func.isNotBlank(deptId)){ |
|
|
|
if (Func.isNotBlank(deptId)){ |
|
|
|
ne.in(ClassifyEntity::getExamineDeptId, Func.toLongList(deptId)); |
|
|
|
ne.in(ClassifyEntity::getExamineDeptId, Func.toLongList(deptId)); |
|
|
|
|
|
|
|
//查询是否已经提交过考核
|
|
|
|
|
|
|
|
listId = Func.toLongList(deptId); |
|
|
|
} |
|
|
|
} |
|
|
|
List<ClassifyEntity> entityList = this.list(ne |
|
|
|
List<ClassifyEntity> entityList = this.list(ne |
|
|
|
); |
|
|
|
); |
|
|
|
for (ClassifyEntity entity : entityList) { |
|
|
|
for (ClassifyEntity entity : entityList) { |
|
|
|
ClassifyVO classifyVO = ClassifyWrapper.build().entityVO(entity); |
|
|
|
ClassifyVO classifyVO = ClassifyWrapper.build().entityVO(entity); |
|
|
|
ClassifyApiVO classifyApiVO = Func.copy(classifyVO, ClassifyApiVO.class); |
|
|
|
ClassifyApiVO classifyApiVO = Func.copy(classifyVO, ClassifyApiVO.class); |
|
|
|
|
|
|
|
classifyApiVO.setIsCommit(0); |
|
|
|
|
|
|
|
if (Func.isNotEmpty(listId)){ |
|
|
|
|
|
|
|
Long l = listId.get(listId.size()); |
|
|
|
|
|
|
|
List<IndicatorsEntity> indicatorsEntityList = iIndicatorsService.list(Wrappers.<IndicatorsEntity>query().lambda() |
|
|
|
|
|
|
|
.eq(IndicatorsEntity::getAssessDept, l) |
|
|
|
|
|
|
|
.eq(IndicatorsEntity::getClassifyId, entity.getId()) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if (Func.isNotEmpty(indicatorsEntityList) && indicatorsEntityList.size()>1){ |
|
|
|
|
|
|
|
classifyApiVO.setIsCommit(1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
List<PointsEntity> list = pointsService.list(Wrappers.<PointsEntity>query().lambda() |
|
|
|
List<PointsEntity> list = pointsService.list(Wrappers.<PointsEntity>query().lambda() |
|
|
|
.eq(PointsEntity::getClassifyId, entity.getId()) |
|
|
|
.eq(PointsEntity::getClassifyId, entity.getId()) |
|
|
|
); |
|
|
|
); |
|
|
@ -256,10 +269,13 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif |
|
|
|
} |
|
|
|
} |
|
|
|
classifyList.add(classifyApiVO); |
|
|
|
classifyList.add(classifyApiVO); |
|
|
|
} |
|
|
|
} |
|
|
|
classifyEntity.setChildren(classifyList); |
|
|
|
if (Func.isNotEmpty(classifyList)){ |
|
|
|
|
|
|
|
classifyEntity.setChildren(classifyList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return classifyEntities; |
|
|
|
List<ClassifyApiVO> collect = classifyEntities.stream().filter(f -> Func.isNotEmpty(f.getChildren())).collect(Collectors.toList()); |
|
|
|
|
|
|
|
return collect; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|