修改mapper文件

release
yishiqihuasheng 2 years ago
parent cd747003e8
commit 0b7070db8f
  1. 3
      dxhy-customs/src/main/java/com/dxhy/customs/service/impl/CustomsRecordDkrzServiceImpl.java
  2. 11
      dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml

@ -134,8 +134,7 @@ public class CustomsRecordDkrzServiceImpl extends MpBaseServiceImpl<CustomsRecor
map.put("qsType", dictdetaServcice.queryDictName(DictConstant.QS_TYPE, qsType)); map.put("qsType", dictdetaServcice.queryDictName(DictConstant.QS_TYPE, qsType));
if ("1".equals(map.get("inAccountStatus"))){ if ("1".equals(map.get("inAccountStatus"))){
map.put("inAccountStatus","已入账"); map.put("inAccountStatus","已入账");
}else if ("0".equals(map.get("inAccountStatus"))){
}else if ("2".equals(map.get("inAccountStatus"))){
map.put("inAccountStatus","未入账"); map.put("inAccountStatus","未入账");
} }

@ -73,12 +73,10 @@
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> <foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
<if <if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' ">
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' ">
and t.invoice_type = #{invoiceType} and t.invoice_type = #{invoiceType}
</if> </if>
<if <if test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' and invoiceStatus != '99'">
test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' and invoiceStatus != '99'">
and t.invoice_status = #{invoiceStatus} and t.invoice_status = #{invoiceStatus}
</if> </if>
<if test="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'"> <if test="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'">
@ -126,8 +124,7 @@
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'"> <if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber} and t.sn_voucher_number = #{snVoucherNumber}
</if> </if>
<if <if test="inAccountMonth != null and inAccountMonth != null and inAccountMonth != '' and inAccountMonth != ''">
test="inAccountMonth != null and inAccountMonth != null and inAccountMonth != '' and inAccountMonth != ''">
and DATE_FORMAT(t.payment_date,'%Y-%m') = #{inAccountMonth} and DATE_FORMAT(t.payment_date,'%Y-%m') = #{inAccountMonth}
</if> </if>
<if test="invoiceSource!=null and invoiceSource!='' and invoiceSource!='99'"> <if test="invoiceSource!=null and invoiceSource!='' and invoiceSource!='99'">
@ -179,7 +176,7 @@
t.account_period accountPeriod, t.account_period accountPeriod,
t.inaccount_status inAccountStatus, t.inaccount_status inAccountStatus,
t.bzdh bzdh, t.bzdh bzdh,
t.posting_time postingTime t.posting_time postingTime,
DATE_FORMAT(t.collect_date,'%Y-%m-%d') collectDate, DATE_FORMAT(t.collect_date,'%Y-%m-%d') collectDate,
t.collect_from collectFrom t.collect_from collectFrom
from t_dx_record_invoice t from t_dx_record_invoice t

Loading…
Cancel
Save