|
@@ -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}
|
|
@@ -148,6 +151,12 @@
|
|
|
<if test="tenantId != null and tenantId != ''">
|
|
|
AND vto.tenant_id = #{tenantId}
|
|
|
</if>
|
|
|
+ <if test="studentCheckStatus != null">
|
|
|
+ AND (vto.order_from != 1
|
|
|
+ AND (SELECT COUNT(too.order_sn)
|
|
|
+ FROM top_old_order_goods too
|
|
|
+ WHERE vto.order_sn = too.order_sn AND too.rel_sign_id IS NOT NULL AND too.check_status = #{studentCheckStatus}) > 0)
|
|
|
+ </if>
|
|
|
<if test="orderSnList != null and orderSnList.size()!=0 ">
|
|
|
AND vto.order_sn in
|
|
|
<foreach collection="orderSnList" item="item" index="index" open="(" close=")" separator=",">
|
|
@@ -204,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}
|
|
@@ -239,6 +251,11 @@
|
|
|
<if test="finishStatus != null">
|
|
|
AND ot.finish_status = #{finishStatus}
|
|
|
</if>
|
|
|
+ <if test="studentCheckStatus != null">
|
|
|
+ AND (SELECT COUNT(too.order_sn)
|
|
|
+ FROM top_old_order_goods too
|
|
|
+ WHERE ot.order_sn = too.order_sn AND too.rel_sign_id IS NOT NULL AND too.check_status = #{studentCheckStatus}) > 0
|
|
|
+ </if>
|
|
|
<if test="tenantId != null and tenantId != ''">
|
|
|
AND ot.tenant_id = #{tenantId}
|
|
|
</if>
|
|
@@ -320,6 +337,18 @@
|
|
|
<if test="repairSign != null and repairSign != '' and repairSign == 1">
|
|
|
AND o.order_id = 0
|
|
|
</if>
|
|
|
+ <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>
|