|
|
|
|
@ -47,6 +47,7 @@ public class SubOneSupervisionNotifyController {
|
|
|
|
|
public Result<JSONObject> getSubOneProblemTypeRate(@RequestParam Integer departId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
endTime = DateUtil.endOfDay(endTime); |
|
|
|
|
List<EchartsVo> wtlxList = negativeMapper.getSubOneProblemTypeRatio(departId, beginTime, endTime); |
|
|
|
|
JSONObject data = new JSONObject().fluentPut("wtlxList", wtlxList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
@ -69,7 +70,8 @@ public class SubOneSupervisionNotifyController {
|
|
|
|
|
@GetMapping("/getSubOneSupervisionTrend") |
|
|
|
|
public Result<JSONObject> getSubOneSupervisionTrend(@RequestParam Integer departId, |
|
|
|
|
@RequestParam String year) { |
|
|
|
|
List<EchartsVo> supervisionTrend = negativeMapper.getSubOneTrend(departId.toString(), year, XCDC.getValue(), ZXDC.getValue(),LMGZ.getValue()); |
|
|
|
|
List<String> proCodes = List.of(XCDC.getValue(), ZXDC.getValue(), LMGZ.getValue()); |
|
|
|
|
List<EchartsVo> supervisionTrend = negativeMapper.selectMonthStatByYear(Integer.valueOf(year), String.valueOf(departId), proCodes); |
|
|
|
|
JSONObject data = new JSONObject().fluentPut("supervisionTrend", supervisionTrend); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|