|
@@ -1,7 +1,7 @@
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.hcloud.microserver.system.bank.dao.FarmerInfoMapper">
|
|
<mapper namespace="com.hcloud.microserver.system.bank.dao.FarmerInfoMapper">
|
|
- <resultMap id="BaseResultMap" type="FarmerInfo">
|
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.hcloud.microserver.system.facade.carbon.entity.FarmerInfo">
|
|
<id column="guid" jdbcType="CHAR" property="guid"/>
|
|
<id column="guid" jdbcType="CHAR" property="guid"/>
|
|
<result column="fk_poverty_area_id" jdbcType="CHAR" property="fkPovertyAreaId"/>
|
|
<result column="fk_poverty_area_id" jdbcType="CHAR" property="fkPovertyAreaId"/>
|
|
<result column="fk_collective_id" jdbcType="CHAR" property="fkCollectiveId"/>
|
|
<result column="fk_collective_id" jdbcType="CHAR" property="fkCollectiveId"/>
|
|
@@ -28,9 +28,9 @@
|
|
<result column="bank_clearing_msg" jdbcType="VARCHAR" property="bankClearingMsg"/>
|
|
<result column="bank_clearing_msg" jdbcType="VARCHAR" property="bankClearingMsg"/>
|
|
<result column="recieve_money" jdbcType="DECIMAL" property="recieveMoney"/>
|
|
<result column="recieve_money" jdbcType="DECIMAL" property="recieveMoney"/>
|
|
<result column="actual_money" jdbcType="DECIMAL" property="actualMoney"/>
|
|
<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"/>
|
|
|
|
|
|
+ <result column="bank_name" jdbcType="VARCHAR" property="bankName"/>
|
|
|
|
+ <result column="bank_code" jdbcType="VARCHAR" property="bankCode"/>
|
|
|
|
+ <result column="bank_status" jdbcType="INTEGER" property="bankStatus"/>
|
|
<association property="povertyArea" column="fk_poverty_area_id" select="com.hcloud.microserver.system.bank.dao.PovertyAreaMapper.selectByPrimaryKey"/>
|
|
<association property="povertyArea" column="fk_poverty_area_id" select="com.hcloud.microserver.system.bank.dao.PovertyAreaMapper.selectByPrimaryKey"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
@@ -67,7 +67,7 @@
|
|
#{villageOrg,jdbcType=CHAR}, #{isEnable,jdbcType=INTEGER}, #{state,jdbcType=INTEGER},
|
|
#{villageOrg,jdbcType=CHAR}, #{isEnable,jdbcType=INTEGER}, #{state,jdbcType=INTEGER},
|
|
#{createUser,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifiedUser,jdbcType=CHAR},
|
|
#{createUser,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifiedUser,jdbcType=CHAR},
|
|
#{modifiedTime,jdbcType=TIMESTAMP}, #{bankClearingMsg,jdbcType=VARCHAR},
|
|
#{modifiedTime,jdbcType=TIMESTAMP}, #{bankClearingMsg,jdbcType=VARCHAR},
|
|
- #{recieveMoney,jdbcType=DECIMAL}, #{actualMoney,jdbcType=DECIMAL},{bankName,jdbcType=VARCHAR},{bankCode,jdbcType=VARCHAR},{bankStatus,jdbcType=INTEGER})
|
|
|
|
|
|
+ #{recieveMoney,jdbcType=DECIMAL}, #{actualMoney,jdbcType=DECIMAL},#{bankName,jdbcType=VARCHAR},#{bankCode,jdbcType=VARCHAR},#{bankStatus,jdbcType=INTEGER})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="FarmerInfo">
|
|
<insert id="insertSelective" parameterType="FarmerInfo">
|
|
insert into t_farmer_info
|
|
insert into t_farmer_info
|
|
@@ -246,7 +246,7 @@
|
|
#{bankCode,jdbcType=VARCHAR},
|
|
#{bankCode,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="bankStatus != null">
|
|
<if test="bankStatus != null">
|
|
- {bankStatus,jdbcType=INTEGER},
|
|
|
|
|
|
+ #{bankStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
@@ -335,7 +335,7 @@
|
|
bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="bankStatus != null">
|
|
<if test="bankStatus != null">
|
|
- bank_status = {bankStatus,jdbcType=INTEGER},
|
|
|
|
|
|
+ bank_status = #{bankStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
@@ -369,7 +369,7 @@
|
|
actual_money = #{actualMoney,jdbcType=DECIMAL},
|
|
actual_money = #{actualMoney,jdbcType=DECIMAL},
|
|
bank_name = #{bankName,jdbcType=VARCHAR},
|
|
bank_name = #{bankName,jdbcType=VARCHAR},
|
|
bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
bank_code = #{bankCode,jdbcType=VARCHAR},
|
|
- bank_status = {bankStatus,jdbcType=INTEGER}
|
|
|
|
|
|
+ bank_status = #{bankStatus,jdbcType=INTEGER}
|
|
|
|
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
</update>
|
|
</update>
|
|
@@ -666,14 +666,14 @@
|
|
<if test="farmerInfo.actualMoney != null">
|
|
<if test="farmerInfo.actualMoney != null">
|
|
actual_money = #{farmerInfo.actualMoney,jdbcType=DECIMAL},
|
|
actual_money = #{farmerInfo.actualMoney,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="bankName != null and bankName != ''">
|
|
|
|
|
|
+ <if test="farmerInfo.bankName != null and farmerInfo.bankName != ''">
|
|
bank_name = #{farmerInfo.bankName,jdbcType=VARCHAR},
|
|
bank_name = #{farmerInfo.bankName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="bankCode != null and bankCode != ''">
|
|
|
|
|
|
+ <if test="farmerInfo.bankCode != null and farmerInfo.bankCode != ''">
|
|
bank_code = #{farmerInfo.bankCode,jdbcType=VARCHAR},
|
|
bank_code = #{farmerInfo.bankCode,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="bankStatus != null">
|
|
|
|
- bank_status = {farmerInfo.bankStatus,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="farmerInfo.bankStatus != null">
|
|
|
|
+ bank_status = #{farmerInfo.bankStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
<where>
|
|
<where>
|