feat(组织工作台):#124149 我的产品 需求规格统计数修正

This commit is contained in:
wanjia 2025-01-15 09:27:31 +08:00
parent a9a75dc100
commit 182db3e872
1 changed files with 16 additions and 2 deletions

View File

@ -192,7 +192,7 @@ public class PmsDashboardController extends BaseController {
PmsProductStatVo statVo = new PmsProductStatVo();
String pmsProductIdentifier = e.getProductIdentifier();
Integer requirementCount = pmsProductRequirementService.countByIdentifierAndStatus(pmsProductIdentifier, getUserReqList());
Integer reqSpecsCount = pmsProductRequirementService.countByIdentifierAndStatus(pmsProductIdentifier, getReqSpecsList());
Integer reqSpecsCount = pmsProductRequirementService.countByIdentifierAndStatus(pmsProductIdentifier, getTotalReqSpecsList());
BeanUtils.copyProperties(e, statVo);
statVo.setReqSpecsCount(reqSpecsCount);
statVo.setUserReqCount(requirementCount);
@ -253,7 +253,7 @@ public class PmsDashboardController extends BaseController {
/**
* 获取 需求规格状态list
* 获取 统计饼图所需的需求规格状态list
* @return 需求规格状态list
*/
private List<String> getReqSpecsList() {
@ -265,6 +265,20 @@ public class PmsDashboardController extends BaseController {
.collect(Collectors.toList());
}
/**
* 获取Count总数时需求规格的状态list
* @return 需求规格状态list
*/
private List<String> getTotalReqSpecsList() {
return Stream.of(ProductReqStatus.PENDING_REVIEW_REQ_SPECS.getKey(),
ProductReqStatus.PLANNED_REQ_SPECS.getKey(),
ProductReqStatus.REJECTED_REQ_SPECS.getKey(),
ProductReqStatus.REVIEWED_REQ_SPECS.getKey(),
ProductReqStatus.COMPLETED_REQ_SPECS.getKey(),
ProductReqStatus.CHANGING_REQ_SPECS.getKey())
.collect(Collectors.toList());
}
/**
* 获取 用户需求状态list
* @return 用户需求状态list