md
This commit is contained in:
parent
0aea75c29a
commit
5ab9b57c25
@ -44,4 +44,7 @@ public class EmisSettleInvoiceRel extends BaseEntity
|
||||
/* 申请开票金额 */
|
||||
private BigDecimal money;
|
||||
|
||||
// 扩展参数
|
||||
private EmisWaybill waybillDetail;
|
||||
|
||||
}
|
||||
|
||||
@ -12,16 +12,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="money" column="money" />
|
||||
</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">
|
||||
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>
|
||||
|
||||
<select id="selectEmisSettleInvoiceRelList" parameterType="EmisSettleInvoiceRel" resultMap="EmisSettleInvoiceRelResult">
|
||||
<select id="selectEmisSettleInvoiceRelList" parameterType="EmisSettleInvoiceRel" resultMap="EmisSettleInvoiceRelWithSubBillResult">
|
||||
<include refid="selectEmisSettleInvoiceRelVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<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="billNo != null and billNo != ''"> and bill_no like concat('%', #{billNo}, '%')</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}
|
||||
</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
|
||||
from emis_settle_invoice_rel a
|
||||
where a.apply_seq_no = #{applySeqNo} and del_flag='0'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user