yangdamao 1 year ago
parent
commit
2185b6a697

+ 4 - 4
zhongzheng-system/src/main/resources/mapper/modules/top/TopOldOrderMapper.xml

@@ -227,10 +227,10 @@
         <if test="checkEndTime != null and checkEndTime != ''">
             AND ot.check_time <![CDATA[ <= ]]> #{checkEndTime}
         </if>
-        <if test="creditStatus != null and creditStatus != '' and creditStatus == 0">
+        <if test="creditStatus != null and creditStatus == 0">
             AND ot.order_received <![CDATA[ < ]]> ot.pay_price
         </if>
-        <if test="creditStatus != null and creditStatus != '' and creditStatus == 1">
+        <if test="creditStatus != null and creditStatus == 1">
             AND ot.pay_price = ot.order_received
         </if>
         <if test="invoiceStatus != null and invoiceStatus != ''">
@@ -328,10 +328,10 @@
         <if test="checkEndTime != null and checkEndTime != ''">
             AND o.pay_time <![CDATA[ <= ]]> #{checkEndTime}
         </if>
-        <if test="creditStatus != null and creditStatus != '' and creditStatus == 0">
+        <if test="creditStatus != null and creditStatus == 0">
             AND o.order_received <![CDATA[ < ]]> o.pay_price
         </if>
-        <if test="creditStatus != null and creditStatus != '' and creditStatus == 1">
+        <if test="creditStatus != null and creditStatus == 1">
             AND o.pay_price = o.order_received
         </if>
         <if test="repairSign != null and repairSign != '' and repairSign == 1">