|
|
@@ -584,22 +584,56 @@ public class BoilerTaskOrderItemReportServiceImpl extends ServiceImpl<BoilerTask
|
|
|
.orElse(null);
|
|
|
|
|
|
if (approval != null) {
|
|
|
- List<AdminUserRespDTO> userListByNickname = adminUserApi.getUserListByNickname(approval.getUserName()).getCheckedData();
|
|
|
- if (!userListByNickname.isEmpty()) {
|
|
|
- AdminUserRespDTO approvalUser = userListByNickname.get(0);
|
|
|
- approvalId = approvalUser.getId();
|
|
|
- approvalName = approvalUser.getNickname();
|
|
|
- approvalTime = approval.getCreateDate();
|
|
|
+ if (approval.getUserCode() != null){
|
|
|
+ AdminUserRespDTO userRespDTO = adminUserApi.getUserByEmployeeNo(approval.getUserCode()).getCheckedData();
|
|
|
+ if (userRespDTO != null) {
|
|
|
+ approvalId = userRespDTO.getId();
|
|
|
+ approvalName = userRespDTO.getNickname();
|
|
|
+ approvalTime = approval.getCreateDate();
|
|
|
+ }else {
|
|
|
+ List<AdminUserRespDTO> userListByNickname = adminUserApi.getUserListByNickname(approval.getUserName()).getCheckedData();
|
|
|
+ if (!userListByNickname.isEmpty()) {
|
|
|
+ AdminUserRespDTO approvalUser = userListByNickname.get(0);
|
|
|
+ approvalId = approvalUser.getId();
|
|
|
+ approvalName = approvalUser.getNickname();
|
|
|
+ approvalTime = approval.getCreateDate();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ List<AdminUserRespDTO> userListByNickname = adminUserApi.getUserListByNickname(approval.getUserName()).getCheckedData();
|
|
|
+ if (!userListByNickname.isEmpty()) {
|
|
|
+ AdminUserRespDTO approvalUser = userListByNickname.get(0);
|
|
|
+ approvalId = approvalUser.getId();
|
|
|
+ approvalName = approvalUser.getNickname();
|
|
|
+ approvalTime = approval.getCreateDate();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (ratify != null) {
|
|
|
- List<AdminUserRespDTO> userListByNickname1 = adminUserApi.getUserListByNickname(ratify.getUserName()).getCheckedData();
|
|
|
- if (!userListByNickname1.isEmpty()) {
|
|
|
- AdminUserRespDTO ratifyUser = userListByNickname1.get(0);
|
|
|
- ratifyId = ratifyUser.getId();
|
|
|
- ratifyName = ratifyUser.getNickname();
|
|
|
- ratifyTime = ratify.getCreateDate();
|
|
|
+ if (ratify.getUserCode() != null){
|
|
|
+ AdminUserRespDTO userRespDTO = adminUserApi.getUserByEmployeeNo(ratify.getUserCode()).getCheckedData();
|
|
|
+ if (userRespDTO != null) {
|
|
|
+ ratifyId = userRespDTO.getId();
|
|
|
+ ratifyName = userRespDTO.getNickname();
|
|
|
+ ratifyTime = ratify.getCreateDate();
|
|
|
+ }else {
|
|
|
+ List<AdminUserRespDTO> userListByNickname = adminUserApi.getUserListByNickname(ratify.getUserName()).getCheckedData();
|
|
|
+ if (!userListByNickname.isEmpty()) {
|
|
|
+ AdminUserRespDTO ratifyUser = userListByNickname.get(0);
|
|
|
+ ratifyId = ratifyUser.getId();
|
|
|
+ ratifyName = ratifyUser.getNickname();
|
|
|
+ ratifyTime = ratify.getCreateDate();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ List<AdminUserRespDTO> userListByNickname = adminUserApi.getUserListByNickname(ratify.getUserName()).getCheckedData();
|
|
|
+ if (!userListByNickname.isEmpty()) {
|
|
|
+ AdminUserRespDTO ratifyUser = userListByNickname.get(0);
|
|
|
+ ratifyId = ratifyUser.getId();
|
|
|
+ ratifyName = ratifyUser.getNickname();
|
|
|
+ ratifyTime = ratify.getCreateDate();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|