|
|
|
@ -55,7 +55,7 @@ |
|
|
|
|
from t_dx_record_invoice t |
|
|
|
|
where t.gf_tax_no = #{gfsh} |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and lq_tdyslxDm='08')) |
|
|
|
|
and t.create_date = #{cjrq} |
|
|
|
|
and DATE_FORMAT(t.create_date,'%Y-%m-%d') = #{cjrq} |
|
|
|
|
<if test="ycpbz != null and ycpbz != '' and ycpbz != 'null' "> |
|
|
|
|
and t.invoice_status !='0' |
|
|
|
|
</if> |
|
|
|
@ -71,7 +71,7 @@ |
|
|
|
|
from t_dx_record_invoice t |
|
|
|
|
where t.gf_tax_no = #{gfsh} |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and lq_tdyslxDm='08')) |
|
|
|
|
and t.create_date between #{cjrq} and #{cjrq} |
|
|
|
|
and to_char(t.create_date,'yyyy-mm-dd') between #{cjrq} and #{cjrq} |
|
|
|
|
<if test="ycpbz != null and ycpbz != '' and ycpbz != 'null' "> |
|
|
|
|
and t.invoice_status !='0' |
|
|
|
|
</if> |
|
|
|
|