修改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));
if ("1".equals(map.get("inAccountStatus"))){
map.put("inAccountStatus","已入账");
}else if ("2".equals(map.get("inAccountStatus"))){
}else if ("0".equals(map.get("inAccountStatus"))){
map.put("inAccountStatus","未入账");
}

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

Loading…
Cancel
Save