|
|
|
@ -840,30 +840,42 @@ public class StandardTicketInfoServiceImpl extends BaseServiceImpl<StandardTicke
|
|
|
|
|
exportVO.setTicketType(Optional.ofNullable(DictCache.getValue(TicketConstants.TICKET_TYPE, standardTicketInfoEntity.getTicketType())).orElse(null)); |
|
|
|
|
exportVO.setCode(Optional.ofNullable(standardTicketInfoEntity.getCode()).orElse(null)); |
|
|
|
|
exportVO.setTitle(Optional.ofNullable(standardTicketInfoEntity.getTitle()).orElse(null)); |
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getIssueOrderPerson())) { |
|
|
|
|
User issueOrderPerson = UserCache.getUser(standardTicketInfoEntity.getIssueOrderPerson()); |
|
|
|
|
if (ObjectUtil.isNotEmpty(issueOrderPerson)) { |
|
|
|
|
exportVO.setIssueOrderPerson(issueOrderPerson.getName()); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getIssueOrderPersonName())) { |
|
|
|
|
exportVO.setIssueOrderPerson(standardTicketInfoEntity.getIssueOrderPersonName()); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getAccessOrderPerson())) { |
|
|
|
|
User accessOrderPerson = UserCache.getUser(standardTicketInfoEntity.getAccessOrderPerson()); |
|
|
|
|
if (ObjectUtil.isNotEmpty(accessOrderPerson)) { |
|
|
|
|
exportVO.setAccessOrderPerson(accessOrderPerson.getName()); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getAccessOrderPersonName())) { |
|
|
|
|
exportVO.setAccessOrderPerson(standardTicketInfoEntity.getAccessOrderPersonName()); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getGuardian())) { |
|
|
|
|
User guardian = UserCache.getUser(standardTicketInfoEntity.getGuardian()); |
|
|
|
|
if (ObjectUtil.isNotEmpty(guardian)) { |
|
|
|
|
exportVO.setGuardian(guardian.getName()); |
|
|
|
|
} |
|
|
|
|
// if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getIssueOrderPerson())) {
|
|
|
|
|
// User issueOrderPerson = UserCache.getUser(standardTicketInfoEntity.getIssueOrderPerson());
|
|
|
|
|
// if (ObjectUtil.isNotEmpty(issueOrderPerson)) {
|
|
|
|
|
// exportVO.setIssueOrderPerson(issueOrderPerson.getName());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getAccessOrderPerson())) {
|
|
|
|
|
// User accessOrderPerson = UserCache.getUser(standardTicketInfoEntity.getAccessOrderPerson());
|
|
|
|
|
// if (ObjectUtil.isNotEmpty(accessOrderPerson)) {
|
|
|
|
|
// exportVO.setAccessOrderPerson(accessOrderPerson.getName());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getGuardian())) {
|
|
|
|
|
// User guardian = UserCache.getUser(standardTicketInfoEntity.getGuardian());
|
|
|
|
|
// if (ObjectUtil.isNotEmpty(guardian)) {
|
|
|
|
|
// exportVO.setGuardian(guardian.getName());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getGuardianName())) { |
|
|
|
|
exportVO.setGuardian(standardTicketInfoEntity.getGuardianName()); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getPrincipal())) { |
|
|
|
|
User principal = UserCache.getUser(standardTicketInfoEntity.getPrincipal()); |
|
|
|
|
if (ObjectUtil.isNotEmpty(principal)) { |
|
|
|
|
exportVO.setPrincipal(principal.getName()); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getPrincipalName())) { |
|
|
|
|
exportVO.setPrincipal(standardTicketInfoEntity.getPrincipalName()); |
|
|
|
|
} |
|
|
|
|
// if (ObjectUtil.isNotEmpty(standardTicketInfoEntity.getPrincipal())) {
|
|
|
|
|
// User principal = UserCache.getUser(standardTicketInfoEntity.getPrincipal());
|
|
|
|
|
// if (ObjectUtil.isNotEmpty(principal)) {
|
|
|
|
|
// exportVO.setPrincipal(principal.getName());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
exportVO.setStartTime(Optional.ofNullable(DateUtil.format(standardTicketInfoEntity.getStartTime(), TicketConstants.TICKET_DATE_PATTERN)).orElse("")); |
|
|
|
|
exportVO.setEndTime(Optional.ofNullable(DateUtil.format(standardTicketInfoEntity.getEndTime(), TicketConstants.TICKET_DATE_PATTERN)).orElse("")); |
|
|
|
|
exportVO.setIsEvaluate("未评价"); |
|
|
|
|