修改mapper文件

release
yishiqihuasheng 2 years ago
parent 4abfd0466d
commit 0ff56d5fa0
  1. 1
      dxhy-extend/src/main/java/com/dxhy/extend/entity/ExtOtherInvoice.java
  2. 4
      dxhy-extend/src/main/java/com/dxhy/extend/service/pool/ExtInvoicePoolServiceImpl.java
  3. 23
      dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml

@ -71,4 +71,5 @@ public class ExtOtherInvoice implements Serializable {
private String inAccountStatus; private String inAccountStatus;
private String bzdh; private String bzdh;
private String snVoucherNumber; private String snVoucherNumber;
private String compCode;
} }

@ -217,10 +217,10 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD
try { try {
String[] titlelist = String[] titlelist =
{"序号", "发票类型", "发票代码", "发票号码", "开票日期", "金额", "签收状态", "签收日期", "签收方式", "签收人", "业务单号" {"序号", "发票类型", "发票代码", "发票号码", "开票日期", "金额", "签收状态", "签收日期", "签收方式", "签收人", "业务单号"
, "入池时间","凭证号", "过账时间", "影像号", "账期","报账单号","入账状态"}; , "入池时间","凭证号", "过账时间", "影像号", "账期","报账单号","入账状态","所属组织"};
String[] titleprop = {"xh", "invoiceTypeString", "invoiceCode", "invoiceNo", "invoiceDate", "invoiceAmount", String[] titleprop = {"xh", "invoiceTypeString", "invoiceCode", "invoiceNo", "invoiceDate", "invoiceAmount",
"qszt", "qsrq", "qsfs", "qsr", "businessDocumentNumber", "createDate","snVoucherNumber", "postingTime", "qszt", "qsrq", "qsfs", "qsr", "businessDocumentNumber", "createDate","snVoucherNumber", "postingTime",
"imageNumber","accountPeriod","bzdh","inAccountStatus"}; "imageNumber","accountPeriod","bzdh","inAccountStatus","compCode"};
// 需要设置返回列表标题时调用 // 需要设置返回列表标题时调用
json = super.setTitleList(titlelist, titleprop); json = super.setTitleList(titlelist, titleprop);
PageHelper.startPage(curr, size); PageHelper.startPage(curr, size);

@ -279,10 +279,10 @@
<if test="keyWord != null and keyWord != '' and keyWord != 'null' "> <if test="keyWord != null and keyWord != '' and keyWord != 'null' ">
AND CONCAT(IFNULL(invoice_code,''),IFNULL(invoice_no,'')) like CONCAT('%',#{keyWord},'%') AND CONCAT(IFNULL(invoice_code,''),IFNULL(invoice_no,'')) like CONCAT('%',#{keyWord},'%')
</if> </if>
AND gf_tax_no in <!-- AND gf_tax_no in-->
<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 != '999' "> test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '999' ">
AND invoice_type = #{invoiceType} AND invoice_type = #{invoiceType}
@ -317,6 +317,12 @@
<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 sn_voucher_number = #{snVoucherNumber} and sn_voucher_number = #{snVoucherNumber}
</if> </if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'">
and comp_code = #{companyCode}
</if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'">
and (comp_code is null or comp_code = '')
</if>
GROUP BY uuid having min(create_date) ) t GROUP BY uuid having min(create_date) ) t
</select> </select>
<select id="listOtherInvoice" parameterType="java.util.Map" <select id="listOtherInvoice" parameterType="java.util.Map"
@ -341,7 +347,8 @@
posting_time postingTime, posting_time postingTime,
inaccount_status inAccountStatus, inaccount_status inAccountStatus,
bzdh bzdh, bzdh bzdh,
sn_voucher_number snVoucherNumber sn_voucher_number snVoucherNumber,
comp_code compCode
FROM FROM
t_dx_invoice_reimburse t_dx_invoice_reimburse
where invoice_type in where invoice_type in
@ -396,6 +403,12 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'">
and bzdh = #{bzdh} and bzdh = #{bzdh}
</if> </if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'">
and comp_code = #{companyCode}
</if>
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'">
and (comp_code is null or comp_code = '')
</if>
GROUP BY uuid having min(create_date) GROUP BY uuid having min(create_date)
ORDER BY create_date DESC ORDER BY create_date DESC
</select> </select>

Loading…
Cancel
Save