Authored by chenchao

物流查询订单不排除删除

... ... @@ -22,6 +22,9 @@ public interface BuyerOrderMapper {
BuyerOrder selectByOrderCode(@Param("orderCode") Long orderCode);
BuyerOrder selectOnlyByOrderCode(@Param("orderCode") Long orderCode);
int updateByPrimaryKeySelective(BuyerOrder record);
int updateByOrderCode(BuyerOrder record);
... ...
... ... @@ -109,6 +109,13 @@
limit 1
</select>
<select id="selectOnlyByOrderCode" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from buyer_order
where order_code = #{orderCode,jdbcType=BIGINT}
limit 1
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from buyer_order
... ...
... ... @@ -244,8 +244,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
@Override
public ExpressInfoRespBo queryExpressDetailInfo(Integer uid,Long orderCode) {
LOGGER.info("queryExpressDetailInfo uid={}, orderCode = {}",uid, orderCode);
BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
if (buyerOrder == null){
LOGGER.warn("getOrderInfo order not exist, orderCode is {}", orderCode);
throw new ServiceException(ServiceError.ORDER_NULL);
... ...