|
|
@ -279,10 +279,10 @@ |
|
|
|
<if test="keyWord != null and keyWord != '' and keyWord != 'null' "> |
|
|
|
<if test="keyWord != null and keyWord != '' and keyWord != 'null' "> |
|
|
|
AND CONCAT(IFNULL(invoice_code,''),IFNULL(invoice_no,'')) like CONCAT('%',#{keyWord},'%') |
|
|
|
AND CONCAT(IFNULL(invoice_code,''),IFNULL(invoice_no,'')) like CONCAT('%',#{keyWord},'%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
AND gf_tax_no in |
|
|
|
<!-- AND gf_tax_no in--> |
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
<!-- <foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">--> |
|
|
|
#{item} |
|
|
|
<!-- #{item}--> |
|
|
|
</foreach> |
|
|
|
<!-- </foreach>--> |
|
|
|
<if |
|
|
|
<if |
|
|
|
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '999' "> |
|
|
|
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '999' "> |
|
|
|
AND invoice_type = #{invoiceType} |
|
|
|
AND invoice_type = #{invoiceType} |
|
|
@ -317,6 +317,12 @@ |
|
|
|
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'"> |
|
|
|
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'"> |
|
|
|
and sn_voucher_number = #{snVoucherNumber} |
|
|
|
and sn_voucher_number = #{snVoucherNumber} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'"> |
|
|
|
|
|
|
|
and comp_code = #{companyCode} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'"> |
|
|
|
|
|
|
|
and (comp_code is null or comp_code = '') |
|
|
|
|
|
|
|
</if> |
|
|
|
GROUP BY uuid having min(create_date) ) t |
|
|
|
GROUP BY uuid having min(create_date) ) t |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="listOtherInvoice" parameterType="java.util.Map" |
|
|
|
<select id="listOtherInvoice" parameterType="java.util.Map" |
|
|
@ -341,7 +347,8 @@ |
|
|
|
posting_time postingTime, |
|
|
|
posting_time postingTime, |
|
|
|
inaccount_status inAccountStatus, |
|
|
|
inaccount_status inAccountStatus, |
|
|
|
bzdh bzdh, |
|
|
|
bzdh bzdh, |
|
|
|
sn_voucher_number snVoucherNumber |
|
|
|
sn_voucher_number snVoucherNumber, |
|
|
|
|
|
|
|
comp_code compCode |
|
|
|
FROM |
|
|
|
FROM |
|
|
|
t_dx_invoice_reimburse |
|
|
|
t_dx_invoice_reimburse |
|
|
|
where invoice_type in |
|
|
|
where invoice_type in |
|
|
@ -396,6 +403,12 @@ |
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'"> |
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'"> |
|
|
|
and bzdh = #{bzdh} |
|
|
|
and bzdh = #{bzdh} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'"> |
|
|
|
|
|
|
|
and comp_code = #{companyCode} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'"> |
|
|
|
|
|
|
|
and (comp_code is null or comp_code = '') |
|
|
|
|
|
|
|
</if> |
|
|
|
GROUP BY uuid having min(create_date) |
|
|
|
GROUP BY uuid having min(create_date) |
|
|
|
ORDER BY create_date DESC |
|
|
|
ORDER BY create_date DESC |
|
|
|
</select> |
|
|
|
</select> |
|
|
|