|
@@ -5,19 +5,21 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="follow_id" jdbcType="VARCHAR" property="followId" />
|
|
<result column="follow_id" jdbcType="VARCHAR" property="followId" />
|
|
|
<result column="business_id" jdbcType="VARCHAR" property="businessId" />
|
|
<result column="business_id" jdbcType="VARCHAR" property="businessId" />
|
|
|
<result column="follow_situation" jdbcType="INTEGER" property="followSituation" />
|
|
<result column="follow_situation" jdbcType="INTEGER" property="followSituation" />
|
|
|
<result column="customer_status" jdbcType="INTEGER" property="customerStatus" />
|
|
<result column="customer_status" jdbcType="INTEGER" property="customerStatus" />
|
|
|
|
|
+ <result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
|
|
+ <result column="business_glossory_id" jdbcType="INTEGER" property="businessGlossoryId" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -51,7 +53,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -85,15 +87,15 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
- id, follow_id, business_id, follow_situation, customer_status
|
|
|
|
|
|
|
+ id, follow_id, business_id, follow_situation, customer_status, remarks, business_glossory_id
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.UserFollowBusinessExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.UserFollowBusinessExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -112,7 +114,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -123,7 +125,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
delete from user_follow_business
|
|
delete from user_follow_business
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -132,7 +134,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
delete from user_follow_business
|
|
delete from user_follow_business
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -143,18 +145,20 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
insert into user_follow_business (id, follow_id, business_id,
|
|
insert into user_follow_business (id, follow_id, business_id,
|
|
|
- follow_situation, customer_status)
|
|
|
|
|
|
|
+ follow_situation, customer_status, remarks,
|
|
|
|
|
+ business_glossory_id)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{followId,jdbcType=VARCHAR}, #{businessId,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=VARCHAR}, #{followId,jdbcType=VARCHAR}, #{businessId,jdbcType=VARCHAR},
|
|
|
- #{followSituation,jdbcType=INTEGER}, #{customerStatus,jdbcType=INTEGER})
|
|
|
|
|
|
|
+ #{followSituation,jdbcType=INTEGER}, #{customerStatus,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ #{businessGlossoryId,jdbcType=INTEGER})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.UserFollowBusiness">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.UserFollowBusiness">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
insert into user_follow_business
|
|
insert into user_follow_business
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -173,6 +177,12 @@
|
|
|
<if test="customerStatus != null">
|
|
<if test="customerStatus != null">
|
|
|
customer_status,
|
|
customer_status,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="remarks != null">
|
|
|
|
|
+ remarks,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessGlossoryId != null">
|
|
|
|
|
+ business_glossory_id,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -190,13 +200,19 @@
|
|
|
<if test="customerStatus != null">
|
|
<if test="customerStatus != null">
|
|
|
#{customerStatus,jdbcType=INTEGER},
|
|
#{customerStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="remarks != null">
|
|
|
|
|
+ #{remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessGlossoryId != null">
|
|
|
|
|
+ #{businessGlossoryId,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.UserFollowBusinessExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.UserFollowBusinessExample" resultType="java.lang.Long">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
select count(*) from user_follow_business
|
|
select count(*) from user_follow_business
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -207,7 +223,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update user_follow_business
|
|
update user_follow_business
|
|
|
<set>
|
|
<set>
|
|
@@ -226,6 +242,12 @@
|
|
|
<if test="record.customerStatus != null">
|
|
<if test="record.customerStatus != null">
|
|
|
customer_status = #{record.customerStatus,jdbcType=INTEGER},
|
|
customer_status = #{record.customerStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.remarks != null">
|
|
|
|
|
+ remarks = #{record.remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.businessGlossoryId != null">
|
|
|
|
|
+ business_glossory_id = #{record.businessGlossoryId,jdbcType=INTEGER},
|
|
|
|
|
+ </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" />
|
|
@@ -235,14 +257,16 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update user_follow_business
|
|
update user_follow_business
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
follow_id = #{record.followId,jdbcType=VARCHAR},
|
|
follow_id = #{record.followId,jdbcType=VARCHAR},
|
|
|
business_id = #{record.businessId,jdbcType=VARCHAR},
|
|
business_id = #{record.businessId,jdbcType=VARCHAR},
|
|
|
follow_situation = #{record.followSituation,jdbcType=INTEGER},
|
|
follow_situation = #{record.followSituation,jdbcType=INTEGER},
|
|
|
- customer_status = #{record.customerStatus,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ customer_status = #{record.customerStatus,jdbcType=INTEGER},
|
|
|
|
|
+ remarks = #{record.remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ business_glossory_id = #{record.businessGlossoryId,jdbcType=INTEGER}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -251,7 +275,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update user_follow_business
|
|
update user_follow_business
|
|
|
<set>
|
|
<set>
|
|
@@ -267,6 +291,12 @@
|
|
|
<if test="customerStatus != null">
|
|
<if test="customerStatus != null">
|
|
|
customer_status = #{customerStatus,jdbcType=INTEGER},
|
|
customer_status = #{customerStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="remarks != null">
|
|
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessGlossoryId != null">
|
|
|
|
|
+ business_glossory_id = #{businessGlossoryId,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -274,13 +304,15 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 10 19:10:10 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Sat Nov 18 16:17:07 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update user_follow_business
|
|
update user_follow_business
|
|
|
set follow_id = #{followId,jdbcType=VARCHAR},
|
|
set follow_id = #{followId,jdbcType=VARCHAR},
|
|
|
business_id = #{businessId,jdbcType=VARCHAR},
|
|
business_id = #{businessId,jdbcType=VARCHAR},
|
|
|
follow_situation = #{followSituation,jdbcType=INTEGER},
|
|
follow_situation = #{followSituation,jdbcType=INTEGER},
|
|
|
- customer_status = #{customerStatus,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ customer_status = #{customerStatus,jdbcType=INTEGER},
|
|
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ business_glossory_id = #{businessGlossoryId,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
</mapper>
|
|
</mapper>
|