|
|
|
@ -83,7 +83,7 @@ |
|
|
|
|
select |
|
|
|
|
t.invoice_code,t.invoice_no,t.invoice_type,DATE_FORMAT(t.invoice_date,'%Y-%m-%d')kprq,t.gf_tax_no |
|
|
|
|
gfsh,t.gf_name |
|
|
|
|
gfmc,t.dept_id deptId,t.dept_name deptName,t.bzdh,t.inaccount_status inAccountStatus,t.comp_code compCode |
|
|
|
|
gfmc,t.dept_id deptId,t.dept_name deptName, |
|
|
|
|
t.xf_tax_no,t.xf_name,t.tax_amount,t.dk_tax_amount,t.invoice_status,t.invoice_amount, |
|
|
|
|
date_format(t.rzh_date,'%Y-%m-%d') rzh_date,date_format(t.qs_date, '%Y-%m-%d') |
|
|
|
|
qs_date,t.rzh_type, |
|
|
|
@ -100,12 +100,6 @@ |
|
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
<if test="companyCode != null and companyCode != '99' and companyCode != '88' and companyCode != '' and companyCode != 'null'" > |
|
|
|
|
and t.comp_code = #{companyCode} |
|
|
|
|
</if> |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode == '88'"> |
|
|
|
|
and (t.comp_code = '' or t.comp_code is null) |
|
|
|
|
</if> |
|
|
|
|
<if |
|
|
|
|
test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' and invoiceStatus != '99' "> |
|
|
|
|
and t.invoice_status = #{invoiceStatus} |
|
|
|
|