luoweijian 2 weeks ago
parent
commit
8b0b3df1eb
  1. 2
      src/main/java/com/project/exam/domain/service/impl/AdminSearchExamRecordDomainServiceImpl.java

2
src/main/java/com/project/exam/domain/service/impl/AdminSearchExamRecordDomainServiceImpl.java

@ -100,8 +100,10 @@ public class AdminSearchExamRecordDomainServiceImpl implements AdminSearchExamRe
dto.setPictureDTOList(pictureDTOList); dto.setPictureDTOList(pictureDTOList);
if (Objects.nonNull(dto.getSubLineId())) { if (Objects.nonNull(dto.getSubLineId())) {
ProductLineEntity productLine = productLineBaseService.getById(dto.getSubLineId()); ProductLineEntity productLine = productLineBaseService.getById(dto.getSubLineId());
if (Objects.nonNull(productLine)) {
dto.setSubLineName(productLine.getName()); dto.setSubLineName(productLine.getName());
} }
}
if (BooleanUtil.isTrue(dto.getPass())) { if (BooleanUtil.isTrue(dto.getPass())) {
dto.setPassText(ExamRecordPassTextEnum.Pass.getValue()); dto.setPassText(ExamRecordPassTextEnum.Pass.getValue());
dto.setPassHtml(ExamRecordPassTextEnum.Pass.getHtml()); dto.setPassHtml(ExamRecordPassTextEnum.Pass.getHtml());

Loading…
Cancel
Save