修改mapper文件

release
yishiqihuasheng 2 years ago
parent 62fd65d892
commit cc4bfc910b
  1. 30
      dxhy-extend/src/main/resources/mapper/CustomsMapper.xml

@ -51,10 +51,11 @@
t.customs_scan_id,t.dept_name businessName,t.in_account_status,t.voucher_number,t.document_number,t.in_account_date,rzh_type,rzlx,t.create_date, t.customs_scan_id,t.dept_name businessName,t.in_account_status,t.voucher_number,t.document_number,t.in_account_date,rzh_type,rzlx,t.create_date,
data_sources,t.image_id,t.posting_time,t.account_period data_sources,t.image_id,t.posting_time,t.account_period
from t_dx_customs_record t from t_dx_customs_record t
where export_mark = '0' and t.gf_tax_no in where export_mark = '0'
<foreach close=")" collection="gfsh" index="index" item="item" open="(" separator=","> <!-- and t.gf_tax_no in-->
#{item} <!-- <foreach close=")" collection="gfsh" index="index" item="item" open="(" separator=",">-->
</foreach> <!-- #{item}-->
<!-- </foreach>-->
<if test="keyWord != null and keyWord != '' and keyWord != 'null'"> <if test="keyWord != null and keyWord != '' and keyWord != 'null'">
and t.customs_code like CONCAT('%',#{keyWord},'%') and t.customs_code like CONCAT('%',#{keyWord},'%')
</if> </if>
@ -146,6 +147,12 @@
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> <if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod} and t.account_period = #{accountPeriod}
</if> </if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'">
and t.comp_code = #{companyCode}
</if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'">
and (t.comp_code = '' or t.comp_code is null)
</if>
order by t.fill_in_date desc order by t.fill_in_date desc
</select> </select>
@ -155,10 +162,11 @@
count(1) hjsl, count(1) hjsl,
sum(t.tax_amount) hjse sum(t.tax_amount) hjse
from t_dx_customs_record t from t_dx_customs_record t
where export_mark = '0' and t.gf_tax_no in where export_mark = '0'
<foreach close=")" collection="gfsh" index="index" item="item" open="(" separator=","> <!-- and t.gf_tax_no in-->
#{item} <!-- <foreach close=")" collection="gfsh" index="index" item="item" open="(" separator=",">-->
</foreach> <!-- #{item}-->
<!-- </foreach>-->
<if test="keyWord != null and keyWord != '' and keyWord != 'null'"> <if test="keyWord != null and keyWord != '' and keyWord != 'null'">
and t.customs_code like CONCAT('%',#{keyWord},'%') and t.customs_code like CONCAT('%',#{keyWord},'%')
</if> </if>
@ -250,6 +258,12 @@
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> <if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod} and t.account_period = #{accountPeriod}
</if> </if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'">
and t.comp_code = #{companyCode}
</if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'">
and (t.comp_code = '' or t.comp_code is null)
</if>
</select> </select>

Loading…
Cancel
Save