Showing
4 changed files
with
12 additions
and
7 deletions
| ... | @@ -17,10 +17,10 @@ public interface ConsignmentExtMapper { | ... | @@ -17,10 +17,10 @@ public interface ConsignmentExtMapper { |
| 17 | Long findAllCount(ConsignmentQuery query); | 17 | Long findAllCount(ConsignmentQuery query); |
| 18 | 18 | ||
| 19 | @Select("SELECT * FROM ( " + | 19 | @Select("SELECT * FROM ( " + |
| 20 | - "SELECT * FROM T_BIZ_CONSIGNMENT " + | 20 | + "SELECT t.* FROM T_BIZ_CONSIGNMENT t " + |
| 21 | - "WHERE CONSIGNMENT_CODE = #{consignmentCode} " + | 21 | + "WHERE t.CONSIGNMENT_CODE = #{consignmentCode} " + |
| 22 | - "AND CREATE_TIME >= SYSDATE - 30 " + | 22 | + "AND t.CREATE_TIME >= SYSDATE - 30 " + |
| 23 | - "ORDER BY CREATE_TIME DESC" + | 23 | + "ORDER BY t.CREATE_TIME DESC" + |
| 24 | ") WHERE ROWNUM = 1") | 24 | ") WHERE ROWNUM = 1") |
| 25 | Consignment findByConsignmentCode(@Param("consignmentCode") String consignmentCode); | 25 | Consignment findByConsignmentCode(@Param("consignmentCode") String consignmentCode); |
| 26 | 26 | ... | ... |
| ... | @@ -48,6 +48,11 @@ public class ConsignmentServiceImpl extends BaseService implements IConsignmentS | ... | @@ -48,6 +48,11 @@ public class ConsignmentServiceImpl extends BaseService implements IConsignmentS |
| 48 | if (!StringUtils.isEmpty(bo.getShipperAccount())){ | 48 | if (!StringUtils.isEmpty(bo.getShipperAccount())){ |
| 49 | if (Objects.equals(user.getAccountNo(),bo.getShipperAccount())){ | 49 | if (Objects.equals(user.getAccountNo(),bo.getShipperAccount())){ |
| 50 | return new ResponseUtils().success(); | 50 | return new ResponseUtils().success(); |
| 51 | + }else { | ||
| 52 | + /** | ||
| 53 | + * 不存在运单,并且没有填写shipperAccount,则直接返回 | ||
| 54 | + */ | ||
| 55 | + return new ResponseUtils().success(); | ||
| 51 | } | 56 | } |
| 52 | }else { | 57 | }else { |
| 53 | /** | 58 | /** | ... | ... |
| 1 | package com.fedex.connect.common.dependencies.util; | 1 | package com.fedex.connect.common.dependencies.util; |
| 2 | 2 | ||
| 3 | import com.fedex.connect.common.dependencies.annotation.BaseNotBlank; | 3 | import com.fedex.connect.common.dependencies.annotation.BaseNotBlank; |
| 4 | -import com.fedex.connect.common.dependencies.exception.OpErrorException; | ||
| 5 | import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil; | 4 | import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil; |
| 6 | import org.springframework.beans.factory.annotation.Autowired; | 5 | import org.springframework.beans.factory.annotation.Autowired; |
| 7 | import org.springframework.stereotype.Component; | 6 | import org.springframework.stereotype.Component; |
| 8 | import org.springframework.util.StringUtils; | 7 | import org.springframework.util.StringUtils; |
| 8 | + | ||
| 9 | import java.lang.reflect.Field; | 9 | import java.lang.reflect.Field; |
| 10 | import java.util.ArrayList; | 10 | import java.util.ArrayList; |
| 11 | import java.util.List; | 11 | import java.util.List; |
| ... | @@ -37,7 +37,7 @@ public class BaseValidateUtils { | ... | @@ -37,7 +37,7 @@ public class BaseValidateUtils { |
| 37 | if (Objects.nonNull(annotation)) { | 37 | if (Objects.nonNull(annotation)) { |
| 38 | Object value = AssignmentFieldUtils.getFieldValue(obj, field.getName()); | 38 | Object value = AssignmentFieldUtils.getFieldValue(obj, field.getName()); |
| 39 | if(value instanceof String){ | 39 | if(value instanceof String){ |
| 40 | - String str = String.valueOf(value); | 40 | + String str = (String)value; |
| 41 | if(!StringUtils.hasText(str)){ | 41 | if(!StringUtils.hasText(str)){ |
| 42 | String fieldName = localeMessageUtil.getMessage(annotation.describe()); | 42 | String fieldName = localeMessageUtil.getMessage(annotation.describe()); |
| 43 | errorList.add(fieldName); | 43 | errorList.add(fieldName); | ... | ... |
| ... | @@ -21,6 +21,6 @@ public class DicEntriesController extends BaseController implements IDicEntriesC | ... | @@ -21,6 +21,6 @@ public class DicEntriesController extends BaseController implements IDicEntriesC |
| 21 | @ApiOperation(value = "ResponseVo", notes = "获取所有国家字典信息") | 21 | @ApiOperation(value = "ResponseVo", notes = "获取所有国家字典信息") |
| 22 | public ResponseVo getCountryAll(){ | 22 | public ResponseVo getCountryAll(){ |
| 23 | List<DictionaryEntries> countryList = dicEntriesService.getCountryAll(); | 23 | List<DictionaryEntries> countryList = dicEntriesService.getCountryAll(); |
| 24 | - return ResponseVo.succ(countryList); | 24 | + return responseUtils.success(countryList); |
| 25 | } | 25 | } |
| 26 | } | 26 | } | ... | ... |
-
Please register or login to post a comment