Sfoglia il codice sorgente

fix: sql字段别名问题;

hanchaolong 2 settimane fa
parent
commit
37444d96bc

+ 1 - 1
jd-logistics-modules/jd-logistics-system/src/main/resources/mapper/logistics/BizWaybillOrderMapper.xml

@@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectBizWaybillOrderVo"/>
         <where>  
             <if test="waybillNo != null  and waybillNo != ''"> and waybill_no = #{waybillNo}</if>
-            <if test="externalWaybillNo != null  and externalWaybillNo != ''"> and external_waybill_no = #{externalWaybillNo}</if>
+            <if test="externalWaybillNo != null  and externalWaybillNo != ''"> and bwo.external_waybill_no = #{externalWaybillNo}</if>
             <if test="orderType != null "> and order_type = #{orderType}</if>
             <if test="senderName != null  and senderName != ''"> and sender_name like concat('%', #{senderName}, '%')</if>
             <if test="senderPhone != null  and senderPhone != ''"> and sender_phone = #{senderPhone}</if>