|
@@ -5,7 +5,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="cid" jdbcType="VARCHAR" property="cid" />
|
|
<result column="cid" jdbcType="VARCHAR" property="cid" />
|
|
@@ -13,15 +13,16 @@
|
|
|
<result column="follow_date" jdbcType="TIMESTAMP" property="followDate" />
|
|
<result column="follow_date" jdbcType="TIMESTAMP" property="followDate" />
|
|
|
<result column="tm_stamp" jdbcType="TIMESTAMP" property="tmStamp" />
|
|
<result column="tm_stamp" jdbcType="TIMESTAMP" property="tmStamp" />
|
|
|
<result column="follow_result" jdbcType="VARCHAR" property="followResult" />
|
|
<result column="follow_result" jdbcType="VARCHAR" property="followResult" />
|
|
|
- <result column="follow_status" jdbcType="INTEGER" property="followStatus" />
|
|
|
|
|
|
|
+ <result column="follow_situation" jdbcType="INTEGER" property="followSituation" />
|
|
|
<result column="attachment" jdbcType="INTEGER" property="attachment" />
|
|
<result column="attachment" jdbcType="INTEGER" property="attachment" />
|
|
|
<result column="cuid" jdbcType="VARCHAR" property="cuid" />
|
|
<result column="cuid" jdbcType="VARCHAR" property="cuid" />
|
|
|
|
|
+ <result column="customer_status" jdbcType="INTEGER" property="customerStatus" />
|
|
|
</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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -55,7 +56,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -89,15 +90,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
- id, cid, aid, follow_date, tm_stamp, follow_result, follow_status, attachment, cuid
|
|
|
|
|
|
|
+ id, cid, aid, follow_date, tm_stamp, follow_result, follow_situation, attachment,
|
|
|
|
|
+ cuid, customer_status
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.FollowUpRecordExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.FollowUpRecordExample" 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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -116,7 +118,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -127,7 +129,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
delete from follow_up_record
|
|
delete from follow_up_record
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -136,7 +138,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
delete from follow_up_record
|
|
delete from follow_up_record
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -147,22 +149,22 @@
|
|
|
<!--
|
|
<!--
|
|
|
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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
insert into follow_up_record (id, cid, aid,
|
|
insert into follow_up_record (id, cid, aid,
|
|
|
follow_date, tm_stamp, follow_result,
|
|
follow_date, tm_stamp, follow_result,
|
|
|
- follow_status, attachment, cuid
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ follow_situation, attachment, cuid,
|
|
|
|
|
+ customer_status)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{cid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=VARCHAR}, #{cid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR},
|
|
|
#{followDate,jdbcType=TIMESTAMP}, #{tmStamp,jdbcType=TIMESTAMP}, #{followResult,jdbcType=VARCHAR},
|
|
#{followDate,jdbcType=TIMESTAMP}, #{tmStamp,jdbcType=TIMESTAMP}, #{followResult,jdbcType=VARCHAR},
|
|
|
- #{followStatus,jdbcType=INTEGER}, #{attachment,jdbcType=INTEGER}, #{cuid,jdbcType=VARCHAR}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{followSituation,jdbcType=INTEGER}, #{attachment,jdbcType=INTEGER}, #{cuid,jdbcType=VARCHAR},
|
|
|
|
|
+ #{customerStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.FollowUpRecord">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.FollowUpRecord">
|
|
|
<!--
|
|
<!--
|
|
|
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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
insert into follow_up_record
|
|
insert into follow_up_record
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -184,8 +186,8 @@
|
|
|
<if test="followResult != null">
|
|
<if test="followResult != null">
|
|
|
follow_result,
|
|
follow_result,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="followStatus != null">
|
|
|
|
|
- follow_status,
|
|
|
|
|
|
|
+ <if test="followSituation != null">
|
|
|
|
|
+ follow_situation,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="attachment != null">
|
|
<if test="attachment != null">
|
|
|
attachment,
|
|
attachment,
|
|
@@ -193,6 +195,9 @@
|
|
|
<if test="cuid != null">
|
|
<if test="cuid != null">
|
|
|
cuid,
|
|
cuid,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="customerStatus != null">
|
|
|
|
|
+ customer_status,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -213,8 +218,8 @@
|
|
|
<if test="followResult != null">
|
|
<if test="followResult != null">
|
|
|
#{followResult,jdbcType=VARCHAR},
|
|
#{followResult,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="followStatus != null">
|
|
|
|
|
- #{followStatus,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="followSituation != null">
|
|
|
|
|
+ #{followSituation,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="attachment != null">
|
|
<if test="attachment != null">
|
|
|
#{attachment,jdbcType=INTEGER},
|
|
#{attachment,jdbcType=INTEGER},
|
|
@@ -222,13 +227,16 @@
|
|
|
<if test="cuid != null">
|
|
<if test="cuid != null">
|
|
|
#{cuid,jdbcType=VARCHAR},
|
|
#{cuid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="customerStatus != null">
|
|
|
|
|
+ #{customerStatus,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.FollowUpRecordExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.FollowUpRecordExample" 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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
select count(*) from follow_up_record
|
|
select count(*) from follow_up_record
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -239,7 +247,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update follow_up_record
|
|
update follow_up_record
|
|
|
<set>
|
|
<set>
|
|
@@ -261,8 +269,8 @@
|
|
|
<if test="record.followResult != null">
|
|
<if test="record.followResult != null">
|
|
|
follow_result = #{record.followResult,jdbcType=VARCHAR},
|
|
follow_result = #{record.followResult,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.followStatus != null">
|
|
|
|
|
- follow_status = #{record.followStatus,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="record.followSituation != null">
|
|
|
|
|
+ follow_situation = #{record.followSituation,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="record.attachment != null">
|
|
<if test="record.attachment != null">
|
|
|
attachment = #{record.attachment,jdbcType=INTEGER},
|
|
attachment = #{record.attachment,jdbcType=INTEGER},
|
|
@@ -270,6 +278,9 @@
|
|
|
<if test="record.cuid != null">
|
|
<if test="record.cuid != null">
|
|
|
cuid = #{record.cuid,jdbcType=VARCHAR},
|
|
cuid = #{record.cuid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.customerStatus != null">
|
|
|
|
|
+ customer_status = #{record.customerStatus,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" />
|
|
@@ -279,7 +290,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update follow_up_record
|
|
update follow_up_record
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
@@ -288,9 +299,10 @@
|
|
|
follow_date = #{record.followDate,jdbcType=TIMESTAMP},
|
|
follow_date = #{record.followDate,jdbcType=TIMESTAMP},
|
|
|
tm_stamp = #{record.tmStamp,jdbcType=TIMESTAMP},
|
|
tm_stamp = #{record.tmStamp,jdbcType=TIMESTAMP},
|
|
|
follow_result = #{record.followResult,jdbcType=VARCHAR},
|
|
follow_result = #{record.followResult,jdbcType=VARCHAR},
|
|
|
- follow_status = #{record.followStatus,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ follow_situation = #{record.followSituation,jdbcType=INTEGER},
|
|
|
attachment = #{record.attachment,jdbcType=INTEGER},
|
|
attachment = #{record.attachment,jdbcType=INTEGER},
|
|
|
- cuid = #{record.cuid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ cuid = #{record.cuid,jdbcType=VARCHAR},
|
|
|
|
|
+ customer_status = #{record.customerStatus,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>
|
|
@@ -299,7 +311,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update follow_up_record
|
|
update follow_up_record
|
|
|
<set>
|
|
<set>
|
|
@@ -318,8 +330,8 @@
|
|
|
<if test="followResult != null">
|
|
<if test="followResult != null">
|
|
|
follow_result = #{followResult,jdbcType=VARCHAR},
|
|
follow_result = #{followResult,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="followStatus != null">
|
|
|
|
|
- follow_status = #{followStatus,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="followSituation != null">
|
|
|
|
|
+ follow_situation = #{followSituation,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="attachment != null">
|
|
<if test="attachment != null">
|
|
|
attachment = #{attachment,jdbcType=INTEGER},
|
|
attachment = #{attachment,jdbcType=INTEGER},
|
|
@@ -327,6 +339,9 @@
|
|
|
<if test="cuid != null">
|
|
<if test="cuid != null">
|
|
|
cuid = #{cuid,jdbcType=VARCHAR},
|
|
cuid = #{cuid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="customerStatus != null">
|
|
|
|
|
+ customer_status = #{customerStatus,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -334,7 +349,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 Oct 13 09:37:04 CST 2017.
|
|
|
|
|
|
|
+ This element was generated on Tue Oct 17 14:55:38 CST 2017.
|
|
|
-->
|
|
-->
|
|
|
update follow_up_record
|
|
update follow_up_record
|
|
|
set cid = #{cid,jdbcType=VARCHAR},
|
|
set cid = #{cid,jdbcType=VARCHAR},
|
|
@@ -342,9 +357,10 @@
|
|
|
follow_date = #{followDate,jdbcType=TIMESTAMP},
|
|
follow_date = #{followDate,jdbcType=TIMESTAMP},
|
|
|
tm_stamp = #{tmStamp,jdbcType=TIMESTAMP},
|
|
tm_stamp = #{tmStamp,jdbcType=TIMESTAMP},
|
|
|
follow_result = #{followResult,jdbcType=VARCHAR},
|
|
follow_result = #{followResult,jdbcType=VARCHAR},
|
|
|
- follow_status = #{followStatus,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ follow_situation = #{followSituation,jdbcType=INTEGER},
|
|
|
attachment = #{attachment,jdbcType=INTEGER},
|
|
attachment = #{attachment,jdbcType=INTEGER},
|
|
|
- cuid = #{cuid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ cuid = #{cuid,jdbcType=VARCHAR},
|
|
|
|
|
+ customer_status = #{customerStatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
</mapper>
|
|
</mapper>
|