Showing
1 changed file
with
7 additions
and
6 deletions
| ... | @@ -58,25 +58,26 @@ public class ConsignmentUtil { | ... | @@ -58,25 +58,26 @@ public class ConsignmentUtil { |
| 58 | //如果最近30天内没有提交过该运单,则新建 | 58 | //如果最近30天内没有提交过该运单,则新建 |
| 59 | if(consignment == null){ | 59 | if(consignment == null){ |
| 60 | consignment = new Consignment(); | 60 | consignment = new Consignment(); |
| 61 | - } | 61 | + /******提交信息记录******/ |
| 62 | + consignment.setCreateTime(nowDate); | ||
| 63 | + consignment.setCreateUserName(user.getUserName()); | ||
| 64 | + consignment.setCreateUserId(user.getId()); | ||
| 62 | //用户录入数据拷贝 | 65 | //用户录入数据拷贝 |
| 63 | BeanUtils.copyProperties(consignmentBo, consignment); | 66 | BeanUtils.copyProperties(consignmentBo, consignment); |
| 67 | + }else { | ||
| 64 | //用户录入shipperaccount | 68 | //用户录入shipperaccount |
| 65 | consignment.setUserInputShipperAccount(consignmentBo.getShipperAccount()); | 69 | consignment.setUserInputShipperAccount(consignmentBo.getShipperAccount()); |
| 66 | //始发国名称 | 70 | //始发国名称 |
| 67 | consignment.setUserInputOriginCountry(consignmentBo.getOriginCountry()); | 71 | consignment.setUserInputOriginCountry(consignmentBo.getOriginCountry()); |
| 68 | //始发国编码 | 72 | //始发国编码 |
| 69 | consignment.setUserInputOriginCountryCode(consignmentBo.getOriginCountryCode()); | 73 | consignment.setUserInputOriginCountryCode(consignmentBo.getOriginCountryCode()); |
| 70 | - /******提交信息记录******/ | 74 | + } |
| 71 | - consignment.setCreateTime(nowDate); | ||
| 72 | - consignment.setCreateUserName(user.getUserName()); | ||
| 73 | - consignment.setCreateUserId(user.getId()); | ||
| 74 | } else { | 75 | } else { |
| 75 | consignment.setModifyTime(nowDate); | 76 | consignment.setModifyTime(nowDate); |
| 76 | consignment.setModifyUserName(user.getUserName()); | 77 | consignment.setModifyUserName(user.getUserName()); |
| 77 | consignment.setModifyUserId(user.getId()); | 78 | consignment.setModifyUserId(user.getId()); |
| 78 | } | 79 | } |
| 79 | - if (!StringUtils.isEmpty(consignment.getFirstSubmitter())){ | 80 | + if (StringUtils.isEmpty(consignment.getFirstSubmitter())){ |
| 80 | consignment.setFirstSubmitTime(nowDate); | 81 | consignment.setFirstSubmitTime(nowDate); |
| 81 | consignment.setFirstSubmitter(user.getUserName()); | 82 | consignment.setFirstSubmitter(user.getUserName()); |
| 82 | consignment.setFirstSubmitterId(user.getId()); | 83 | consignment.setFirstSubmitterId(user.getId()); | ... | ... |
-
Please register or login to post a comment