@@ -112,7 +112,14 @@
1 = 1
AND aa.fk_customer_guid = #{customerId}
<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>
order by aa.create_time desc
</select>
@@ -311,7 +318,7 @@
FROM
t_goods_order_info aa
WHERE
- aa.state = 1
+ 1=1
AND aa.guid = #{guid}
</mapper>