lyhzzz пре 2 година
родитељ
комит
15e2e6b061
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      src/main/resources/mapper/sale/RepairMapper.xml

+ 5 - 2
src/main/resources/mapper/sale/RepairMapper.xml

@@ -140,8 +140,11 @@
         <if test="param.repairManId != null ">
             and rr.sys_user_id = #{param.repairManId}
         </if>
-        <if test="param.payStatus != null ">
-            and rp.pay_status = #{param.payStatus}
+        <if test="param.payStatus != null and param.payStatus ==0">
+          and r.status &gt;= 9
+        </if>
+        <if test="param.payStatus != null and param.payStatus ==1">
+            and r.status &lt; 9
         </if>
         <if test="param.commentStatus != null ">
             and r.comment_status = #{param.commentStatus}