|
|
@ -66,6 +66,7 @@ public class ComplaintStaticController extends BaseController { |
|
|
@GetMapping("/searchType1") |
|
|
@GetMapping("/searchType1") |
|
|
public String searchType1(SearchType searchType,Model model){ |
|
|
public String searchType1(SearchType searchType,Model model){ |
|
|
LocalDate localDate=LocalDate.now(); |
|
|
LocalDate localDate=LocalDate.now(); |
|
|
|
|
|
model.addAttribute("year",localDate.getYear()); |
|
|
ComplaintStatistics complaintStatistics=dateMake(searchType); |
|
|
ComplaintStatistics complaintStatistics=dateMake(searchType); |
|
|
if(searchType.getCType()!=null&&!"".equals(searchType.getCType())) { |
|
|
if(searchType.getCType()!=null&&!"".equals(searchType.getCType())) { |
|
|
complaintStatistics.setComplaintType(Integer.parseInt(searchType.getCType())); |
|
|
complaintStatistics.setComplaintType(Integer.parseInt(searchType.getCType())); |
|
|
@ -76,7 +77,6 @@ public class ComplaintStaticController extends BaseController { |
|
|
deptMap=deptList.stream().collect(Collectors.toMap(Dept::getDeptId, Function.identity())); |
|
|
deptMap=deptList.stream().collect(Collectors.toMap(Dept::getDeptId, Function.identity())); |
|
|
complaintStatistics.setComplaintDepartmentIdList(new ArrayList<>(deptMap.keySet())); |
|
|
complaintStatistics.setComplaintDepartmentIdList(new ArrayList<>(deptMap.keySet())); |
|
|
} |
|
|
} |
|
|
model.addAttribute("year",localDate.getYear()); |
|
|
|
|
|
model.addAttribute("Number1",complaintStatisticsService.selectComplaintStatisticsList(complaintStatistics).size()); |
|
|
model.addAttribute("Number1",complaintStatisticsService.selectComplaintStatisticsList(complaintStatistics).size()); |
|
|
model.addAttribute("Number2",complaintStatisticsService.selectComplaintStatisticsGroup(complaintStatistics).size()); |
|
|
model.addAttribute("Number2",complaintStatisticsService.selectComplaintStatisticsGroup(complaintStatistics).size()); |
|
|
return prefix+"/complaintA"; |
|
|
return prefix+"/complaintA"; |
|
|
|