|
@@ -146,4 +146,15 @@ public class StatisticalAnalysisController extends BaseController {
|
|
|
List<Map<String, Integer>> map = pmDemandService.purchaseProjectCompleteNumber(pmDemandReqVo);
|
|
|
return success(map);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "各阶段项目数量分布")
|
|
|
+ @PostMapping("/purchaseProjectDistribution")
|
|
|
+ public AjaxResult purchaseProjectDistribution(@RequestBody PmDemandReqVo pmDemandReqVo) {
|
|
|
+ // 需求单位可查看本单位及其下属单位的统计数据
|
|
|
+ if (StringUtils.isNull(pmDemandReqVo.getPurchaseDeptId())) {
|
|
|
+ return error("登录账号的单位 不能为空!");
|
|
|
+ }
|
|
|
+ List<Map<String, Integer>> map = pmDemandService.purchaseProjectDistribution(pmDemandReqVo);
|
|
|
+ return success(map);
|
|
|
+ }
|
|
|
}
|