This commit is contained in:
linfso 2024-07-08 17:30:14 +08:00
parent e1cd1ce553
commit 45e8f26c7f

View File

@ -90,6 +90,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="siteConfirmManCode != null and siteConfirmManCode != ''"> and site_confirm_man_code=#{siteConfirmManCode}</if>
<if test="siteConfirmNote != null and siteConfirmNote != ''"> and site_confirm_note like concat('%', #{siteConfirmNote}, '%')</if>
<if test="params.sendSiteCode != null and params.sendSiteCode != ''">
and a.send_site_code = #{params.sendSiteCode}
</if>
<if test="params.dispatchUnderlingSiteCode != null and params.dispatchUnderlingSiteCode != ''">
and a.dispatch_underling_site_code = #{params.dispatchUnderlingSiteCode}
</if>
<if test="params.payee != null and params.payee != ''">
and a.payee = #{params.payee}
</if>
<if test="params.salesmen != null and params.salesmen != ''">
and a.salesmen = #{params.salesmen}
</if>
<if test="params.salesmen != null and params.salesmen != ''">
and a.salesmen = #{params.salesmen}
</if>
<if test="params.paymentType != null and params.paymentType != ''">
and a.payment_type = #{params.paymentType}
</if>
<if test="params.beginSendDate != null and params.beginSendDate != ''">
and a.send_date <![CDATA[ >= ]]> #{params.beginSendDate}
</if>
@ -116,7 +142,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
UNION
SELECT #{params.privSiteCode} FROM dual
)
or
or
a.sign_site_code in (
SELECT t1.site_code FROM (
SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
@ -167,6 +193,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="siteConfirmManCode != null and siteConfirmManCode != ''"> and site_confirm_man_code=#{siteConfirmManCode}</if>
<if test="siteConfirmNote != null and siteConfirmNote != ''"> and site_confirm_note like concat('%', #{siteConfirmNote}, '%')</if>
<if test="params.sendSiteCode != null and params.sendSiteCode != ''">
and a.send_site_code = #{params.sendSiteCode}
</if>
<if test="params.dispatchUnderlingSiteCode != null and params.dispatchUnderlingSiteCode != ''">
and a.dispatch_underling_site_code = #{params.dispatchUnderlingSiteCode}
</if>
<if test="params.payee != null and params.payee != ''">
and a.payee = #{params.payee}
</if>
<if test="params.salesmen != null and params.salesmen != ''">
and a.salesmen = #{params.salesmen}
</if>
<if test="params.salesmen != null and params.salesmen != ''">
and a.salesmen = #{params.salesmen}
</if>
<if test="params.paymentType != null and params.paymentType != ''">
and a.payment_type = #{params.paymentType}
</if>
<if test="params.beginSendDate != null and params.beginSendDate != ''">
and a.send_date <![CDATA[ >= ]]> #{params.beginSendDate}
</if>