This commit is contained in:
linfso 2024-11-25 14:16:17 +08:00
parent a1bacd8dc6
commit 125d9148b8
3 changed files with 43 additions and 0 deletions

View File

@ -111,4 +111,12 @@ public class EmisSettleInvoiceChRecord extends BaseEntity
/* 扩展信息,货物名称 */
private String extData;
// 扩展字段
// 账期
private String billMonth;
// 面单号
private String billCode;
// 销售员
private String salesmen;
}

View File

@ -140,4 +140,34 @@
</select>
<select id="selectBillMonthByApplySeqNo" parameterType="string" resultType="string">
SELECT group_concat( CONCAT(x2.settle_bill_name,'(账单月:',x2.bill_month,')') ) AS billMonth
FROM emis_settle_invoice_record x1,emis_settle_bill x2
WHERE x1.del_flag = '0'
AND x2.del_flag = '0'
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
and x1.apply_seq_no=#{applySeqNo}
</select>
<select id="selectBillCodeByApplySeqNo" parameterType="string" resultType="string">
SELECT group_concat( x2.bill_no) AS billCode
FROM emis_settle_invoice_record x1,emis_settle_sub_bill x2
WHERE x1.del_flag = '0'
AND x2.del_flag = '0'
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
and x1.apply_seq_no=#{applySeqNo}
</select>
<select id="selectSalesmenByApplySeqNo" parameterType="string" resultType="string">
SELECT group_concat(DISTINCT x2.salesmen) AS billCode
FROM emis_settle_invoice_record x1,emis_settle_bill x2
WHERE x1.del_flag = '0'
AND x2.del_flag = '0'
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
and x1.apply_seq_no=#{applySeqNo}
</select>
</mapper>

View File

@ -43,6 +43,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="openChStatusDesc" column="open_ch_status_desc" />
<result property="openComCode" column="open_com_code" />
<result property="extData" column="ext_data" />
<association property="billMonth" column="apply_seq_no" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectBillMonthByApplySeqNo"/>
<association property="billCode" column="apply_seq_no" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectBillCodeByApplySeqNo"/>
<association property="salesmen" column="apply_seq_no" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSalesmenByApplySeqNo"/>
</resultMap>
<sql id="selectEmisSettleInvoiceChRecordVo">