This commit is contained in:
linfso 2024-11-25 14:20:31 +08:00
parent 125d9148b8
commit 35a3b5a920
3 changed files with 11 additions and 1 deletions

View File

@ -118,5 +118,7 @@ public class EmisSettleInvoiceChRecord extends BaseEntity
private String billCode;
// 销售员
private String salesmen;
// 申请备注
private String applyRemark;
}

View File

@ -159,7 +159,7 @@
</select>
<select id="selectSalesmenByApplySeqNo" parameterType="string" resultType="string">
SELECT group_concat(DISTINCT x2.salesmen) AS billCode
SELECT group_concat(DISTINCT x2.salesmen) AS salesmen
FROM emis_settle_invoice_record x1,emis_settle_bill x2
WHERE x1.del_flag = '0'
AND x2.del_flag = '0'
@ -168,6 +168,13 @@
</select>
<select id="selectApplyRemarkByApplySeqNo" parameterType="string" resultType="string">
SELECT x1.remark AS applyRemark
FROM emis_settle_invoice_record x1
WHERE x1.del_flag = '0'
and x1.apply_seq_no=#{applySeqNo}
</select>
</mapper>

View File

@ -47,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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"/>
<association property="applyRemark" column="apply_seq_no" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectApplyRemarkByApplySeqNo"/>
</resultMap>