|
|
|
@ -69,10 +69,10 @@ |
|
|
|
|
like |
|
|
|
|
CONCAT('%',#{keyWord},'%') |
|
|
|
|
</if> |
|
|
|
|
and t.gf_tax_no in |
|
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
<!-- and t.gf_tax_no in--> |
|
|
|
|
<!-- <foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">--> |
|
|
|
|
<!-- #{item}--> |
|
|
|
|
<!-- </foreach>--> |
|
|
|
|
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' "> |
|
|
|
|
and t.invoice_type = #{invoiceType} |
|
|
|
|
</if> |
|
|
|
@ -208,10 +208,10 @@ |
|
|
|
|
like |
|
|
|
|
CONCAT('%',#{keyWord},'%') |
|
|
|
|
</if> |
|
|
|
|
and t.gf_tax_no in |
|
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
<!-- and t.gf_tax_no in--> |
|
|
|
|
<!-- <foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">--> |
|
|
|
|
<!-- #{item}--> |
|
|
|
|
<!-- </foreach>--> |
|
|
|
|
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' "> |
|
|
|
|
and t.invoice_type = #{invoiceType} |
|
|
|
|
</if> |
|
|
|
@ -474,10 +474,10 @@ |
|
|
|
|
like |
|
|
|
|
CONCAT('%',#{keyWord},'%') |
|
|
|
|
</if> |
|
|
|
|
and t.xf_tax_no in |
|
|
|
|
<foreach collection="taxno" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
<!-- and t.xf_tax_no in--> |
|
|
|
|
<!-- <foreach collection="taxno" index="index" item="item" open="(" separator="," close=")">--> |
|
|
|
|
<!-- #{item}--> |
|
|
|
|
<!-- </foreach>--> |
|
|
|
|
<if |
|
|
|
|
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' "> |
|
|
|
|
and t.invoice_type = #{invoiceType} |
|
|
|
@ -539,6 +539,20 @@ |
|
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'"> |
|
|
|
|
and t.bzdh = #{bzdh} |
|
|
|
|
</if> |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'"> |
|
|
|
|
and (t.comp_code in |
|
|
|
|
<foreach collection="companyCodes" index="index" item="companyCode" separator="," open="(" close=")"> |
|
|
|
|
#{companyCode} |
|
|
|
|
</foreach> |
|
|
|
|
or t.comp_code is null or t.comp_code = '' |
|
|
|
|
) |
|
|
|
|
</if> |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'"> |
|
|
|
|
and t.comp_code = #{companyCode} |
|
|
|
|
</if> |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'"> |
|
|
|
|
and (t.comp_code = '' or t.comp_code is null) |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
<!--销项票池查询--> |
|
|
|
|
<select id="listSaleInvoice" parameterType="java.util.Map" |
|
|
|
@ -553,6 +567,7 @@ |
|
|
|
|
,t.posting_time postingTime |
|
|
|
|
,t.inaccount_status inAccountStatus |
|
|
|
|
,t.bzdh bzdh |
|
|
|
|
,t.comp_code compCode |
|
|
|
|
from t_dx_sale_record_invoice t |
|
|
|
|
where 1 = 1 |
|
|
|
|
<if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''"> |
|
|
|
@ -566,10 +581,10 @@ |
|
|
|
|
like |
|
|
|
|
CONCAT('%',#{keyWord},'%') |
|
|
|
|
</if> |
|
|
|
|
and t.xf_tax_no in |
|
|
|
|
<foreach collection="taxno" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
<!-- and t.xf_tax_no in--> |
|
|
|
|
<!-- <foreach collection="taxno" index="index" item="item" open="(" separator="," close=")">--> |
|
|
|
|
<!-- #{item}--> |
|
|
|
|
<!-- </foreach>--> |
|
|
|
|
<if |
|
|
|
|
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' "> |
|
|
|
|
and t.invoice_type = #{invoiceType} |
|
|
|
@ -633,6 +648,20 @@ |
|
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'"> |
|
|
|
|
and t.bzdh = #{bzdh} |
|
|
|
|
</if> |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'"> |
|
|
|
|
and (t.comp_code in |
|
|
|
|
<foreach collection="companyCodes" index="index" item="companyCode" separator="," open="(" close=")"> |
|
|
|
|
#{companyCode} |
|
|
|
|
</foreach> |
|
|
|
|
or t.comp_code is null or t.comp_code = '' |
|
|
|
|
) |
|
|
|
|
</if> |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'"> |
|
|
|
|
and t.comp_code = #{companyCode} |
|
|
|
|
</if> |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'"> |
|
|
|
|
and (t.comp_code = '' or t.comp_code is null) |
|
|
|
|
</if> |
|
|
|
|
GROUP BY t.uuid |
|
|
|
|
ORDER BY t.create_date DESC |
|
|
|
|
</select> |
|
|
|
|