Browse Source

绩效评价-评价计划详情修改

master
CMM 1 year ago
parent
commit
baef00643c
3 changed files with 14 additions and 5 deletions
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/performance/convert/PerformanceAppraisalConveter.java
  2. +2
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java
  3. +10
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/ReAppraisalManage.java

+ 2
- 2
pmapi/src/main/java/com/ningdatech/pmapi/performance/convert/PerformanceAppraisalConveter.java View File

@@ -59,8 +59,8 @@ public class PerformanceAppraisalConveter {
vo.setAppId(a.getApplicationId());
if(map.containsKey(a.getApplicationId())){
ProjectApplication application = map.get(a.getApplicationId());
vo.setApplicationName(StringUtils.isNotBlank(application.getApplicationName())?
application.getApplicationName() : application.getRelatedExistsApplication());
vo.setApplicationName(StringUtils.isNotBlank(application.getRelatedExistsApplication())?
application.getRelatedExistsApplication() : application.getApplicationName());
vo.setApplicationType(application.getApplicationType());
vo.setBizDomain(application.getBizDomain());
vo.setBuildOrgName(application.getBuildOrgName());


+ 2
- 3
pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java View File

@@ -92,9 +92,8 @@ public class PerformanceAppraisalPlanManage {
* @return
*/
public PageVo<PerformanceAppraisalVO> list(PerformanceAppraisalListReq req) {
UserInfoDetails userDetail = LoginUserUtil.loginUserDetail();
String regionCode = userDetail.getRegionCode();
Page<PerformanceAppraisal> page = req.page();
String regionCode = req.getRegionCode();
LambdaQueryWrapper<PerformanceAppraisal> wrapper = Wrappers.lambdaQuery(PerformanceAppraisal.class)
.like(StringUtils.isNotBlank(req.getPlanName()),PerformanceAppraisal::getName,req.getPlanName())
.ge(Objects.nonNull(req.getStart()),PerformanceAppraisal::getCreateOn,req.getStart())
@@ -909,7 +908,7 @@ public class PerformanceAppraisalPlanManage {
vo.setAppId(r.getId());
vo.setAppraisalProjectId(r.getProjectId());
vo.setAppraisalProjectCode(r.getProjectCode());
vo.setApplicationName(Objects.nonNull(r.getApplicationName()) ? r.getApplicationName() : r.getRelatedExistsApplication());
vo.setApplicationName(Objects.nonNull(r.getRelatedExistsApplication()) ? r.getRelatedExistsApplication() : r.getApplicationName());
vo.setBuildOrgName(r.getBuildOrgName());
vo.setApplicationType(r.getApplicationType());
vo.setBizDomain(r.getBizDomain());


+ 10
- 0
pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/ReAppraisalManage.java View File

@@ -490,4 +490,14 @@ public class ReAppraisalManage {
throw new BizException(e.getMessage());
}
}

public static void main(String[] args) {
Integer lastCount = 2;
List<Integer> accidents = Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
List<Integer> accidentList = accidents.stream()
.skip(lastCount)
.limit(accidents.size() - lastCount)
.collect(Collectors.toList());
System.out.println(accidentList);
}
}

Loading…
Cancel
Save