shudonghui 1 년 전
부모
커밋
ab0cb4fb05
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      sop-api/src/main/java/com/qmth/sop/server/api/ServiceAnalyseController.java

+ 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());
     }