|
|
|
@ -38,4 +38,56 @@ public class ReportDataController {
|
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设备负荷率报表
|
|
|
|
|
* 查询设备每日的负荷率
|
|
|
|
|
* @param paramMap
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/findResourceLoadRateInfo")
|
|
|
|
|
public R findResourceLoadRateInfo(@RequestParam(required = false) Map paramMap) {
|
|
|
|
|
try {
|
|
|
|
|
paramMap.put("site", CommonMethods.getSite());
|
|
|
|
|
List<Map<String, Object>> result = reportDataService.findResourceLoadRateInfo(paramMap);
|
|
|
|
|
return R.ok(result);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设备维修数据统计报表
|
|
|
|
|
*
|
|
|
|
|
* @param paramMap
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/findResourceRepairDataStatInfo")
|
|
|
|
|
public R findResourceRepairDataStatInfo(@RequestParam(required = false) Map paramMap) {
|
|
|
|
|
try {
|
|
|
|
|
paramMap.put("site", CommonMethods.getSite());
|
|
|
|
|
List<Map<String, Object>> result = reportDataService.findResourceRepairDataStatInfo(paramMap);
|
|
|
|
|
return R.ok(result);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 每日生产状态报表
|
|
|
|
|
*
|
|
|
|
|
* @param paramMap
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/findProductStateInfo")
|
|
|
|
|
public R findProductStateInfo(@RequestParam(required = false) Map paramMap) {
|
|
|
|
|
try {
|
|
|
|
|
paramMap.put("site", CommonMethods.getSite());
|
|
|
|
|
List<Map<String, Object>> result = reportDataService.findProductStateInfo(paramMap);
|
|
|
|
|
return R.ok(result);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|