|
@@ -28,13 +28,16 @@
|
|
|
<result column="bank_clearing_msg" jdbcType="VARCHAR" property="bankClearingMsg"/>
|
|
|
<result column="recieve_money" jdbcType="DECIMAL" property="recieveMoney"/>
|
|
|
<result column="actual_money" jdbcType="DECIMAL" property="actualMoney"/>
|
|
|
+ <result column="bank_name" jdbcType="VARCHAR" property="bank_name"/>
|
|
|
+ <result column="bank_code" jdbcType="VARCHAR" property="bank_code"/>
|
|
|
+ <result column="bank_status" jdbcType="INTEGER" property="bank_status"/>
|
|
|
<association property="povertyArea" column="fk_poverty_area_id" select="com.hcloud.microserver.system.bank.dao.PovertyAreaMapper.selectByPrimaryKey"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
guid, fk_poverty_area_id, fk_collective_id, farmer_code, farmer_name, family_num,
|
|
|
sex, pid, nation, education, phone, bank_card_no, income_val, farmer_type, farmer_remark,
|
|
|
farmer_images, village_org, is_enable, state, create_user, create_time, modified_user,
|
|
|
- modified_time, bank_clearing_msg, recieve_money, actual_money
|
|
|
+ modified_time, bank_clearing_msg, recieve_money, actual_money,bank_name,bank_code,bank_status
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -55,7 +58,7 @@
|
|
|
farmer_type, farmer_remark, farmer_images,
|
|
|
village_org, is_enable, state,
|
|
|
create_user, create_time, modified_user,
|
|
|
- modified_time, bank_clearing_msg, recieve_money, actual_money)
|
|
|
+ modified_time, bank_clearing_msg, recieve_money, actual_money,bank_name,bank_code,bank_status)
|
|
|
values (#{guid,jdbcType=CHAR}, #{fkPovertyAreaId,jdbcType=CHAR}, #{fkCollectiveId,jdbcType=CHAR},
|
|
|
#{farmerCode,jdbcType=VARCHAR}, #{farmerName,jdbcType=VARCHAR}, #{familyNum,jdbcType=INTEGER},
|
|
|
#{sex,jdbcType=INTEGER}, #{pid,jdbcType=CHAR}, #{nation,jdbcType=VARCHAR}, #{education,jdbcType=VARCHAR},
|
|
@@ -63,7 +66,8 @@
|
|
|
#{farmerType,jdbcType=VARCHAR}, #{farmerRemark,jdbcType=VARCHAR}, #{farmerImages,jdbcType=VARCHAR},
|
|
|
#{villageOrg,jdbcType=CHAR}, #{isEnable,jdbcType=INTEGER}, #{state,jdbcType=INTEGER},
|
|
|
#{createUser,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifiedUser,jdbcType=CHAR},
|
|
|
- #{modifiedTime,jdbcType=TIMESTAMP}, #{bankClearingMsg,jdbcType=VARCHAR}, #{recieveMoney,jdbcType=DECIMAL}, #{actualMoney,jdbcType=DECIMAL})
|
|
|
+ #{modifiedTime,jdbcType=TIMESTAMP}, #{bankClearingMsg,jdbcType=VARCHAR},
|
|
|
+ #{recieveMoney,jdbcType=DECIMAL}, #{actualMoney,jdbcType=DECIMAL},{bankName,jdbcType=VARCHAR},{bankCode,jdbcType=VARCHAR},{bankStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="FarmerInfo">
|
|
|
insert into t_farmer_info
|
|
@@ -146,6 +150,15 @@
|
|
|
<if test="actualMoney != null">
|
|
|
actual_money,
|
|
|
</if>
|
|
|
+ <if test="bankName != null and bankName != ''">
|
|
|
+ bank_name,
|
|
|
+ </if>
|
|
|
+ <if test="bankCode != null and bankCode != ''">
|
|
|
+ bank_code,
|
|
|
+ </if>
|
|
|
+ <if test="bankStatus != null">
|
|
|
+ bank_status,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="guid != null">
|
|
@@ -226,6 +239,15 @@
|
|
|
<if test="actualMoney != null">
|
|
|
#{actualMoney,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="bankName != null and bankName != ''">
|
|
|
+ #{bankName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankCode != null and bankCode != ''">
|
|
|
+ #{bankCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankStatus != null">
|
|
|
+ {bankStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="FarmerInfo">
|
|
@@ -306,6 +328,15 @@
|
|
|
<if test="actualMoney != null">
|
|
|
actual_money = #{actualMoney,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="bankName != null and bankName != ''">
|
|
|
+ bank_name = #{bankName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankCode != null and bankCode != ''">
|
|
|
+ bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankStatus != null">
|
|
|
+ bank_status = {bankStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
|
</update>
|
|
@@ -335,7 +366,11 @@
|
|
|
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
|
|
|
bank_clearing_msg = #{bankClearingMsg,jdbcType=VARCHAR},
|
|
|
recieve_money = #{recieveMoney,jdbcType=DECIMAL},
|
|
|
- actual_money = #{actualMoney,jdbcType=DECIMAL}
|
|
|
+ actual_money = #{actualMoney,jdbcType=DECIMAL},
|
|
|
+ bank_name = #{bankName,jdbcType=VARCHAR},
|
|
|
+ bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
|
+ bank_status = {bankStatus,jdbcType=INTEGER}
|
|
|
+
|
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
|
</update>
|
|
|
|
|
@@ -410,7 +445,10 @@
|
|
|
#{item.modifiedTime,jdbcType=TIMESTAMP},
|
|
|
#{item.bankClearingMsg,jdbcType=VARCHAR},
|
|
|
#{item.recieveMoney,jdbcType=DECIMAL},
|
|
|
- #{item.actualMoney,jdbcType=DECIMAL})
|
|
|
+ #{item.actualMoney,jdbcType=DECIMAL},
|
|
|
+ {item.bankName,jdbcType=VARCHAR},
|
|
|
+ {item.bankCode,jdbcType=VARCHAR},
|
|
|
+ {item.bankStatus,jdbcType=INTEGER})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -492,6 +530,15 @@
|
|
|
<if test="actualMoney != null">
|
|
|
actual_money = #{actualMoney,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="bankName != null and bankName != ''">
|
|
|
+ bank_name = #{bankName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankCode != null and bankCode != ''">
|
|
|
+ bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankStatus != null">
|
|
|
+ bank_status = {bankStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<where>
|
|
|
fk_collective_id = #{collectiveId,jdbcType=VARCHAR}
|
|
@@ -577,6 +624,15 @@
|
|
|
<if test="farmerInfo.actualMoney != null">
|
|
|
actual_money = #{farmerInfo.actualMoney,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="bankName != null and bankName != ''">
|
|
|
+ bank_name = #{farmerInfo.bankName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankCode != null and bankCode != ''">
|
|
|
+ bank_code = #{farmerInfo.bankCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankStatus != null">
|
|
|
+ bank_status = {farmerInfo.bankStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<where>
|
|
|
guid = #{farmerInfo.guid,jdbcType=VARCHAR}
|
|
@@ -611,7 +667,7 @@
|
|
|
from t_farmer_info
|
|
|
where fk_poverty_area_id = #{povertyId}
|
|
|
</select>
|
|
|
- <select id="getFarmerInfoByGoods" resultType="FarmerInfoBO">
|
|
|
+ <select id="getFarmerInfoByGoods" resultType="com.hcloud.microserver.system.bank.bo.FarmerInfoBO">
|
|
|
SELECT
|
|
|
ee.guid,
|
|
|
ee.fk_collective_id AS collectiveId,
|