Authored by chenchao

物流查询订单不排除删除

@@ -22,6 +22,9 @@ public interface BuyerOrderMapper { @@ -22,6 +22,9 @@ public interface BuyerOrderMapper {
22 22
23 BuyerOrder selectByOrderCode(@Param("orderCode") Long orderCode); 23 BuyerOrder selectByOrderCode(@Param("orderCode") Long orderCode);
24 24
  25 +
  26 + BuyerOrder selectOnlyByOrderCode(@Param("orderCode") Long orderCode);
  27 +
25 int updateByPrimaryKeySelective(BuyerOrder record); 28 int updateByPrimaryKeySelective(BuyerOrder record);
26 29
27 int updateByOrderCode(BuyerOrder record); 30 int updateByOrderCode(BuyerOrder record);
@@ -109,6 +109,13 @@ @@ -109,6 +109,13 @@
109 limit 1 109 limit 1
110 </select> 110 </select>
111 111
  112 + <select id="selectOnlyByOrderCode" resultMap="BaseResultMap">
  113 + select
  114 + <include refid="Base_Column_List" />
  115 + from buyer_order
  116 + where order_code = #{orderCode,jdbcType=BIGINT}
  117 + limit 1
  118 + </select>
112 119
113 <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> 120 <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
114 delete from buyer_order 121 delete from buyer_order
@@ -244,8 +244,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { @@ -244,8 +244,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
244 @Override 244 @Override
245 public ExpressInfoRespBo queryExpressDetailInfo(Integer uid,Long orderCode) { 245 public ExpressInfoRespBo queryExpressDetailInfo(Integer uid,Long orderCode) {
246 LOGGER.info("queryExpressDetailInfo uid={}, orderCode = {}",uid, orderCode); 246 LOGGER.info("queryExpressDetailInfo uid={}, orderCode = {}",uid, orderCode);
247 - BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);  
248 - 247 + BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
249 if (buyerOrder == null){ 248 if (buyerOrder == null){
250 LOGGER.warn("getOrderInfo order not exist, orderCode is {}", orderCode); 249 LOGGER.warn("getOrderInfo order not exist, orderCode is {}", orderCode);
251 throw new ServiceException(ServiceError.ORDER_NULL); 250 throw new ServiceException(ServiceError.ORDER_NULL);