|
@@ -32,8 +32,7 @@ public class ResourceSecurityReportController {
|
|
|
@ApiOperation(value = "设备商供货数量分布")
|
|
|
@RequestMapping(value = "/device_supplier_count/report", method = RequestMethod.POST)
|
|
|
@ApiResponses({ @ApiResponse(code = 200, message = "供应商供货数量分布报表", response = SupplierCountReportBean.class) })
|
|
|
- public Result deviceSupplierCountReport(
|
|
|
- @ApiParam(value = "设备商供货数量分布报表", required = true) @RequestParam Long serviceId) {
|
|
|
+ public Result deviceSupplierCountReport(@ApiParam(value = "服务单元id", required = true) @RequestParam Long serviceId) {
|
|
|
List<SupplierCountReportBean> supplierCountReportBeanList = resourceSecurityReportService.deviceSupplierCountReport(
|
|
|
serviceId);
|
|
|
Integer sum = supplierCountReportBeanList.stream().mapToInt(s -> s.getCount()).sum();
|
|
@@ -42,9 +41,8 @@ public class ResourceSecurityReportController {
|
|
|
|
|
|
@ApiOperation(value = "人力数量分布")
|
|
|
@RequestMapping(value = "/human_supplier_count/report", method = RequestMethod.POST)
|
|
|
- @ApiResponses({ @ApiResponse(code = 200, message = "供应商供货数量分布报表", response = SupplierCountReportBean.class) })
|
|
|
- public Result humanSupplierCountReport(
|
|
|
- @ApiParam(value = "人力数量分布报表", required = true) @RequestParam Long serviceId) {
|
|
|
+ @ApiResponses({ @ApiResponse(code = 200, message = "人力数量分布报表", response = SupplierCountReportBean.class) })
|
|
|
+ public Result humanSupplierCountReport(@ApiParam(value = "服务单元id", required = true) @RequestParam Long serviceId) {
|
|
|
List<SupplierCountReportBean> supplierCountReportBeanList = resourceSecurityReportService.humanSupplierCountReport(
|
|
|
serviceId);
|
|
|
Integer sum = supplierCountReportBeanList.stream().mapToInt(s -> s.getCount()).sum();
|
|
@@ -53,17 +51,18 @@ public class ResourceSecurityReportController {
|
|
|
|
|
|
@ApiOperation(value = "大区考勤异常数统计")
|
|
|
@RequestMapping(value = "/area_ding_exception_count/report", method = RequestMethod.POST)
|
|
|
- @ApiResponses({ @ApiResponse(code = 200, message = "考勤异常报表", response = DingExceptionCountReportBean.class) })
|
|
|
+ @ApiResponses({ @ApiResponse(code = 200, message = "大区考勤异常数统计报表", response = DingExceptionCountReportBean.class) })
|
|
|
public Result areaDingExceptionCountReport(
|
|
|
- @ApiParam(value = "大区考勤异常数统计报表", required = true) @RequestParam Long serviceId) {
|
|
|
+ @ApiParam(value = "服务单元id", required = true) @RequestParam Long serviceId) {
|
|
|
return ResultUtil.ok(resourceSecurityReportService.areaDingExceptionCountReport(serviceId));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "人力供应商考勤异常数统计")
|
|
|
@RequestMapping(value = "/human_ding_exception_count/report", method = RequestMethod.POST)
|
|
|
- @ApiResponses({ @ApiResponse(code = 200, message = "考勤异常报表", response = DingExceptionCountReportBean.class) })
|
|
|
+ @ApiResponses({
|
|
|
+ @ApiResponse(code = 200, message = "人力供应商考勤异常数统计报表", response = DingExceptionCountReportBean.class) })
|
|
|
public Result humanDingExceptionCountReport(
|
|
|
- @ApiParam(value = "人力供应商考勤异常数统计报表", required = true) @RequestParam Long serviceId) {
|
|
|
+ @ApiParam(value = "服务单元id", required = true) @RequestParam Long serviceId) {
|
|
|
return ResultUtil.ok(resourceSecurityReportService.humanDingExceptionCountReport(serviceId));
|
|
|
}
|
|
|
}
|