|
|
|
@ -1622,11 +1622,7 @@ |
|
|
|
|
and period_add(tdtc.current_tax_period, 1) >= date_format (date_add(invoice_date, interval 360 |
|
|
|
|
day), '%Y%m') |
|
|
|
|
and date_format(invoice_date, '%Y%m%d') >= tdtc.select_start_date |
|
|
|
|
AND t.gf_tax_no IN |
|
|
|
|
<foreach collection="paramsData.taxno" index="index" item="item" open="(" separator="," |
|
|
|
|
close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
AND t.gf_tax_no = #{paramsData.gfsh} |
|
|
|
|
</select> |
|
|
|
|
<!-- 异常发票 --> |
|
|
|
|
<select id="getInvoiceTaskRemindingYc" resultMap="indexInvoiceTaskRemindingMap" |
|
|
|
@ -1636,13 +1632,8 @@ |
|
|
|
|
'ycfpWarning' warningType |
|
|
|
|
from |
|
|
|
|
t_dx_record_invoice |
|
|
|
|
where gf_tax_no in |
|
|
|
|
<if test="paramsData.taxno != null"> |
|
|
|
|
<foreach item="item" index="index" collection="paramsData.taxno" open="(" separator="," |
|
|
|
|
close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
where gf_tax_no = #{paramsData.gfsh} |
|
|
|
|
and (comp_code = #{paramsData.companyCode} or comp_code = '' or comp_code is null) |
|
|
|
|
and invoice_status != 0 |
|
|
|
|
and invoice_type in ('01','03','08','14','31') |
|
|
|
|
and company = #{paramsData.company} |
|
|
|
@ -1657,14 +1648,7 @@ |
|
|
|
|
'ptkndWarning' warningType |
|
|
|
|
from |
|
|
|
|
t_dx_record_invoice |
|
|
|
|
where |
|
|
|
|
gf_tax_no in |
|
|
|
|
<if test="paramsData.taxno != null"> |
|
|
|
|
<foreach item="item" index="index" collection="paramsData.taxno" open="(" separator="," |
|
|
|
|
close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
where gf_tax_no = #{paramsData.gfsh} |
|
|
|
|
and qs_status = '1' |
|
|
|
|
and invoice_type in ('04','10','11','32','186') |
|
|
|
|
and date_format(invoice_date,'%Y') = #{paramsData.billingYear} |
|
|
|
@ -1679,14 +1663,8 @@ |
|
|
|
|
'rzhyc' warningType |
|
|
|
|
from |
|
|
|
|
t_dx_record_invoice |
|
|
|
|
where |
|
|
|
|
gf_tax_no in |
|
|
|
|
<if test="paramsData.taxno != null"> |
|
|
|
|
<foreach item="item" index="index" collection="paramsData.taxno" open="(" separator="," |
|
|
|
|
close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
where gf_tax_no = #{paramsData.gfsh} |
|
|
|
|
and (comp_code = #{paramsData.companyCode} or comp_code = '' or comp_code is null) |
|
|
|
|
and invoice_status != '0' |
|
|
|
|
and (rzh_yesorno = '1' or rzh_yesorno = '2') |
|
|
|
|
and invoice_type in ('01','03','08','14','31') |
|
|
|
@ -1702,20 +1680,12 @@ |
|
|
|
|
'qshyc' warningType |
|
|
|
|
from |
|
|
|
|
t_dx_record_invoice |
|
|
|
|
where |
|
|
|
|
gf_tax_no in |
|
|
|
|
<if test="paramsData.taxno != null"> |
|
|
|
|
<foreach item="item" index="index" collection="paramsData.taxno" open="(" separator="," |
|
|
|
|
close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
where gf_tax_no = #{paramsData.gfsh} |
|
|
|
|
and (comp_code = #{paramsData.companyCode} or comp_code = '' or comp_code is null) |
|
|
|
|
and invoice_status != '0' |
|
|
|
|
and qs_status = '1' |
|
|
|
|
and invoice_type in ('01','03','08','14','31') |
|
|
|
|
|
|
|
|
|
and company = #{paramsData.company} |
|
|
|
|
|
|
|
|
|
and invoice_date between #{paramsData.kpksrq} and #{paramsData.kpjsrq} |
|
|
|
|
</select> |
|
|
|
|
<!---- and date_format(qs_date,'%Y-%m') = date_format(now(),'%Y-%m')--> |
|
|
|
|