|
|
@@ -11,6 +11,10 @@
|
|
|
<result column="cf_companyid" property="cf_companyid" jdbcType="INTEGER" />
|
|
|
<result column="cf_company" property="cf_company" jdbcType="VARCHAR" />
|
|
|
<result column="cf_remark" property="cf_remark" jdbcType="VARCHAR" />
|
|
|
+ <result column="cf_name" property="cf_name" jdbcType="VARCHAR" />
|
|
|
+ <result column="cf_qq" property="cf_qq" jdbcType="INTEGER" />
|
|
|
+ <result column="cf_wechat" property="cf_wechat" jdbcType="VARCHAR" />
|
|
|
+ <result column="cf_mobile" property="cf_mobile" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
cf_id, cf_creator, cf_creatime, cf_creatorid, cf_content, cf_status, cf_companyid,
|
|
|
@@ -40,7 +44,7 @@
|
|
|
<selectKey resultType="java.lang.Long" keyProperty="cf_id">
|
|
|
SELECT LAST_INSERT_ID() AS cf_id
|
|
|
</selectKey>
|
|
|
- insert into saas_manage.customerfedback
|
|
|
+ insert into saas_manage.customerfeedback
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="cf_creator != null" >
|
|
|
cf_creator,
|
|
|
@@ -66,6 +70,18 @@
|
|
|
<if test="cf_remark != null" >
|
|
|
cf_remark,
|
|
|
</if>
|
|
|
+ <if test="cf_qq != null" >
|
|
|
+ cf_qq,
|
|
|
+ </if>
|
|
|
+ <if test="cf_wechat != null" >
|
|
|
+ cf_wechat,
|
|
|
+ </if>
|
|
|
+ <if test="cf_name != null" >
|
|
|
+ cf_name,
|
|
|
+ </if>
|
|
|
+ <if test="cf_mobile != null" >
|
|
|
+ cf_mobile,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="cf_creator != null" >
|
|
|
@@ -92,10 +108,22 @@
|
|
|
<if test="cf_remark != null" >
|
|
|
#{cf_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="cf_qq != null" >
|
|
|
+ #{cf_qq},
|
|
|
+ </if>
|
|
|
+ <if test="cf_wechat != null" >
|
|
|
+ #{cf_wechat,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_name != null" >
|
|
|
+ #{cf_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_mobile != null" >
|
|
|
+ #{cf_mobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.operation.po.CustomerFeedBack" >
|
|
|
- update customerfedback
|
|
|
+ update customerfeedback
|
|
|
<set >
|
|
|
<if test="cf_creator != null" >
|
|
|
cf_creator = #{cf_creator,jdbcType=VARCHAR},
|
|
|
@@ -125,7 +153,7 @@
|
|
|
where cf_id = #{cf_id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.operation.po.CustomerFeedBack" >
|
|
|
- update customerfedback
|
|
|
+ update customerfeedback
|
|
|
set cf_creator = #{cf_creator,jdbcType=VARCHAR},
|
|
|
cf_creatime = #{cf_creatime,jdbcType=TIMESTAMP},
|
|
|
cf_creatorid = #{cf_creatorid,jdbcType=INTEGER},
|
|
|
@@ -137,6 +165,6 @@
|
|
|
where cf_id = #{cf_id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<select id="selectByCondition" parameterType="string" resultMap="BaseResultMap">
|
|
|
- select * from saas_manage.customerfedback where #{con}
|
|
|
+ select * from saas_manage.customerfeedback where #{con} order by cf_creatime desc
|
|
|
</select>
|
|
|
</mapper>
|