|
@@ -112,7 +112,14 @@
|
|
1 = 1
|
|
1 = 1
|
|
AND aa.fk_customer_guid = #{customerId}
|
|
AND aa.fk_customer_guid = #{customerId}
|
|
<if test="orderStatus!=null and orderStatus!=-1">
|
|
<if test="orderStatus!=null and orderStatus!=-1">
|
|
- AND aa.order_status=#{orderStatus}
|
|
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="orderStatus == 1">
|
|
|
|
+ AND aa.order_status=1
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ AND aa.order_status!=1
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
</if>
|
|
</if>
|
|
order by aa.create_time desc
|
|
order by aa.create_time desc
|
|
</select>
|
|
</select>
|
|
@@ -311,7 +318,7 @@
|
|
FROM
|
|
FROM
|
|
t_goods_order_info aa
|
|
t_goods_order_info aa
|
|
WHERE
|
|
WHERE
|
|
- aa.state = 1
|
|
|
|
|
|
+ 1=1
|
|
AND aa.guid = #{guid}
|
|
AND aa.guid = #{guid}
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|