|
@@ -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>
|
|
@@ -472,7 +487,7 @@
|
|
|
AND too.buy_time <![CDATA[ <= ]]> #{endTime}
|
|
|
</if>
|
|
|
<if test="keyNo != null and keyNo != ''">
|
|
|
- AND (st.tenant_name like concat('%', #{keyNo}, '%') or too.create_no like concat('%', #{keyNo}, '%'))
|
|
|
+ AND (too.create_username like concat('%', #{keyNo}, '%') or too.create_no like concat('%', #{keyNo}, '%'))
|
|
|
</if>
|
|
|
<if test="creditStatus != null and creditStatus != ''">
|
|
|
AND too.credit_status = #{creditStatus}
|