yangdamao 1 жил өмнө
parent
commit
1f2e6f0983

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

@@ -115,7 +115,7 @@
         <if test="finishStatus != null">
             AND vto.finish_status = #{finishStatus}
         </if>
-        <if test="invoiceStatus != null and invoiceStatus != ''">
+        <if test="invoiceStatus != null">
             AND vto.invoice_status = #{invoiceStatus}
         </if>
         <if test="orderOrg != null and orderOrg != ''">
@@ -176,7 +176,7 @@
             vto.order_sn = too.order_sn
             AND too.rel_sign_id IS NOT NULL
             ORDER BY too.order_goods_id DESC
-            LIMIT 1 ) = #{studentCheckStatus}
+            LIMIT 1 ) = #{studentCheckStatus} )
         </if>
         <if test="orderSnList != null and orderSnList.size()!=0 ">
             AND vto.order_sn in
@@ -254,7 +254,7 @@
         <if test="creditStatus != null and creditStatus == 1">
             AND ot.pay_price = ot.order_received
         </if>
-        <if test="invoiceStatus != null and invoiceStatus != ''">
+        <if test="invoiceStatus != null">
             AND ot.invoice_status = #{invoiceStatus}
         </if>
         <if test="startTime != null and startTime != ''">
@@ -283,7 +283,7 @@
             vto.order_sn = too.order_sn
             AND too.rel_sign_id IS NOT NULL
             ORDER BY too.order_goods_id DESC
-            LIMIT 1 ) = #{studentCheckStatus}
+            LIMIT 1 ) = #{studentCheckStatus} )
         </if>
         <if test="refundStartTime != null or refundEndTime != null">
             AND (SELECT COUNT(*)
@@ -405,7 +405,7 @@
         <if test="createUsername != null and createUsername != ''">
             AND o.create_username LIKE CONCAT( '%', #{createUsername}, '%' )
         </if>
-        <if test="invoiceStatus != null and invoiceStatus != ''">
+        <if test="invoiceStatus != null">
             AND o.invoice_status = #{invoiceStatus}
         </if>
         <if test="finishStatus != null">