|
@@ -120,7 +120,7 @@ public class ServiceAnalyseController {
|
|
|
@RequestMapping(value = "/supplier/region", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "人力供应商覆盖大区", response = Map.class)})
|
|
|
public Result region(@ApiParam(value = "服务单元", required = true) @RequestParam Long serviceUnitId,
|
|
|
- @ApiParam(value = "供应商", required = true) @RequestParam Long supplierId) {
|
|
|
+ @ApiParam(value = "供应商", required = false) @RequestParam(required = false) Long supplierId) {
|
|
|
List<Map<String, Object>> list = serviceAnalyseService.supplierRegion(serviceUnitId, supplierId);
|
|
|
return ResultUtil.ok(list);
|
|
|
}
|
|
@@ -135,7 +135,7 @@ public class ServiceAnalyseController {
|
|
|
@ApiParam(value = "供应商", required = true) @RequestParam Long supplierId,
|
|
|
@ApiParam(value = "大区", required = true) @RequestParam Long regionId) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("projectRoleQuota", serviceAnalyseService.findCrmAllocationSubTotal(serviceUnitId, regionId, supplierId));
|
|
|
+ map.put("projectRoleQuota", serviceAnalyseService.findCrmAllocationSubTotal(serviceUnitId, regionId, null));
|
|
|
List<UserArchivesAllocationResult> crmAllocation = serviceAnalyseService.findCrmAllocation(serviceUnitId, regionId, supplierId);
|
|
|
map.put("projectWait", crmAllocation.stream().filter(e -> e.getDistributed() < e.getQuota()).count());
|
|
|
map.put("regionCities", crmAllocation.stream().collect(Collectors.groupingBy(UserArchivesAllocationResult::getCity)).size());
|