This commit is contained in:
linfso 2024-09-02 07:34:41 +08:00
parent 0aea75c29a
commit 5ab9b57c25
2 changed files with 14 additions and 3 deletions

View File

@ -44,4 +44,7 @@ public class EmisSettleInvoiceRel extends BaseEntity
/* 申请开票金额 */ /* 申请开票金额 */
private BigDecimal money; private BigDecimal money;
// 扩展参数
private EmisWaybill waybillDetail;
} }

View File

@ -12,16 +12,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="money" column="money" /> <result property="money" column="money" />
</resultMap> </resultMap>
<resultMap id="EmisSettleInvoiceRelWithSubBillResult" type="EmisSettleInvoiceRel" extends="EmisSettleInvoiceRelResult" >
<association property="waybillDetail"
column="bill_no"
select="com.xdadan.erp.emis.mapper.EmisWaybillMapper.selectWaybillBaseInfoByBillCode"
fetchType="lazy"
/>
</resultMap>
<sql id="selectEmisSettleInvoiceRelVo"> <sql id="selectEmisSettleInvoiceRelVo">
select id, apply_seq_no, pay_id, bill_no, money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_invoice_rel select id, apply_seq_no, pay_id, bill_no, money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_invoice_rel
</sql> </sql>
<select id="selectEmisSettleInvoiceRelList" parameterType="EmisSettleInvoiceRel" resultMap="EmisSettleInvoiceRelResult"> <select id="selectEmisSettleInvoiceRelList" parameterType="EmisSettleInvoiceRel" resultMap="EmisSettleInvoiceRelWithSubBillResult">
<include refid="selectEmisSettleInvoiceRelVo"/> <include refid="selectEmisSettleInvoiceRelVo"/>
<where> <where>
del_flag='0' del_flag='0'
<if test="id != null "> and id = #{id}</if> <if test="id != null "> and id = #{id}</if>
<if test="applySeqNo != null and applySeqNo != ''"> and apply_seq_no like concat('%', #{applySeqNo}, '%')</if> <if test="applySeqNo != null and applySeqNo != ''"> and apply_seq_no=#{applySeqNo}</if>
<if test="payId != null and payId != ''"> and pay_id like concat('%', #{payId}, '%')</if> <if test="payId != null and payId != ''"> and pay_id like concat('%', #{payId}, '%')</if>
<if test="billNo != null and billNo != ''"> and bill_no like concat('%', #{billNo}, '%')</if> <if test="billNo != null and billNo != ''"> and bill_no like concat('%', #{billNo}, '%')</if>
<if test="money != null "> and money = #{money}</if> <if test="money != null "> and money = #{money}</if>
@ -61,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where a.id = #{id} where a.id = #{id}
</select> </select>
<select id="selectListByApplySeqNo" parameterType="String" resultMap="EmisSettleInvoiceRelResult"> <select id="selectListByApplySeqNo" parameterType="String" resultMap="EmisSettleInvoiceRelWithSubBillResult">
select id, apply_seq_no, pay_id, bill_no, money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site select id, apply_seq_no, pay_id, bill_no, money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_settle_invoice_rel a from emis_settle_invoice_rel a
where a.apply_seq_no = #{applySeqNo} and del_flag='0' where a.apply_seq_no = #{applySeqNo} and del_flag='0'