Bladeren bron

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

tags/24080901
CMM 1 jaar geleden
bovenliggende
commit
baef00643c
3 gewijzigde bestanden met toevoegingen van 14 en 5 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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);
}
}

Laden…
Annuleren
Opslaan