...
|
...
|
@@ -122,6 +122,9 @@ |
|
|
<if test="buyerOrderReq.skup != null and buyerOrderReq.skup != 0 ">
|
|
|
and c.id = #{buyerOrderReq.skup}
|
|
|
</if>
|
|
|
<if test="buyerOrderReq.storageId != null and buyerOrderReq.storageId != 0 ">
|
|
|
and c.storage_id = #{buyerOrderReq.storageId}
|
|
|
</if>
|
|
|
<if test="buyerOrderReq.depotNo != null">
|
|
|
and c.depot_no = #{buyerOrderReq.depotNo}
|
|
|
</if>
|
...
|
...
|
@@ -155,7 +158,7 @@ |
|
|
<select id="selectTotalByCondition" resultType="java.lang.Integer" parameterType="com.yoho.order.model.BuyerOrderReq">
|
|
|
select count(a.id)
|
|
|
from buyer_order a
|
|
|
<if test="(buyerOrderReq.depotNo != null) or (buyerOrderReq.productId != null) or (buyerOrderReq.skup != null)">
|
|
|
<if test="(buyerOrderReq.depotNo != null) or (buyerOrderReq.productId != null) or (buyerOrderReq.skup != null) or (buyerOrderReq.storageId != null)">
|
|
|
LEFT JOIN buyer_order_goods b
|
|
|
ON( b.order_code=a.order_code)
|
|
|
LEFT JOIN seller_order_goods c
|
...
|
...
|
@@ -176,7 +179,7 @@ |
|
|
<select id="selectByCondition" resultMap="BaseResultMap" parameterType="com.yoho.order.model.BuyerOrderReq">
|
|
|
select a.*
|
|
|
from buyer_order a
|
|
|
<if test="(buyerOrderReq.depotNo != null) or (buyerOrderReq.productId != null) or (buyerOrderReq.skup != null)">
|
|
|
<if test="(buyerOrderReq.depotNo != null) or (buyerOrderReq.productId != null) or (buyerOrderReq.skup != null) or (buyerOrderReq.storageId != null)">
|
|
|
LEFT JOIN buyer_order_goods b
|
|
|
ON( b.order_code=a.order_code)
|
|
|
LEFT JOIN seller_order_goods c
|
...
|
...
|
|