yangdamao 1 ano atrás
pai
commit
527668ce33

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

@@ -124,8 +124,11 @@
         <if test="purchaseOrg != null and purchaseOrg != ''">
             AND vto.purchase_org LIKE CONCAT( '%', #{purchaseOrg}, '%' )
         </if>
-        <if test="createSysUserId != null and createSysUserId != ''">
-            AND vto.create_sys_user_id LIKE CONCAT( '%', #{createNo}, '%' )
+        <if test="createNo != null and createNo != ''">
+            AND vto.create_no LIKE CONCAT( '%', #{createNo}, '%' )
+        </if>
+        <if test="createUsername != null and createUsername != ''">
+            AND vto.create_username LIKE CONCAT( '%', #{createUsername}, '%' )
         </if>
         <if test="startTime != null and startTime != ''">
             AND vto.buy_time <![CDATA[ >= ]]> #{startTime}
@@ -210,10 +213,13 @@
             AND ot.order_org LIKE CONCAT( '%', #{orderOrg}, '%' )
         </if>
         <if test="purchaseOrg != null and purchaseOrg != ''">
-            AND vto.purchase_org LIKE CONCAT( '%', #{purchaseOrg}, '%' )
+            AND ot.purchase_org LIKE CONCAT( '%', #{purchaseOrg}, '%' )
         </if>
         <if test="createNo != null and createNo != ''">
-            AND vto.create_no LIKE CONCAT( '%', #{createNo}, '%' )
+            AND ot.create_no LIKE CONCAT( '%', #{createNo}, '%' )
+        </if>
+        <if test="createUsername != null and createUsername != ''">
+            AND ot.create_username LIKE CONCAT( '%', #{createUsername}, '%' )
         </if>
         <if test="checkStartTime != null and checkStartTime != ''">
             AND ot.check_time <![CDATA[ >= ]]> #{checkStartTime}
@@ -334,6 +340,15 @@
         <if test="studentCheckStatus != null">
             AND o.order_id = 0
         </if>
+        <if test="purchaseOrg != null and purchaseOrg != ''">
+            AND o.order_id = 0
+        </if>
+        <if test="createNo != null and createNo != ''">
+            AND o.order_id = 0
+        </if>
+        <if test="createUsername != null and createUsername != ''">
+            AND o.create_username LIKE CONCAT( '%', #{createUsername}, '%' )
+        </if>
         <if test="invoiceStatus != null and invoiceStatus != ''">
             AND o.invoice_status = #{invoiceStatus}
         </if>