|
@@ -442,7 +442,7 @@ public class DeptAssessmentDeclarationController {
|
|
|
* @throws Exception 异常
|
|
|
*/
|
|
|
@GetMapping(value = "/generateStatisticalSummaryReports/{annual}/{month}")
|
|
|
- public void generateStatisticalSummaryReports(@PathVariable("annual") String annual, @PathVariable("month") String month, HttpServletResponse response) throws Exception {
|
|
|
+ public void generateStatisticalSummaryReports(@PathVariable("annual") Integer annual, @PathVariable("month") Integer month, HttpServletResponse response) throws Exception {
|
|
|
response.setContentType("application/vnd.ms-excel;charset=UTF-8");
|
|
|
response.setHeader("Content-disposition", "attachment; filename=".concat(URLEncoder.encode("绩效结果考核申报汇总表.xlsx", "UTF-8")));
|
|
|
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
|
@@ -450,11 +450,11 @@ public class DeptAssessmentDeclarationController {
|
|
|
response.setDateHeader("Expires", 0);
|
|
|
List<SummaryInformationDTO> summaryInformationDTOList = new ArrayList<>();
|
|
|
QueryWrapper<DeptAssessmentDeclaration> qw = new QueryWrapper<>();
|
|
|
- if (StringUtils.isNotEmpty(annual)) {
|
|
|
- qw.lambda().like(DeptAssessmentDeclaration::getAnnual, annual);
|
|
|
+ if (null != annual) {
|
|
|
+ qw.lambda().eq(DeptAssessmentDeclaration::getAnnual, annual);
|
|
|
}
|
|
|
- if (StringUtils.isNotEmpty(month)) {
|
|
|
- qw.lambda().like(DeptAssessmentDeclaration::getDeclarationMonth, month);
|
|
|
+ if (null != month) {
|
|
|
+ qw.lambda().eq(DeptAssessmentDeclaration::getDeclarationMonth, month);
|
|
|
}
|
|
|
List<DeptAssessmentDeclaration> deptAssessmentDeclarationList = deptAssessmentDeclarationService.list(qw);
|
|
|
for (DeptAssessmentDeclaration deptAssessmentDeclaration : deptAssessmentDeclarationList) {
|