|
|
@@ -0,0 +1,139 @@
|
|
|
+<?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" >
|
|
|
+<mapper namespace="com.usoftchina.saas.operation.mapper.CustomerfedbackMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.operation.po.CustomerFedBack" >
|
|
|
+ <id column="cf_id" property="cf_id" jdbcType="INTEGER" />
|
|
|
+ <result column="cf_creator" property="cf_creator" jdbcType="VARCHAR" />
|
|
|
+ <result column="cf_creatime" property="cf_creatime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="cf_creatorid" property="cf_creatorid" jdbcType="INTEGER" />
|
|
|
+ <result column="cf_content" property="cf_content" jdbcType="VARCHAR" />
|
|
|
+ <result column="cf_status" property="cf_status" jdbcType="VARCHAR" />
|
|
|
+ <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" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ cf_id, cf_creator, cf_creatime, cf_creatorid, cf_content, cf_status, cf_companyid,
|
|
|
+ cf_company, cf_remark
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from customerfedback
|
|
|
+ where cf_id = #{cf_id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ delete from customerfedback
|
|
|
+ where cf_id = #{cf_id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.operation.po.CustomerFedBack" >
|
|
|
+ insert into customerfedback (cf_id, cf_creator, cf_creatime,
|
|
|
+ cf_creatorid, cf_content, cf_status,
|
|
|
+ cf_companyid, cf_company, cf_remark
|
|
|
+ )
|
|
|
+ values (#{cf_id,jdbcType=INTEGER}, #{cf_creator,jdbcType=VARCHAR}, #{cf_creatime,jdbcType=TIMESTAMP},
|
|
|
+ #{cf_creatorid,jdbcType=INTEGER}, #{cf_content,jdbcType=VARCHAR}, #{cf_status,jdbcType=VARCHAR},
|
|
|
+ #{cf_companyid,jdbcType=INTEGER}, #{cf_company,jdbcType=VARCHAR}, #{cf_remark,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.operation.po.CustomerFedBack" >
|
|
|
+ <selectKey resultType="java.lang.Long" keyProperty="cf_id">
|
|
|
+ SELECT LAST_INSERT_ID() AS cf_id
|
|
|
+ </selectKey>
|
|
|
+ insert into customerfedback
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="cf_creator != null" >
|
|
|
+ cf_creator,
|
|
|
+ </if>
|
|
|
+ <if test="cf_creatime != null" >
|
|
|
+ cf_creatime,
|
|
|
+ </if>
|
|
|
+ <if test="cf_creatorid != null" >
|
|
|
+ cf_creatorid,
|
|
|
+ </if>
|
|
|
+ <if test="cf_content != null" >
|
|
|
+ cf_content,
|
|
|
+ </if>
|
|
|
+ <if test="cf_status != null" >
|
|
|
+ cf_status,
|
|
|
+ </if>
|
|
|
+ <if test="cf_companyid != null" >
|
|
|
+ cf_companyid,
|
|
|
+ </if>
|
|
|
+ <if test="cf_company != null" >
|
|
|
+ cf_company,
|
|
|
+ </if>
|
|
|
+ <if test="cf_remark != null" >
|
|
|
+ cf_remark,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="cf_creator != null" >
|
|
|
+ #{cf_creator,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_creatime != null" >
|
|
|
+ #{cf_creatime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="cf_creatorid != null" >
|
|
|
+ #{cf_creatorid},
|
|
|
+ </if>
|
|
|
+ <if test="cf_content != null" >
|
|
|
+ #{cf_content,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_status != null" >
|
|
|
+ #{cf_status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_companyid != null" >
|
|
|
+ #{cf_companyid},
|
|
|
+ </if>
|
|
|
+ <if test="cf_company != null" >
|
|
|
+ #{cf_company,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_remark != null" >
|
|
|
+ #{cf_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.operation.po.CustomerFedBack" >
|
|
|
+ update customerfedback
|
|
|
+ <set >
|
|
|
+ <if test="cf_creator != null" >
|
|
|
+ cf_creator = #{cf_creator,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_creatime != null" >
|
|
|
+ cf_creatime = #{cf_creatime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="cf_creatorid != null" >
|
|
|
+ cf_creatorid = #{cf_creatorid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="cf_content != null" >
|
|
|
+ cf_content = #{cf_content,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_status != null" >
|
|
|
+ cf_status = #{cf_status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_companyid != null" >
|
|
|
+ cf_companyid = #{cf_companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="cf_company != null" >
|
|
|
+ cf_company = #{cf_company,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cf_remark != null" >
|
|
|
+ cf_remark = #{cf_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where cf_id = #{cf_id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.operation.po.CustomerFedBack" >
|
|
|
+ update customerfedback
|
|
|
+ set cf_creator = #{cf_creator,jdbcType=VARCHAR},
|
|
|
+ cf_creatime = #{cf_creatime,jdbcType=TIMESTAMP},
|
|
|
+ cf_creatorid = #{cf_creatorid,jdbcType=INTEGER},
|
|
|
+ cf_content = #{cf_content,jdbcType=VARCHAR},
|
|
|
+ cf_status = #{cf_status,jdbcType=VARCHAR},
|
|
|
+ cf_companyid = #{cf_companyid,jdbcType=INTEGER},
|
|
|
+ cf_company = #{cf_company,jdbcType=VARCHAR},
|
|
|
+ cf_remark = #{cf_remark,jdbcType=VARCHAR}
|
|
|
+ where cf_id = #{cf_id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|