修改mapper文件

release
yishiqihuasheng 2 years ago
parent d43bc7497f
commit a038bbec7f
  1. 4
      dxhy-base/src/main/java/com/dxhy/base/entity/BaseTDxRecordInvoice.java
  2. 2
      dxhy-base/src/main/java/com/dxhy/base/model/BaseFpRzRespVO.java
  3. 3
      dxhy-base/src/main/resources/mapper/BaseFpZhMapper.xml
  4. 3
      dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml

@ -512,4 +512,8 @@ public class BaseTDxRecordInvoice implements Serializable {
private String imageNumber;
//报账单号
private String bzdh;
/**
* 组织编码
*/
private String compCode;
}

@ -207,6 +207,8 @@ public class BaseFpRzRespVO implements Serializable {
private String bzdh;
//组织名称
private String deptName;
//组织编码
private String compCode;
}

@ -49,6 +49,7 @@
<result column="voucher_number" property="voucherNumber"/>
<result column="sn_voucher_number" property="snVoucherNumber"/>
<result column="ele_invoice_no" property="eleInvoiceNo"/>
<result column="comp_code" property="compCode"/>
</resultMap>
<resultMap id="RzcxhjResultMap"
@ -62,7 +63,7 @@
resultMap="BaseResultMap" databaseId="mysql">
select
t.invoice_code,t.invoice_no,t.invoice_type,DATE_FORMAT(t.invoice_date,'%Y-%m-%d')kprq,t.gf_tax_no,t.gf_name,t.image_id,
t.dept_id deptId,t.dept_name deptName,
t.dept_id deptId,t.dept_name deptName,t.comp_code,
t.xf_tax_no,t.xf_name,t.tax_amount,t.dk_tax_amount,t.invoice_status,t.invoice_amount,date_format(t.rzh_date,'%Y-%m-%d') rzh_date,
date_format(t.qs_date,'%Y-%m-%d') qs_date,t.rzh_type,t.id id,
t.gx_user_name,t.rzh_belong_date,t.inaccount_status,t.bzdh,

@ -31,6 +31,7 @@
<result column="image_id" property="imageNumber"/>
<result column="ele_invoice_no" property="eleInvoiceNo"/>
<result column="bzdh" property="bzdh"/>
<result column="comp_code" property="compCode"/>
</resultMap>
<resultMap id="hjResultMap"
type="com.dxhy.base.entity.BaseTDxRecordInvoice">
@ -57,7 +58,7 @@
</select>
<select id="selectSggxcx" parameterType="java.util.Map"
resultMap="SggxcxResultMap" databaseId="mysql">
select t.invoice_type,t.dept_id,t.dept_name
select t.invoice_type,t.dept_id,t.dept_name,t.comp_code
,t.id,t.invoice_code,t.invoice_no,t.gf_name,t.gf_tax_no,t.xf_name,
DATE_FORMAT(t.invoice_date,'%Y-%m-%d')invoice_date,t.invoice_amount,t.tax_amount,t.invoice_status,DATE_FORMAT(t.qs_date,'%Y-%m-%d')qs_date
,t.qs_type,t.qs_status,t.dk_tax_amount,t.qs_name,t.sn_voucher_number,t.posting_time,t.image_id,t.account_period,

Loading…
Cancel
Save