|
@@ -0,0 +1,31 @@
|
|
|
|
+package com.qmth.sop.server.api;
|
|
|
|
+
|
|
|
|
+import com.qmth.boot.api.constant.ApiConstant;
|
|
|
|
+import com.qmth.sop.business.bean.report.DeviceSupplierCountReportBean;
|
|
|
|
+import com.qmth.sop.business.service.ResourceSecurityReportService;
|
|
|
|
+import com.qmth.sop.common.contant.SystemConstant;
|
|
|
|
+import com.qmth.sop.common.util.Result;
|
|
|
|
+import com.qmth.sop.common.util.ResultUtil;
|
|
|
|
+import io.swagger.annotations.*;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+
|
|
|
|
+@Api(tags = "资源保障报表Controller")
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + SystemConstant.PREFIX_URL_RESOURCE_SECURITY)
|
|
|
|
+public class ResourceSecurityReportController {
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ ResourceSecurityReportService resourceSecurityReportService;
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "设备商供货数量分布")
|
|
|
|
+ @RequestMapping(value = "/device_supplier_count/report", method = RequestMethod.POST)
|
|
|
|
+ @ApiResponses({ @ApiResponse(code = 200, message = "返回信息", response = DeviceSupplierCountReportBean.class) })
|
|
|
|
+ public Result deviceSupplierCountReport(@ApiParam(value = "服务单元id", required = true) @RequestParam Long serviceId) {
|
|
|
|
+ return ResultUtil.ok(resourceSecurityReportService.deviceSupplierCountReport(serviceId));
|
|
|
|
+ }
|
|
|
|
+}
|