|
|
|
@ -39,15 +39,8 @@ public class WorkTicketInfoWrapper extends BaseEntityWrapper<WorkTicketInfoEntit
|
|
|
|
|
} |
|
|
|
|
User licensor = UserCache.getUser(workTicketInfoVO.getLicensor()); |
|
|
|
|
workTicketInfoVO.setLicensorName(Optional.ofNullable(licensor).map(User::getName).orElse(null)); |
|
|
|
|
/*完善班组成员名称,按逗号分隔*/ |
|
|
|
|
if(Func.isEmpty(workTicketInfoVO.getClassGroupMembers())){ |
|
|
|
|
workTicketInfoVO.setMembersName(workTicketInfoVO.getClassGroupMembersManual()); |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
String membersName = Optional.ofNullable(workTicketInfoVO.getClassGroupMembers()).map(ids -> { |
|
|
|
|
return Arrays.stream(ids.split(",")).map(id->Optional.ofNullable(UserCache.getUser(Long.parseLong(id))).map(User::getName).orElse(id)).collect(Collectors.joining(",")); |
|
|
|
|
}).orElse(null); |
|
|
|
|
workTicketInfoVO.setMembersName(membersName); |
|
|
|
|
if(Func.isNotEmpty(workTicketInfoVO.getClassGroupMembersManual())){ |
|
|
|
|
workTicketInfoVO.setClassGroupMembersName(workTicketInfoVO.getClassGroupMembersManual()); |
|
|
|
|
} |
|
|
|
|
/*完善票据来源、票据类型*/ |
|
|
|
|
workTicketInfoVO.setTypeName(DictCache.getValue(DictConstants.TICKET_TYPE,workTicketInfoVO.getType())); |
|
|
|
|