zelong.shao

customer|流程代码调整

...@@ -25,8 +25,7 @@ public interface ConsignmentExtMapper { ...@@ -25,8 +25,7 @@ public interface ConsignmentExtMapper {
25 ") WHERE ROWNUM = 1") 25 ") WHERE ROWNUM = 1")
26 Consignment findByConsignmentCode(@Param("consignmentCode") String consignmentCode, @Param("dateParam") LocalDate dateParam); 26 Consignment findByConsignmentCode(@Param("consignmentCode") String consignmentCode, @Param("dateParam") LocalDate dateParam);
27 27
28 - @Select("SELECT BC.* FROM T_BIZ_CONSIGNMENT BC LEFT JOIN T_BIZ_USER_CONSIGNMENT_MAPPING BUCM ON(BC.ID = BUCM.CONSIGNMENT_ID) " + 28 + @Select("SELECT BC.* FROM T_BIZ_CONSIGNMENT BC WHERE BC.ID = #{query.consignmentId}")
29 - "WHERE BC.ID = #{query.consignmentId} AND (BC.USER_UUID = #{query.userUuid} OR BUCM.USER_ID = #{query.userId})")
30 Consignment findConsignmentInfo(@Param("query") UserConsignmentInfoQuery query); 29 Consignment findConsignmentInfo(@Param("query") UserConsignmentInfoQuery query);
31 30
32 } 31 }
......
...@@ -60,11 +60,11 @@ public class ConsignmentQueryServiceImpl extends BaseService implements IConsign ...@@ -60,11 +60,11 @@ public class ConsignmentQueryServiceImpl extends BaseService implements IConsign
60 * @param userConsignmentInfoQuery 60 * @param userConsignmentInfoQuery
61 * @return com.fedex.connect.common.dependencies.date.vo.ResponseVo 61 * @return com.fedex.connect.common.dependencies.date.vo.ResponseVo
62 */ 62 */
63 - public ResponseVo findConsignmentInfo(UserConsignmentInfoQuery userConsignmentInfoQuery){ 63 + public ResponseVo findConsignmentInfo(UserConsignmentInfoQuery userConsignmentInfoQuery) {
64 Consignment consignment = consignmentRepository.findConsignmentInfo(userConsignmentInfoQuery); 64 Consignment consignment = consignmentRepository.findConsignmentInfo(userConsignmentInfoQuery);
65 - if(Objects.nonNull(consignment) 65 + if (consignment != null
66 - && !consignment.getUserUuid().equals(userConsignmentInfoQuery.getUserUuid()) 66 + && !Objects.equals(consignment.getUserUuid(), userConsignmentInfoQuery.getUserUuid())
67 - && !consignment.getShipperAccount().equals(userConsignmentInfoQuery.getShipperAccount())){ 67 + && !Objects.equals(consignment.getShipperAccount(), userConsignmentInfoQuery.getShipperAccount())) {
68 Consignment consignmentTemp = new Consignment(); 68 Consignment consignmentTemp = new Consignment();
69 consignmentTemp.setId(consignment.getId()); 69 consignmentTemp.setId(consignment.getId());
70 consignmentTemp.setConsignmentCode(consignment.getConsignmentCode()); 70 consignmentTemp.setConsignmentCode(consignment.getConsignmentCode());
......
...@@ -145,7 +145,7 @@ public class ConsignmentUtil { ...@@ -145,7 +145,7 @@ public class ConsignmentUtil {
145 if (!StringUtils.hasText(bo.getShipperAccount())){ 145 if (!StringUtils.hasText(bo.getShipperAccount())){
146 consignmentAddDto.setIsCreatorFlag(DigitConstants.DIGIT_TWO); 146 consignmentAddDto.setIsCreatorFlag(DigitConstants.DIGIT_TWO);
147 consignmentAddDto.setConsignmentId(null); 147 consignmentAddDto.setConsignmentId(null);
148 - return responseUtils.success(ResponseCode.MESSAGE_CODE_30012,consignmentAddDto); 148 + return responseUtils.success(ResponseCode.MESSAGE_CODE_30005,consignmentAddDto);
149 } 149 }
150 150
151 /** 151 /**
......
...@@ -46,6 +46,8 @@ public class SysUserDto { ...@@ -46,6 +46,8 @@ public class SysUserDto {
46 user.setTypeCode(dto.getTypeCode()); 46 user.setTypeCode(dto.getTypeCode());
47 user.setUserUuid(dto.getUserUuid()); 47 user.setUserUuid(dto.getUserUuid());
48 user.setTypeName(dto.getTypeName()); 48 user.setTypeName(dto.getTypeName());
49 + user.setAddflag1(dto.getAddflag1());
50 + user.setAddflag2(dto.getAddflag2());
49 return user; 51 return user;
50 } 52 }
51 53
...@@ -69,6 +71,8 @@ public class SysUserDto { ...@@ -69,6 +71,8 @@ public class SysUserDto {
69 this.unifiedBusinessNum = null; 71 this.unifiedBusinessNum = null;
70 this.customsSerialNum = null; 72 this.customsSerialNum = null;
71 this.userUuid = uuid; 73 this.userUuid = uuid;
74 + this.addflag1 = 1;
75 + this.addflag2 = 1;
72 } 76 }
73 77
74 /** 78 /**
...@@ -167,5 +171,15 @@ public class SysUserDto { ...@@ -167,5 +171,15 @@ public class SysUserDto {
167 @JsonIgnore 171 @JsonIgnore
168 private String remark; 172 private String remark;
169 173
174 + /**
175 + * ADD时弹出提示1
176 + */
177 + private Integer addflag1;
178 +
179 + /**
180 + * ADD时弹出提示2
181 + */
182 + private Integer addflag2;
183 +
170 184
171 } 185 }
......