select
t.id,t.invoice_type,t.invoice_code,t.invoice_no,t.invoice_date,t.gf_name,t.xf_name,t.invoice_amount,t.tax_amount,t.dept_id,t.qs_status
from t_dx_record_invoice t
where t.company = #{company} and t.gf_tax_no in
#{item}
and t.invoice_type = #{invoiceType}
and t.invoice_no = #{invoiceNo}
and t.invoice_source = #{invoiceSource}
and t.id in
#{item}
and t.qs_status = '0'
and t.source_system='0'
and t.invoice_date between #{kprqq} and #{kprqz}
order by t.invoice_date desc
select
t.id,t.invoice_type,t.invoice_code,t.invoice_no,t.invoice_date,t.gf_name,t.xf_name,t.invoice_amount,t.tax_amount,t.dept_id,t.qs_status
from t_dx_record_invoice t
where t.company = #{company} and t.gf_tax_no in
#{item}
and t.invoice_type = #{invoiceType}
and t.invoice_no = #{invoiceNo}
and t.qs_status = '0'
and t.source_system='0'
AND TO_CHAR(t.invoice_date, 'yyyy-MM-dd HH24:mm:dd') between #{kprqq} and #{kprqz}
order by t.invoice_date desc
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from t_dx_record_invoice t
where t.company = #{company} and t.gf_tax_no in
#{item}
and t.invoice_type = #{invoiceType}
and t.invoice_no = #{invoiceNo}
and t.invoice_source = #{invoiceSource}
and t.qs_status = '0'
and t.source_system='0'
and t.invoice_date between #{kprqq} and #{kprqz}
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from t_dx_record_invoice t
where t.company = #{company} and t.gf_tax_no in
#{item}
and t.invoice_type = #{invoiceType}
and t.invoice_no = #{invoiceNo}
and t.qs_status = '0'
and t.source_system='0'
AND TO_CHAR(t.invoice_date, 'yyyy-MM-dd HH24:mm:dd') between #{kprqq} and #{kprqz}
delete
from t_dx_invoice
where scan_id = #{scanId}
delete
from t_dx_invoice_img
where scan_id = #{scanId}
select *
from sys_sign_rules
where rule_id in (select rule_id from sys_rules_dept where company = #{company})
order by rule_code
UPDATE t_dx_record_invoice
SET qs_status='0',
qs_date=null,
qs_name=null,
qs_type=null,
settle_source=null,
settlement_no=null,
settlement_status='0',
last_update_date = now()
WHERE uuid = #{uuid}
UPDATE t_dx_record_invoice
SET qs_status='0',
qs_date=null,
qs_name=null,
qs_type=null,
settle_source=null,
settlement_no=null,
settlement_status='0',
last_update_date = sysdate
WHERE uuid = #{uuid}
SELECT user_id userId,
username userName
FROM sys_user
WHERE company = #{company}
select
t.id,t.invoice_type,DATE_FORMAT(t.invoice_date,'%Y-%m-%d') as
invoiceDate,t.invoice_code,t.invoice_no,t.gf_name,t.xf_name,truncate(t.invoice_amount,2) as
invoiceAmount,truncate(t.tax_amount,2) as taxAmount,DATE_FORMAT(t.qs_date,'%Y-%m-%d %T') as qsDate,t.uuid
from t_dx_record_invoice t left join t_dx_invoice d on d.uuid = t.uuid
LEFT JOIN ${dxhyAdmin}.sys_user u on d.user_account = u.user_id
where u.push_yesorno=1
and t.company = 'YL' and t.gf_tax_no in
#{item}
and t.invoice_no = #{invoiceNo}
and t.qs_status = '1'
and t.qs_date between #{qsrqq} and #{qsrqz}
order by t.qs_date desc
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from t_dx_record_invoice t left join t_dx_invoice d on d.uuid = t.uuid
LEFT JOIN ${dxhyAdmin}.sys_user u on d.user_account = u.user_id
where u.push_yesorno=1
and t.company = 'YL' and t.gf_tax_no in
#{item}
and t.invoice_no = #{invoiceNo}
and t.qs_status = '1'
and t.qs_date between #{qsrqq} and #{qsrqz}
delete
from t_dx_invoice
where id = #{Id}
select scan_id as scanId from t_dx_invoice where id = #{Id}