|
|
@@ -25,12 +25,17 @@
|
|
|
<result column="ftd_text3" property="ftd_text3" jdbcType="VARCHAR" />
|
|
|
<result column="ftd_text4" property="ftd_text4" jdbcType="VARCHAR" />
|
|
|
<result column="ftd_text5" property="ftd_text5" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_outthisamount" property="bk_outthisamount" jdbcType="DOUBLE" />
|
|
|
+ <result column="bk_inthisamount" property="bk_inthisamount" jdbcType="DOUBLE" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
ftd_id, ftd_ftid, ftd_detno, ftd_ym, ftd_bankid, ftd_bankcode, ftd_bankname, ftd_inbankid,
|
|
|
ftd_inbankcode, ftd_inbankname, ftd_nowbalance, ftd_paymethod, ftd_paycode, ftd_remark,
|
|
|
companyid, updaterId, updatedate, ftd_text1, ftd_text2, ftd_text3, ftd_text4, ftd_text5
|
|
|
</sql>
|
|
|
+ <sql id="Bank_Column_List">
|
|
|
+ b.bk_thisamount as bk_outthisamount,c.bk_thisamount as bk_inthisamount
|
|
|
+ </sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
@@ -38,6 +43,16 @@
|
|
|
where ftd_ftid = #{id,jdbcType=INTEGER} and companyId = #{companyId}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectByPrimaryKeyList" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>,
|
|
|
+ <include refid="Bank_Column_List" />
|
|
|
+ from fundtransferdetail,
|
|
|
+ (select bk_id,bk_thisamount from bankinformation) b,
|
|
|
+ (select bk_id, bk_thisamount from bankinformation)c
|
|
|
+ where ftd_ftid = #{id,jdbcType=INTEGER} and companyId = #{companyId} and ftd_bankid = b.bk_id and
|
|
|
+ ftd_inbankid = c.bk_id
|
|
|
+ </select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from fundtransferdetail
|
|
|
where ftd_ftid = #{id,jdbcType=INTEGER}
|