|
|
@@ -26,12 +26,13 @@
|
|
|
<result column="follow_dep" jdbcType="VARCHAR" property="followDep" />
|
|
|
<result column="follow_explain" jdbcType="VARCHAR" property="followExplain" />
|
|
|
<result column="follow_aname" jdbcType="VARCHAR" property="followAname" />
|
|
|
+ <result column="follow_aid" jdbcType="VARCHAR" property="followAid" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, `uid`, aid, last_follow_time, last_sign_time, create_time, big_customer, update_aid,
|
|
|
update_name, date_update_time, channel_type, chargeback, `member`, last_sales_type,
|
|
|
last_follow_type, follow_number, task_names, sign_number, sign_amount, last_signing_time,
|
|
|
- first_signing_time, follow_dep, follow_explain, follow_aname
|
|
|
+ first_signing_time, follow_dep, follow_explain, follow_aname, follow_aid
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -51,8 +52,8 @@
|
|
|
`member`, last_sales_type, last_follow_type,
|
|
|
follow_number, task_names, sign_number,
|
|
|
sign_amount, last_signing_time, first_signing_time,
|
|
|
- follow_dep, follow_explain, follow_aname
|
|
|
- )
|
|
|
+ follow_dep, follow_explain, follow_aname,
|
|
|
+ follow_aid)
|
|
|
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR},
|
|
|
#{lastFollowTime,jdbcType=TIMESTAMP}, #{lastSignTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{bigCustomer,jdbcType=INTEGER}, #{updateAid,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR},
|
|
|
@@ -60,8 +61,8 @@
|
|
|
#{member,jdbcType=INTEGER}, #{lastSalesType,jdbcType=INTEGER}, #{lastFollowType,jdbcType=INTEGER},
|
|
|
#{followNumber,jdbcType=INTEGER}, #{taskNames,jdbcType=VARCHAR}, #{signNumber,jdbcType=INTEGER},
|
|
|
#{signAmount,jdbcType=DECIMAL}, #{lastSigningTime,jdbcType=DATE}, #{firstSigningTime,jdbcType=DATE},
|
|
|
- #{followDep,jdbcType=VARCHAR}, #{followExplain,jdbcType=VARCHAR}, #{followAname,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ #{followDep,jdbcType=VARCHAR}, #{followExplain,jdbcType=VARCHAR}, #{followAname,jdbcType=VARCHAR},
|
|
|
+ #{followAid,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.UserMid">
|
|
|
insert into user_mid
|
|
|
@@ -138,6 +139,9 @@
|
|
|
<if test="followAname != null">
|
|
|
follow_aname,
|
|
|
</if>
|
|
|
+ <if test="followAid != null">
|
|
|
+ follow_aid,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -212,6 +216,9 @@
|
|
|
<if test="followAname != null">
|
|
|
#{followAname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="followAid != null">
|
|
|
+ #{followAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserMid">
|
|
|
@@ -286,6 +293,9 @@
|
|
|
<if test="followAname != null">
|
|
|
follow_aname = #{followAname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="followAid != null">
|
|
|
+ follow_aid = #{followAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -313,7 +323,8 @@
|
|
|
first_signing_time = #{firstSigningTime,jdbcType=DATE},
|
|
|
follow_dep = #{followDep,jdbcType=VARCHAR},
|
|
|
follow_explain = #{followExplain,jdbcType=VARCHAR},
|
|
|
- follow_aname = #{followAname,jdbcType=VARCHAR}
|
|
|
+ follow_aname = #{followAname,jdbcType=VARCHAR},
|
|
|
+ follow_aid = #{followAid,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
@@ -386,6 +397,9 @@
|
|
|
<if test="followAname != null">
|
|
|
follow_aname = #{followAname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="followAid != null">
|
|
|
+ follow_aid = #{followAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where `uid` = #{uid,jdbcType=VARCHAR}
|
|
|
</update>
|