|
@@ -5,7 +5,8 @@
|
|
<id column="guid" jdbcType="BIGINT" property="guid" />
|
|
<id column="guid" jdbcType="BIGINT" property="guid" />
|
|
<result column="fk_transfer_id" jdbcType="BIGINT" property="fkTransferId" />
|
|
<result column="fk_transfer_id" jdbcType="BIGINT" property="fkTransferId" />
|
|
<result column="transfer_type" jdbcType="INTEGER" property="transferType" />
|
|
<result column="transfer_type" jdbcType="INTEGER" property="transferType" />
|
|
- <result column="fk_fc_id" jdbcType="VARCHAR" property="fkFcId" />
|
|
|
|
|
|
+ <result column="fk_farmer_id" jdbcType="VARCHAR" property="fkFarmerId" />
|
|
|
|
+ <result column="fk_collective_id" jdbcType="VARCHAR" property="fkCollectiveId" />
|
|
<result column="seril_no" jdbcType="VARCHAR" property="serilNo" />
|
|
<result column="seril_no" jdbcType="VARCHAR" property="serilNo" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="bank_no" jdbcType="VARCHAR" property="bankNo" />
|
|
<result column="bank_no" jdbcType="VARCHAR" property="bankNo" />
|
|
@@ -24,6 +25,10 @@
|
|
<result column="transfer_name" jdbcType="VARCHAR" property="transferName" />
|
|
<result column="transfer_name" jdbcType="VARCHAR" property="transferName" />
|
|
<result column="transfer_time" jdbcType="TIMESTAMP" property="transferTime" />
|
|
<result column="transfer_time" jdbcType="TIMESTAMP" property="transferTime" />
|
|
<result column="state" jdbcType="INTEGER" property="state" />
|
|
<result column="state" jdbcType="INTEGER" property="state" />
|
|
|
|
+ <result column="bank_name" jdbcType="VARCHAR" property="bankName" />
|
|
|
|
+ <result column="bank_code" jdbcType="VARCHAR" property="bankCode" />
|
|
|
|
+ <result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
+ <result column="transfer_amount" jdbcType="DECIMAL" property="transferAmount" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
@@ -84,9 +89,10 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- guid, fk_transfer_id, transfer_type, fk_fc_id, seril_no, name, bank_no, account_pid,
|
|
|
|
- transfer_status, code, msg, date, time, transfer_nation, nation_id, create_time,
|
|
|
|
- create_id, create_name, transfer_id, transfer_name, transfer_time, state
|
|
|
|
|
|
+ guid, fk_transfer_id, transfer_type, fk_farmer_id, fk_collective_id, seril_no, name,
|
|
|
|
+ bank_no, account_pid, transfer_status, code, msg, date, time, transfer_nation, nation_id,
|
|
|
|
+ create_time, create_id, create_name, transfer_id, transfer_name, transfer_time, state,
|
|
|
|
+ bank_name, bank_code, status, transfer_amount
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetailExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetailExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -120,20 +126,24 @@
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetail">
|
|
<insert id="insert" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetail">
|
|
insert into b_transfer_detail (guid, fk_transfer_id, transfer_type,
|
|
insert into b_transfer_detail (guid, fk_transfer_id, transfer_type,
|
|
- fk_fc_id, seril_no, name,
|
|
|
|
- bank_no, account_pid, transfer_status,
|
|
|
|
- code, msg, date, time,
|
|
|
|
- transfer_nation, nation_id, create_time,
|
|
|
|
- create_id, create_name, transfer_id,
|
|
|
|
- transfer_name, transfer_time, state
|
|
|
|
|
|
+ fk_farmer_id, fk_collective_id, seril_no,
|
|
|
|
+ name, bank_no, account_pid,
|
|
|
|
+ transfer_status, code, msg,
|
|
|
|
+ date, time, transfer_nation,
|
|
|
|
+ nation_id, create_time, create_id,
|
|
|
|
+ create_name, transfer_id, transfer_name,
|
|
|
|
+ transfer_time, state, bank_name,
|
|
|
|
+ bank_code, status, transfer_amount
|
|
)
|
|
)
|
|
values (#{guid,jdbcType=BIGINT}, #{fkTransferId,jdbcType=BIGINT}, #{transferType,jdbcType=INTEGER},
|
|
values (#{guid,jdbcType=BIGINT}, #{fkTransferId,jdbcType=BIGINT}, #{transferType,jdbcType=INTEGER},
|
|
- #{fkFcId,jdbcType=VARCHAR}, #{serilNo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
|
- #{bankNo,jdbcType=VARCHAR}, #{accountPid,jdbcType=VARCHAR}, #{transferStatus,jdbcType=VARCHAR},
|
|
|
|
- #{code,jdbcType=VARCHAR}, #{msg,jdbcType=VARCHAR}, #{date,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP},
|
|
|
|
- #{transferNation,jdbcType=VARCHAR}, #{nationId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{createId,jdbcType=BIGINT}, #{createName,jdbcType=VARCHAR}, #{transferId,jdbcType=BIGINT},
|
|
|
|
- #{transferName,jdbcType=VARCHAR}, #{transferTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}
|
|
|
|
|
|
+ #{fkFarmerId,jdbcType=VARCHAR}, #{fkCollectiveId,jdbcType=VARCHAR}, #{serilNo,jdbcType=VARCHAR},
|
|
|
|
+ #{name,jdbcType=VARCHAR}, #{bankNo,jdbcType=VARCHAR}, #{accountPid,jdbcType=VARCHAR},
|
|
|
|
+ #{transferStatus,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{msg,jdbcType=VARCHAR},
|
|
|
|
+ #{date,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, #{transferNation,jdbcType=VARCHAR},
|
|
|
|
+ #{nationId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT},
|
|
|
|
+ #{createName,jdbcType=VARCHAR}, #{transferId,jdbcType=BIGINT}, #{transferName,jdbcType=VARCHAR},
|
|
|
|
+ #{transferTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{bankName,jdbcType=VARCHAR},
|
|
|
|
+ #{bankCode,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{transferAmount,jdbcType=DECIMAL}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetail">
|
|
<insert id="insertSelective" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetail">
|
|
@@ -148,8 +158,11 @@
|
|
<if test="transferType != null">
|
|
<if test="transferType != null">
|
|
transfer_type,
|
|
transfer_type,
|
|
</if>
|
|
</if>
|
|
- <if test="fkFcId != null">
|
|
|
|
- fk_fc_id,
|
|
|
|
|
|
+ <if test="fkFarmerId != null">
|
|
|
|
+ fk_farmer_id,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="fkCollectiveId != null">
|
|
|
|
+ fk_collective_id,
|
|
</if>
|
|
</if>
|
|
<if test="serilNo != null">
|
|
<if test="serilNo != null">
|
|
seril_no,
|
|
seril_no,
|
|
@@ -205,6 +218,18 @@
|
|
<if test="state != null">
|
|
<if test="state != null">
|
|
state,
|
|
state,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="bankName != null">
|
|
|
|
+ bank_name,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankCode != null">
|
|
|
|
+ bank_code,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="status != null">
|
|
|
|
+ status,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transferAmount != null">
|
|
|
|
+ transfer_amount,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="guid != null">
|
|
<if test="guid != null">
|
|
@@ -216,8 +241,11 @@
|
|
<if test="transferType != null">
|
|
<if test="transferType != null">
|
|
#{transferType,jdbcType=INTEGER},
|
|
#{transferType,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="fkFcId != null">
|
|
|
|
- #{fkFcId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="fkFarmerId != null">
|
|
|
|
+ #{fkFarmerId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="fkCollectiveId != null">
|
|
|
|
+ #{fkCollectiveId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="serilNo != null">
|
|
<if test="serilNo != null">
|
|
#{serilNo,jdbcType=VARCHAR},
|
|
#{serilNo,jdbcType=VARCHAR},
|
|
@@ -273,6 +301,18 @@
|
|
<if test="state != null">
|
|
<if test="state != null">
|
|
#{state,jdbcType=INTEGER},
|
|
#{state,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="bankName != null">
|
|
|
|
+ #{bankName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankCode != null">
|
|
|
|
+ #{bankCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="status != null">
|
|
|
|
+ #{status,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transferAmount != null">
|
|
|
|
+ #{transferAmount,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetailExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.hcloud.microserver.bank.mbg.modul.BTransferDetailExample" resultType="java.lang.Long">
|
|
@@ -293,8 +333,11 @@
|
|
<if test="record.transferType != null">
|
|
<if test="record.transferType != null">
|
|
transfer_type = #{record.transferType,jdbcType=INTEGER},
|
|
transfer_type = #{record.transferType,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="record.fkFcId != null">
|
|
|
|
- fk_fc_id = #{record.fkFcId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="record.fkFarmerId != null">
|
|
|
|
+ fk_farmer_id = #{record.fkFarmerId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.fkCollectiveId != null">
|
|
|
|
+ fk_collective_id = #{record.fkCollectiveId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.serilNo != null">
|
|
<if test="record.serilNo != null">
|
|
seril_no = #{record.serilNo,jdbcType=VARCHAR},
|
|
seril_no = #{record.serilNo,jdbcType=VARCHAR},
|
|
@@ -350,6 +393,18 @@
|
|
<if test="record.state != null">
|
|
<if test="record.state != null">
|
|
state = #{record.state,jdbcType=INTEGER},
|
|
state = #{record.state,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.bankName != null">
|
|
|
|
+ bank_name = #{record.bankName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.bankCode != null">
|
|
|
|
+ bank_code = #{record.bankCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.status != null">
|
|
|
|
+ status = #{record.status,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.transferAmount != null">
|
|
|
|
+ transfer_amount = #{record.transferAmount,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -360,7 +415,8 @@
|
|
set guid = #{record.guid,jdbcType=BIGINT},
|
|
set guid = #{record.guid,jdbcType=BIGINT},
|
|
fk_transfer_id = #{record.fkTransferId,jdbcType=BIGINT},
|
|
fk_transfer_id = #{record.fkTransferId,jdbcType=BIGINT},
|
|
transfer_type = #{record.transferType,jdbcType=INTEGER},
|
|
transfer_type = #{record.transferType,jdbcType=INTEGER},
|
|
- fk_fc_id = #{record.fkFcId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ fk_farmer_id = #{record.fkFarmerId,jdbcType=VARCHAR},
|
|
|
|
+ fk_collective_id = #{record.fkCollectiveId,jdbcType=VARCHAR},
|
|
seril_no = #{record.serilNo,jdbcType=VARCHAR},
|
|
seril_no = #{record.serilNo,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
bank_no = #{record.bankNo,jdbcType=VARCHAR},
|
|
bank_no = #{record.bankNo,jdbcType=VARCHAR},
|
|
@@ -378,7 +434,11 @@
|
|
transfer_id = #{record.transferId,jdbcType=BIGINT},
|
|
transfer_id = #{record.transferId,jdbcType=BIGINT},
|
|
transfer_name = #{record.transferName,jdbcType=VARCHAR},
|
|
transfer_name = #{record.transferName,jdbcType=VARCHAR},
|
|
transfer_time = #{record.transferTime,jdbcType=TIMESTAMP},
|
|
transfer_time = #{record.transferTime,jdbcType=TIMESTAMP},
|
|
- state = #{record.state,jdbcType=INTEGER}
|
|
|
|
|
|
+ state = #{record.state,jdbcType=INTEGER},
|
|
|
|
+ bank_name = #{record.bankName,jdbcType=VARCHAR},
|
|
|
|
+ bank_code = #{record.bankCode,jdbcType=VARCHAR},
|
|
|
|
+ status = #{record.status,jdbcType=INTEGER},
|
|
|
|
+ transfer_amount = #{record.transferAmount,jdbcType=DECIMAL}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -392,8 +452,11 @@
|
|
<if test="transferType != null">
|
|
<if test="transferType != null">
|
|
transfer_type = #{transferType,jdbcType=INTEGER},
|
|
transfer_type = #{transferType,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="fkFcId != null">
|
|
|
|
- fk_fc_id = #{fkFcId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="fkFarmerId != null">
|
|
|
|
+ fk_farmer_id = #{fkFarmerId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="fkCollectiveId != null">
|
|
|
|
+ fk_collective_id = #{fkCollectiveId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="serilNo != null">
|
|
<if test="serilNo != null">
|
|
seril_no = #{serilNo,jdbcType=VARCHAR},
|
|
seril_no = #{serilNo,jdbcType=VARCHAR},
|
|
@@ -449,6 +512,18 @@
|
|
<if test="state != null">
|
|
<if test="state != null">
|
|
state = #{state,jdbcType=INTEGER},
|
|
state = #{state,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="bankName != null">
|
|
|
|
+ bank_name = #{bankName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankCode != null">
|
|
|
|
+ bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="status != null">
|
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transferAmount != null">
|
|
|
|
+ transfer_amount = #{transferAmount,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where guid = #{guid,jdbcType=BIGINT}
|
|
where guid = #{guid,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
@@ -456,7 +531,8 @@
|
|
update b_transfer_detail
|
|
update b_transfer_detail
|
|
set fk_transfer_id = #{fkTransferId,jdbcType=BIGINT},
|
|
set fk_transfer_id = #{fkTransferId,jdbcType=BIGINT},
|
|
transfer_type = #{transferType,jdbcType=INTEGER},
|
|
transfer_type = #{transferType,jdbcType=INTEGER},
|
|
- fk_fc_id = #{fkFcId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ fk_farmer_id = #{fkFarmerId,jdbcType=VARCHAR},
|
|
|
|
+ fk_collective_id = #{fkCollectiveId,jdbcType=VARCHAR},
|
|
seril_no = #{serilNo,jdbcType=VARCHAR},
|
|
seril_no = #{serilNo,jdbcType=VARCHAR},
|
|
name = #{name,jdbcType=VARCHAR},
|
|
name = #{name,jdbcType=VARCHAR},
|
|
bank_no = #{bankNo,jdbcType=VARCHAR},
|
|
bank_no = #{bankNo,jdbcType=VARCHAR},
|
|
@@ -474,7 +550,11 @@
|
|
transfer_id = #{transferId,jdbcType=BIGINT},
|
|
transfer_id = #{transferId,jdbcType=BIGINT},
|
|
transfer_name = #{transferName,jdbcType=VARCHAR},
|
|
transfer_name = #{transferName,jdbcType=VARCHAR},
|
|
transfer_time = #{transferTime,jdbcType=TIMESTAMP},
|
|
transfer_time = #{transferTime,jdbcType=TIMESTAMP},
|
|
- state = #{state,jdbcType=INTEGER}
|
|
|
|
|
|
+ state = #{state,jdbcType=INTEGER},
|
|
|
|
+ bank_name = #{bankName,jdbcType=VARCHAR},
|
|
|
|
+ bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
|
+ transfer_amount = #{transferAmount,jdbcType=DECIMAL}
|
|
where guid = #{guid,jdbcType=BIGINT}
|
|
where guid = #{guid,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
</mapper>
|
|
</mapper>
|