维修养护-维护信息统计分析
parent
309e1d8d92
commit
2ed25aaea1
|
|
@ -2,7 +2,6 @@ package com.gunshi.project.hsz.controller;
|
|||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
||||
import com.gunshi.db.dto.MonthRangeSo;
|
||||
import com.gunshi.project.hsz.entity.so.MentenceFarmerRecordPageSo;
|
||||
import com.gunshi.project.hsz.entity.vo.MentenceInfoCount12Vo;
|
||||
|
|
@ -44,23 +43,23 @@ public class MentenceInfoCountController extends AbstractCommonFileController {
|
|||
|
||||
@Operation(summary = "根据时间统计隐患数目")
|
||||
@PostMapping("/count12")
|
||||
public List<MentenceInfoCount12Vo> count12(@RequestBody MonthRangeSo monthRangeSo){
|
||||
public R<List<MentenceInfoCount12Vo>> count12(@RequestBody MonthRangeSo monthRangeSo){
|
||||
List<MentenceInfoCount12Vo> list = mentenceFarmerRecordService.count12(monthRangeSo);
|
||||
return list;
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
@Operation(summary = "根据时间统计隐患类型数目")
|
||||
@PostMapping("/countType")
|
||||
public Map<Integer,Integer> countType(@RequestBody MonthRangeSo monthRangeSo){
|
||||
public R<Map<Integer,Integer>> countType(@RequestBody MonthRangeSo monthRangeSo){
|
||||
Map<Integer,Integer> map = mentenceFarmerRecordService.countType(monthRangeSo);
|
||||
return map;
|
||||
return R.ok(map);
|
||||
}
|
||||
|
||||
@Operation(summary = "统计本年的隐患数")
|
||||
@GetMapping("/countYear/{year}")
|
||||
public Map<Integer,Integer> countYear(@PathVariable("year") String year){
|
||||
public R<Map<Integer,Integer>> countYear(@PathVariable("year") String year){
|
||||
Map<Integer,Integer> map = mentenceFarmerRecordService.countYear(year);
|
||||
return map;
|
||||
return R.ok(map);
|
||||
}
|
||||
@Override
|
||||
public String getGroupId() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue