...
|
...
|
@@ -17,11 +17,12 @@ |
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
<result column="channel_no" property="channelNo" jdbcType="VARCHAR" />
|
|
|
<result column="attributes" property="attributes" jdbcType="INTEGER" />
|
|
|
<result column="platform_delivery_status" jdbcType="INTEGER" property="platformDeliveryStatus" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, order_code, seller_uid, client_type, payment, payment_type, is_cancel,
|
|
|
amount, ship_fee, status, create_time, update_time, channel_no, attributes
|
|
|
amount, ship_fee, status, create_time, update_time, channel_no, attributes ,platform_delivery_status
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByOrderCode" resultMap="BaseResultMap">
|
...
|
...
|
@@ -66,6 +67,7 @@ |
|
|
</if>
|
|
|
<!-- 平台物流是否存在 -->
|
|
|
<if test="platformExpressInfoFlag != null and platformExpressInfoFlag != '' ">
|
|
|
<!--
|
|
|
and
|
|
|
<if test="platformExpressInfoFlag == 'haveNotExpress'">
|
|
|
NOT
|
...
|
...
|
@@ -73,6 +75,13 @@ |
|
|
exists (
|
|
|
select tmp.id from express_record tmp where a.order_code = tmp.order_code and tmp.express_type in (2,3,4)
|
|
|
)
|
|
|
-->
|
|
|
<if test="platformExpressInfoFlag == 'haveNotExpress'">
|
|
|
and a.platform_delivery_status = 0
|
|
|
</if>
|
|
|
<if test="platformExpressInfoFlag == 'haveExpress'">
|
|
|
and a.platform_delivery_status in (1,2)
|
|
|
</if>
|
|
|
</if>
|
|
|
</select>
|
|
|
|
...
|
...
|
@@ -133,13 +142,19 @@ |
|
|
</if>
|
|
|
<!-- 平台物流是否存在 -->
|
|
|
<if test="buyerOrderReq.platformExpressInfoFlag != null and buyerOrderReq.platformExpressInfoFlag != '' ">
|
|
|
and
|
|
|
<!--and
|
|
|
<if test="buyerOrderReq.platformExpressInfoFlag == 'haveNotExpress'">
|
|
|
NOT
|
|
|
</if>
|
|
|
exists (
|
|
|
select tmp.id from express_record tmp where a.order_code = tmp.order_code and tmp.express_type in (2,3,4)
|
|
|
)
|
|
|
)-->
|
|
|
<if test="buyerOrderReq.platformExpressInfoFlag == 'haveNotExpress'">
|
|
|
and a.platform_delivery_status = 0
|
|
|
</if>
|
|
|
<if test="buyerOrderReq.platformExpressInfoFlag == 'haveExpress'">
|
|
|
and a.platform_delivery_status in (1,2)
|
|
|
</if>
|
|
|
</if>
|
|
|
</sql>
|
|
|
|
...
|
...
|
|