This commit is contained in:
linfso 2024-09-24 09:10:29 +08:00
parent e8f27ac2e4
commit 143d771bff
2 changed files with 12 additions and 1 deletions

View File

@ -42,4 +42,7 @@ public class EmisSettlePayRel extends BaseEntity
/* 金额 */
private BigDecimal payMoney;
// 扩展参数
private EmisWaybill waybillDetail;
}

View File

@ -11,11 +11,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="payMoney" column="pay_money" />
</resultMap>
<resultMap id="EmisSettlePayRelWithSubBillResult" type="EmisSettlePayRel" extends="EmisSettlePayRelResult" >
<association property="waybillDetail"
column="bill_no"
select="com.xdadan.erp.emis.mapper.EmisWaybillMapper.selectWaybillBaseInfoByBillCode"
fetchType="lazy"
/>
</resultMap>
<sql id="selectEmisSettlePayRelVo">
select id, pay_id, bill_no, pay_money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_pay_rel
</sql>
<select id="selectEmisSettlePayRelList" parameterType="EmisSettlePayRel" resultMap="EmisSettlePayRelResult">
<select id="selectEmisSettlePayRelList" parameterType="EmisSettlePayRel" resultMap="EmisSettlePayRelWithSubBillResult">
<include refid="selectEmisSettlePayRelVo"/>
<where>
del_flag='0'