|
@@ -458,6 +458,11 @@ public class DeptAssessmentDeclarationController {
|
|
|
}
|
|
|
List<DeptAssessmentDeclaration> deptAssessmentDeclarationList = deptAssessmentDeclarationService.list(qw);
|
|
|
for (DeptAssessmentDeclaration deptAssessmentDeclaration : deptAssessmentDeclarationList) {
|
|
|
+ QueryWrapper<EvaluationDept> qwDept = new QueryWrapper<>();
|
|
|
+ if (StringUtils.isNotEmpty(deptAssessmentDeclaration.getDeptId())) {
|
|
|
+ qwDept.lambda().eq(EvaluationDept::getDeptId, deptAssessmentDeclaration.getDeptId());
|
|
|
+ }
|
|
|
+ EvaluationDept evaluationDept = evaluationDeptService.getOne(qwDept);
|
|
|
List<DeptAssessmentDeclarationContent> deptAssessmentDeclarationContentList = deptAssessmentDeclarationContentService.detailsList(deptAssessmentDeclaration.getId());
|
|
|
for (DeptAssessmentDeclarationContent deptAssessmentDeclarationContent : deptAssessmentDeclarationContentList) {
|
|
|
SummaryInformationDTO summaryInformationDTO = new SummaryInformationDTO();
|
|
@@ -466,6 +471,9 @@ public class DeptAssessmentDeclarationController {
|
|
|
summaryInformationDTO.setSuggestedValue(deptAssessmentDeclarationContent.getSuggestedValue());
|
|
|
summaryInformationDTO.setReportingDepartment(deptAssessmentDeclaration.getDeptName());
|
|
|
summaryInformationDTO.setDeclarationLevel(deptAssessmentDeclaration.getRatingGrade());
|
|
|
+ if (null != evaluationDept) {
|
|
|
+ summaryInformationDTO.setSerialNumber(evaluationDept.getSerialNumber());
|
|
|
+ }
|
|
|
summaryInformationDTOList.add(summaryInformationDTO);
|
|
|
}
|
|
|
}
|
|
@@ -477,6 +485,7 @@ public class DeptAssessmentDeclarationController {
|
|
|
}
|
|
|
list.addAll(value);
|
|
|
});
|
|
|
+ list.sort(Comparator.comparing(SummaryInformationDTO::getSerialNumber, Comparator.nullsLast(Integer::compareTo)));
|
|
|
ExcelUtils.createCollectExcel(list, annual, month, response.getOutputStream());
|
|
|
}
|
|
|
|