|
@@ -28,7 +28,6 @@ import com.ningdatech.pmapi.performance.model.dto.ProjectAppraisalDTO; |
|
|
import com.ningdatech.pmapi.performance.model.entity.*; |
|
|
import com.ningdatech.pmapi.performance.model.entity.*; |
|
|
import com.ningdatech.pmapi.performance.model.req.PerformanceAppraisalListReq; |
|
|
import com.ningdatech.pmapi.performance.model.req.PerformanceAppraisalListReq; |
|
|
import com.ningdatech.pmapi.performance.service.*; |
|
|
import com.ningdatech.pmapi.performance.service.*; |
|
|
import com.ningdatech.pmapi.projectlib.service.IProjectService; |
|
|
|
|
|
import com.ningdatech.pmapi.sys.model.entity.Role; |
|
|
import com.ningdatech.pmapi.sys.model.entity.Role; |
|
|
import com.ningdatech.pmapi.sys.service.IRoleService; |
|
|
import com.ningdatech.pmapi.sys.service.IRoleService; |
|
|
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails; |
|
|
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails; |
|
@@ -288,7 +287,7 @@ public class AppAppraisalManage { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AppAppraisalIndexDetailVO detail(Long appId) { |
|
|
|
|
|
|
|
|
public AppAppraisalIndexDetailVO detail(Long planId, Long appId) { |
|
|
|
|
|
|
|
|
ProjectApplication projectApplication = projectApplicationService.getById(appId); |
|
|
ProjectApplication projectApplication = projectApplicationService.getById(appId); |
|
|
VUtils.isTrue(Objects.isNull(projectApplication)).throwMessage("应用不存在!"); |
|
|
VUtils.isTrue(Objects.isNull(projectApplication)).throwMessage("应用不存在!"); |
|
@@ -312,9 +311,10 @@ public class AppAppraisalManage { |
|
|
.orderBy(Boolean.TRUE,Boolean.TRUE,PerformanceAppraisalAppIndicator::getSort)); |
|
|
.orderBy(Boolean.TRUE,Boolean.TRUE,PerformanceAppraisalAppIndicator::getSort)); |
|
|
// 获取当前应用通用指标的的打分信息 |
|
|
// 获取当前应用通用指标的的打分信息 |
|
|
Map<Long, PerformanceAppraisalAppScoreInfo> commonScoreInfoMap = performanceAppraisalAppScoreInfoService.list(Wrappers.lambdaQuery(PerformanceAppraisalAppScoreInfo.class) |
|
|
Map<Long, PerformanceAppraisalAppScoreInfo> commonScoreInfoMap = performanceAppraisalAppScoreInfoService.list(Wrappers.lambdaQuery(PerformanceAppraisalAppScoreInfo.class) |
|
|
|
|
|
.eq(PerformanceAppraisalAppScoreInfo::getAppraisalId,planId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getApplicationId, appId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getApplicationId, appId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getIndexType, AppIndexTypeEnum.COMMON.getCode())) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getIndexType, AppIndexTypeEnum.COMMON.getCode())) |
|
|
.stream().collect(Collectors.toMap(PerformanceAppraisalAppScoreInfo::getId, p -> p)); |
|
|
|
|
|
|
|
|
.stream().collect(Collectors.toMap(PerformanceAppraisalAppScoreInfo::getIndexId, p -> p)); |
|
|
if (CollUtil.isNotEmpty(commonIndexList)) { |
|
|
if (CollUtil.isNotEmpty(commonIndexList)) { |
|
|
List<AppIndexDetailVO> commonIndexDetails = commonIndexList.stream().map(i -> { |
|
|
List<AppIndexDetailVO> commonIndexDetails = commonIndexList.stream().map(i -> { |
|
|
AppIndexDetailVO vo = new AppIndexDetailVO(); |
|
|
AppIndexDetailVO vo = new AppIndexDetailVO(); |
|
@@ -335,9 +335,10 @@ public class AppAppraisalManage { |
|
|
.orderBy(Boolean.TRUE,Boolean.TRUE,PerformanceAppraisalAppIndicator::getSort)); |
|
|
.orderBy(Boolean.TRUE,Boolean.TRUE,PerformanceAppraisalAppIndicator::getSort)); |
|
|
// 获取当前应用辅助指标的的打分信息 |
|
|
// 获取当前应用辅助指标的的打分信息 |
|
|
Map<Long, PerformanceAppraisalAppScoreInfo> auxScoreInfoMap = performanceAppraisalAppScoreInfoService.list(Wrappers.lambdaQuery(PerformanceAppraisalAppScoreInfo.class) |
|
|
Map<Long, PerformanceAppraisalAppScoreInfo> auxScoreInfoMap = performanceAppraisalAppScoreInfoService.list(Wrappers.lambdaQuery(PerformanceAppraisalAppScoreInfo.class) |
|
|
|
|
|
.eq(PerformanceAppraisalAppScoreInfo::getAppraisalId,planId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getApplicationId, appId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getApplicationId, appId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getIndexType, AppIndexTypeEnum.AUX.getCode())) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getIndexType, AppIndexTypeEnum.AUX.getCode())) |
|
|
.stream().collect(Collectors.toMap(PerformanceAppraisalAppScoreInfo::getId, p -> p)); |
|
|
|
|
|
|
|
|
.stream().collect(Collectors.toMap(PerformanceAppraisalAppScoreInfo::getIndexId, p -> p)); |
|
|
if (CollUtil.isNotEmpty(auxIndexList)) { |
|
|
if (CollUtil.isNotEmpty(auxIndexList)) { |
|
|
List<AppIndexDetailVO> auxIndexDetails = auxIndexList.stream().map(i -> { |
|
|
List<AppIndexDetailVO> auxIndexDetails = auxIndexList.stream().map(i -> { |
|
|
AppIndexDetailVO vo = new AppIndexDetailVO(); |
|
|
AppIndexDetailVO vo = new AppIndexDetailVO(); |
|
@@ -355,9 +356,10 @@ public class AppAppraisalManage { |
|
|
.eq(ProjectCoreBusinessIndicators::getApplicationId, appId)); |
|
|
.eq(ProjectCoreBusinessIndicators::getApplicationId, appId)); |
|
|
// 获取当前应用业务指标的的打分信息 |
|
|
// 获取当前应用业务指标的的打分信息 |
|
|
Map<Long, PerformanceAppraisalAppScoreInfo> businessScoreInfoMap = performanceAppraisalAppScoreInfoService.list(Wrappers.lambdaQuery(PerformanceAppraisalAppScoreInfo.class) |
|
|
Map<Long, PerformanceAppraisalAppScoreInfo> businessScoreInfoMap = performanceAppraisalAppScoreInfoService.list(Wrappers.lambdaQuery(PerformanceAppraisalAppScoreInfo.class) |
|
|
|
|
|
.eq(PerformanceAppraisalAppScoreInfo::getAppraisalId,planId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getApplicationId, appId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getApplicationId, appId) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getIndexType, AppIndexTypeEnum.BUSINESS.getCode())) |
|
|
.eq(PerformanceAppraisalAppScoreInfo::getIndexType, AppIndexTypeEnum.BUSINESS.getCode())) |
|
|
.stream().collect(Collectors.toMap(PerformanceAppraisalAppScoreInfo::getId, p -> p)); |
|
|
|
|
|
|
|
|
.stream().collect(Collectors.toMap(PerformanceAppraisalAppScoreInfo::getIndexId, p -> p)); |
|
|
if (CollUtil.isNotEmpty(coreBusinessIndicators)) { |
|
|
if (CollUtil.isNotEmpty(coreBusinessIndicators)) { |
|
|
List<AppBusinessIndexDetailVO> businessIndexDetails = coreBusinessIndicators.stream().map(c -> { |
|
|
List<AppBusinessIndexDetailVO> businessIndexDetails = coreBusinessIndicators.stream().map(c -> { |
|
|
AppBusinessIndexDetailVO appBusinessIndexDetailVo = new AppBusinessIndexDetailVO(); |
|
|
AppBusinessIndexDetailVO appBusinessIndexDetailVo = new AppBusinessIndexDetailVO(); |
|
|