|
@@ -31,8 +31,18 @@
|
|
|
<if test="supplierId != null and supplierId != ''">
|
|
|
and m.supplier_id = #{supplierId}
|
|
|
</if>
|
|
|
- <if test="status != null and status != ''">
|
|
|
- and m.status = #{status}
|
|
|
+<!-- <if test="status != null and status != ''">-->
|
|
|
+<!-- and m.status = #{status}-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="status != null">
|
|
|
+ <choose>
|
|
|
+ <when test="status">
|
|
|
+ and m.status = 1
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and m.status = 0
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
</where>
|
|
|
order by m.send_time desc
|
|
@@ -89,8 +99,15 @@
|
|
|
<if test="custom != null and custom != ''">
|
|
|
and c.name like concat('%', #{custom} , '%')
|
|
|
</if>
|
|
|
- <if test="status != null and status != ''">
|
|
|
- and m.status = #{status}
|
|
|
+ <if test="status != null">
|
|
|
+ <choose>
|
|
|
+ <when test="status">
|
|
|
+ and m.status = 1
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and m.status = 0
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
<if test="serviceId != null and serviceId != ''">
|
|
|
and m.service_id = #{serviceId}
|