|
|
|
@ -20,10 +20,10 @@ |
|
|
|
|
<result column="je" property="je"/> |
|
|
|
|
<result column="se" property="se"/> |
|
|
|
|
<result column="deptName" property="businessName"/> |
|
|
|
|
<result column="inaccount_status" property="inaccountStatus"/> |
|
|
|
|
<result column="inaccount_status" property="inAccountStatus"/> |
|
|
|
|
<result column="sn_voucher_number" property="snVoucherNumber"/> |
|
|
|
|
<result column="posting_time" property="postingTime"/> |
|
|
|
|
<result column="image_id" property="imageId"/> |
|
|
|
|
<result column="image_id" property="imageNumber"/> |
|
|
|
|
<result column="account_period" property="accountPeriod"/> |
|
|
|
|
<result column="bzdh" property="bzdh"/> |
|
|
|
|
<result column="bzr" property="bzr"/> |
|
|
|
@ -141,23 +141,23 @@ |
|
|
|
|
select t.id id,t.uuid uuid,date_format(t.qs_date,'%Y-%m-%d') qsrq,t.qs_status qszt,t.qs_type qsfs,t.qs_name qsr, |
|
|
|
|
t.invoice_code fpdm,t.invoice_no fphm,t.invoice_type invoiceType,date_format(t.invoice_date,'%Y-%m-%d') |
|
|
|
|
kprq,t.gf_tax_no gfsh,t.gf_name gfmc, |
|
|
|
|
t.xf_tax_no xfsh,t.xf_name xfmc,t.invoice_amount je,t.tax_amount se,t.dept_name deptName,t.sn_voucher_number as snVoucherNumber, |
|
|
|
|
t.xf_tax_no xfsh,t.xf_name xfmc,t.invoice_amount je,t.tax_amount se,t.dept_name deptName,t.sn_voucher_number, |
|
|
|
|
t.posting_time as postingTime, |
|
|
|
|
t.image_id as imageId, |
|
|
|
|
t.account_period as account_period, |
|
|
|
|
t.image_id, |
|
|
|
|
t.account_period, |
|
|
|
|
t.bzdh, |
|
|
|
|
t.bzr, |
|
|
|
|
t.inaccount_status as inaccountStatus, |
|
|
|
|
t.comp_code as compCode |
|
|
|
|
t.inaccount_status, |
|
|
|
|
t.comp_code |
|
|
|
|
from t_dx_record_invoice t |
|
|
|
|
where t.qs_status = '1' |
|
|
|
|
and t.rzh_yesorno = '0' |
|
|
|
|
and t.invoice_type in ('01','03','08','14') |
|
|
|
|
and t.invoice_type in ('01','03','08','14','31') |
|
|
|
|
and t.qs_date between #{qsrqq} and #{qsrqz} |
|
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' "> |
|
|
|
|
and t.comp_code = #{companyCode} |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) |
|
|
|
|
|
|
|
|
|
<if test="qsfs != null and qsfs != '' and qsfs != 'null' "> |
|
|
|
|
and t.qs_type = #{qsfs} |
|
|
|
|
</if> |
|
|
|
|