Selaa lähdekoodia

审查清单 枚举匹配

tags/24080901
PoffyZhang 1 vuosi sitten
vanhempi
commit
6a08b2be7a
1 muutettua tiedostoa jossa 10 lisäystä ja 4 poistoa
  1. +10
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java

+ 10
- 4
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java Näytä tiedosto

@@ -372,7 +372,8 @@ public class ReviewChecklistManage {
vo.setSubTitle(r.getSubTitle());
vo.setContent(r.getContent());
vo.setReviewComments(r.getReviewComments());
vo.setReviewResult(ReviewChecklistResultEnum.match(r.getReviewResult()));
ReviewChecklistResultEnum match = ReviewChecklistResultEnum.match(r.getReviewResult());
vo.setReviewResult(match);
vo.setRejectionSituation(r.getRejectionSituation());
vo.setResponseSituation(r.getResponseSituation());
vo.setCorrPageNum(r.getCorrPageNum());
@@ -381,7 +382,8 @@ public class ReviewChecklistManage {
StringBuffer reviewCommentsSb = new StringBuffer();

for(ReviewChecklistApprove approve : approves){
reviewCommentsSb.append(approve.getCreateBy() + StrPool.COLON + approve.getReviewComments() + "\n");
reviewCommentsSb.append(approve.getCreateBy() + StrPool.COLON + (Objects.nonNull(match)?match.getDesc():StringUtils.EMPTY) +
(StringUtils.isNotBlank(approve.getReviewComments())?StrPool.COMMA+approve.getReviewComments():StringUtils.EMPTY) + "\n");
}
vo.setReviewComments(reviewCommentsSb.toString());
}
@@ -404,7 +406,8 @@ public class ReviewChecklistManage {
vo.setSubTitle(r.getSubTitle());
vo.setContent(r.getContent());
vo.setReviewComments(r.getReviewComments());
vo.setReviewResult(ReviewChecklistResultEnum.match(r.getReviewResult()));
ReviewChecklistResultEnum match = ReviewChecklistResultEnum.match(r.getReviewResult());
vo.setReviewResult(match);
vo.setRejectionSituation(r.getRejectionSituation());
vo.setResponseSituation(r.getResponseSituation());
vo.setCorrPageNum(r.getCorrPageNum());
@@ -414,8 +417,11 @@ public class ReviewChecklistManage {
if(CollUtil.isEmpty(approves)){
vo.setReviewComments("通过");
}else{
Integer index = 1;
for(ReviewChecklistApprove approve : approves){
reviewCommentsSb.append(approve.getCreateBy() + StrPool.COLON + approve.getReviewComments() + "\n");
reviewCommentsSb.append(index + StrPool.DOT + (Objects.nonNull(match)?match.getDesc():StringUtils.EMPTY) +
(StringUtils.isNotBlank(approve.getReviewComments())?StrPool.COMMA+approve.getReviewComments():StringUtils.EMPTY) + "\n");
index++;
}
vo.setReviewComments(reviewCommentsSb.toString());
}


Loading…
Peruuta
Tallenna