|
|
@ -1273,31 +1273,29 @@ public class WorkTicketInfoServiceImpl extends BaseServiceImpl<WorkTicketInfoMap |
|
|
|
resEntity.setType(Optional.ofNullable(DictCache.getValue(TicketConstants.TICKET_TYPE, workTicketInfoVO.getType())).orElse("")); |
|
|
|
resEntity.setType(Optional.ofNullable(DictCache.getValue(TicketConstants.TICKET_TYPE, workTicketInfoVO.getType())).orElse("")); |
|
|
|
resEntity.setCode(Optional.ofNullable(workTicketInfoVO.getCode()).orElse("")); |
|
|
|
resEntity.setCode(Optional.ofNullable(workTicketInfoVO.getCode()).orElse("")); |
|
|
|
resEntity.setWorkContent(Optional.ofNullable(workTicketInfoVO.getWorkContent()).orElse("")); |
|
|
|
resEntity.setWorkContent(Optional.ofNullable(workTicketInfoVO.getWorkContent()).orElse("")); |
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getSigner())) { |
|
|
|
// if (ObjectUtil.isNotEmpty(workTicketInfoVO.getSigner())) {
|
|
|
|
User user = UserCache.getUser(workTicketInfoVO.getSigner()); |
|
|
|
// User user = UserCache.getUser(workTicketInfoVO.getSigner());
|
|
|
|
if (ObjectUtil.isNotEmpty(user)) { |
|
|
|
// if (ObjectUtil.isNotEmpty(user)) {
|
|
|
|
resEntity.setSigner(user.getName()); |
|
|
|
// resEntity.setSigner(user.getName());
|
|
|
|
} |
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getSignerName())) { |
|
|
|
|
|
|
|
resEntity.setSigner(workTicketInfoVO.getSignerName()); |
|
|
|
} |
|
|
|
} |
|
|
|
//负责人-线上和线下
|
|
|
|
//负责人-线上和线下
|
|
|
|
if (Func.isEmpty(workTicketInfoVO.getPrincipal())) { |
|
|
|
if (Func.isEmpty(workTicketInfoVO.getPrincipalName())) { |
|
|
|
resEntity.setPrincipal(workTicketInfoVO.getPrincipalManual()); |
|
|
|
resEntity.setPrincipal(workTicketInfoVO.getPrincipalManual()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
User principal = UserCache.getUser(workTicketInfoVO.getPrincipal()); |
|
|
|
resEntity.setPrincipal(workTicketInfoVO.getPrincipalName()); |
|
|
|
if (ObjectUtil.isNotEmpty(principal)) { |
|
|
|
|
|
|
|
resEntity.setPrincipal(principal.getName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getLicensor())) { |
|
|
|
|
|
|
|
User user = UserCache.getUser(workTicketInfoVO.getLicensor()); |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(user)) { |
|
|
|
|
|
|
|
resEntity.setLicensor(user.getName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
workTicketInfoVO.setClassGroupMembersName(workTicketInfoVO.getClassGroupMembers()); |
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getLicensorName())) { |
|
|
|
if (Func.isNotEmpty(workTicketInfoVO.getClassGroupMembersManual())) { |
|
|
|
resEntity.setLicensor(workTicketInfoVO.getLicensorName()); |
|
|
|
workTicketInfoVO.setClassGroupMembersName(workTicketInfoVO.getClassGroupMembersManual()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// if (Func.isNotEmpty(workTicketInfoVO.getClassGroupMembersName())){
|
|
|
|
|
|
|
|
// workTicketInfoVO.setClassGroupMembersName(workTicketInfoVO.getClassGroupMembersName());
|
|
|
|
|
|
|
|
// }else if (Func.isNotEmpty(workTicketInfoVO.getClassGroupMembersManual())) {
|
|
|
|
|
|
|
|
// workTicketInfoVO.setClassGroupMembersName(workTicketInfoVO.getClassGroupMembersManual());
|
|
|
|
|
|
|
|
// }
|
|
|
|
resEntity.setClassGroupMembers(Optional.ofNullable(workTicketInfoVO.getClassGroupMembersName()).orElse(workTicketInfoVO.getClassGroupMembersManual() == null ? "" : workTicketInfoVO.getClassGroupMembersManual())); |
|
|
|
resEntity.setClassGroupMembers(Optional.ofNullable(workTicketInfoVO.getClassGroupMembersName()).orElse(workTicketInfoVO.getClassGroupMembersManual() == null ? "" : workTicketInfoVO.getClassGroupMembersManual())); |
|
|
|
resEntity.setCreateTime(Optional.ofNullable(DateUtil.format(workTicketInfoVO.getCreateTime(), TicketConstants.TICKET_DATE_PATTERN)).orElse("")); |
|
|
|
resEntity.setCreateTime(Optional.ofNullable(DateUtil.format(workTicketInfoVO.getCreateTime(), TicketConstants.TICKET_DATE_PATTERN)).orElse("")); |
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getConfirmWorkTime())) { |
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getConfirmWorkTime())) { |
|
|
@ -1305,7 +1303,7 @@ public class WorkTicketInfoServiceImpl extends BaseServiceImpl<WorkTicketInfoMap |
|
|
|
} |
|
|
|
} |
|
|
|
resEntity.setIsEvaluate("未评价"); |
|
|
|
resEntity.setIsEvaluate("未评价"); |
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getIsEvaluate())&&1==workTicketInfoVO.getIsEvaluate()) { |
|
|
|
if (ObjectUtil.isNotEmpty(workTicketInfoVO.getIsEvaluate())&&1==workTicketInfoVO.getIsEvaluate()) { |
|
|
|
TicketInfoEvaluateEntity ticketInfoEvaluateEntity = new TicketInfoEvaluateEntity(); |
|
|
|
// TicketInfoEvaluateEntity ticketInfoEvaluateEntity = new TicketInfoEvaluateEntity();
|
|
|
|
TicketInfoEvaluateEntity evaluateEntity = ticketInfoEvaluateService.getOne(new LambdaQueryWrapper<TicketInfoEvaluateEntity>() {{ |
|
|
|
TicketInfoEvaluateEntity evaluateEntity = ticketInfoEvaluateService.getOne(new LambdaQueryWrapper<TicketInfoEvaluateEntity>() {{ |
|
|
|
eq(TicketInfoEvaluateEntity::getTicketId, workTicketInfoVO.getId()); |
|
|
|
eq(TicketInfoEvaluateEntity::getTicketId, workTicketInfoVO.getId()); |
|
|
|
}}.last(" limit 1")); |
|
|
|
}}.last(" limit 1")); |
|
|
|