shudonghui пре 1 година
родитељ
комит
ab0cb4fb05

+ 2 - 2
sop-api/src/main/java/com/qmth/sop/server/api/ServiceAnalyseController.java

@@ -166,8 +166,8 @@ public class ServiceAnalyseController {
     @ApiOperation(value = "项目调配完成进度")
     @RequestMapping(value = "/project/allocation", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "项目调配完成进度", response = Long.class) })
-    public Result allocation(@ApiParam(value = "供应商", required = true) @RequestParam Long supplierId,@ApiParam(value = "服务单元", required = true) @RequestParam Long serviceUnitId) {
-        List<UserArchivesAllocationResult> crmAllocation = serviceAnalyseService.findCrmAllocation(serviceUnitId, null, supplierId);
+    public Result allocation(@ApiParam(value = "服务单元", required = true) @RequestParam Long serviceUnitId) {
+        List<UserArchivesAllocationResult> crmAllocation = serviceAnalyseService.findCrmAllocation(serviceUnitId, null, null);
         return ResultUtil.ok(crmAllocation.stream().filter(e->e.getDistributed()<e.getQuota()).count()*100/crmAllocation.size());
     }