|
@@ -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 serviceUnitId) {
|
|
|
- List<UserArchivesAllocationResult> crmAllocation = serviceAnalyseService.findCrmAllocation(serviceUnitId, null, null);
|
|
|
+ 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);
|
|
|
return ResultUtil.ok(crmAllocation.stream().filter(e->e.getDistributed()<e.getQuota()).count()*100/crmAllocation.size());
|
|
|
}
|
|
|
|