| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?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.document.mapper.CustomercontactMapper">
- <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Customercontact">
- <id column="cc_id" jdbcType="INTEGER" property="id" />
- <result column="cc_cuid" jdbcType="INTEGER" property="cc_cuid" />
- <result column="cc_detno" jdbcType="INTEGER" property="cc_detno" />
- <result column="cc_name" jdbcType="VARCHAR" property="cc_name" />
- <result column="cc_tel" jdbcType="INTEGER" property="cc_tel" />
- <result column="cc_qq" jdbcType="VARCHAR" property="cc_qq" />
- <result column="cc_email" jdbcType="VARCHAR" property="cc_email" />
- <result column="companyid" jdbcType="INTEGER" property="companyId" />
- <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
- <result column="updatetime" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="cc_text1" jdbcType="VARCHAR" property="cc_text1" />
- <result column="cc_text2" jdbcType="VARCHAR" property="cc_text2" />
- <result column="cc_text3" jdbcType="VARCHAR" property="cc_text3" />
- <result column="cc_text4" jdbcType="VARCHAR" property="cc_text4" />
- <result column="cc_text5" jdbcType="VARCHAR" property="cc_text5" />
- </resultMap>
- <sql id="Base_Column_List">
- cc_id, cc_cuid, cc_detno, cc_name, cc_tel, cc_qq, cc_email, companyid, updaterid,
- updatetime, cc_text1, cc_text2, cc_text3, cc_text4, cc_text5
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from customercontact
- where cc_id = #{cc_id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- delete from customercontact
- where cc_id = #{cc_id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Customercontact">
- insert into customercontact (cc_id, cc_cuid, cc_detno,
- cc_name, cc_tel, cc_qq,
- cc_email, companyid, updaterid,
- updatetime, cc_text1, cc_text2,
- cc_text3, cc_text4, cc_text5
- )
- values (#{cc_id,jdbcType=INTEGER}, #{cc_cuid,jdbcType=INTEGER}, #{cc_detno,jdbcType=INTEGER},
- #{cc_name,jdbcType=VARCHAR}, #{cc_tel,jdbcType=INTEGER}, #{cc_qq,jdbcType=VARCHAR},
- #{cc_email,jdbcType=VARCHAR}, #{companyid,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER},
- #{updatetime,jdbcType=TIMESTAMP}, #{cc_text1,jdbcType=VARCHAR}, #{cc_text2,jdbcType=VARCHAR},
- #{cc_text3,jdbcType=VARCHAR}, #{cc_text4,jdbcType=VARCHAR}, #{cc_text5,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Customercontact">
- insert into customercontact
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="cc_id != null">
- cc_id,
- </if>
- <if test="cc_cuid != null">
- cc_cuid,
- </if>
- <if test="cc_detno != null">
- cc_detno,
- </if>
- <if test="cc_name != null">
- cc_name,
- </if>
- <if test="cc_tel != null">
- cc_tel,
- </if>
- <if test="cc_qq != null">
- cc_qq,
- </if>
- <if test="cc_email != null">
- cc_email,
- </if>
- <if test="companyid != null">
- companyid,
- </if>
- <if test="updaterid != null">
- updaterid,
- </if>
- <if test="updatetime != null">
- updatetime,
- </if>
- <if test="cc_text1 != null">
- cc_text1,
- </if>
- <if test="cc_text2 != null">
- cc_text2,
- </if>
- <if test="cc_text3 != null">
- cc_text3,
- </if>
- <if test="cc_text4 != null">
- cc_text4,
- </if>
- <if test="cc_text5 != null">
- cc_text5,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="cc_id != null">
- #{cc_id,jdbcType=INTEGER},
- </if>
- <if test="cc_cuid != null">
- #{cc_cuid,jdbcType=INTEGER},
- </if>
- <if test="cc_detno != null">
- #{cc_detno,jdbcType=INTEGER},
- </if>
- <if test="cc_name != null">
- #{cc_name,jdbcType=VARCHAR},
- </if>
- <if test="cc_tel != null">
- #{cc_tel,jdbcType=INTEGER},
- </if>
- <if test="cc_qq != null">
- #{cc_qq,jdbcType=VARCHAR},
- </if>
- <if test="cc_email != null">
- #{cc_email,jdbcType=VARCHAR},
- </if>
- <if test="companyid != null">
- #{companyid,jdbcType=INTEGER},
- </if>
- <if test="updaterid != null">
- #{updaterid,jdbcType=INTEGER},
- </if>
- <if test="updatetime != null">
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="cc_text1 != null">
- #{cc_text1,jdbcType=VARCHAR},
- </if>
- <if test="cc_text2 != null">
- #{cc_text2,jdbcType=VARCHAR},
- </if>
- <if test="cc_text3 != null">
- #{cc_text3,jdbcType=VARCHAR},
- </if>
- <if test="cc_text4 != null">
- #{cc_text4,jdbcType=VARCHAR},
- </if>
- <if test="cc_text5 != null">
- #{cc_text5,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Customercontact">
- update customercontact
- <set>
- <if test="cc_cuid != null">
- cc_cuid = #{cc_cuid,jdbcType=INTEGER},
- </if>
- <if test="cc_detno != null">
- cc_detno = #{cc_detno,jdbcType=INTEGER},
- </if>
- <if test="cc_name != null">
- cc_name = #{cc_name,jdbcType=VARCHAR},
- </if>
- <if test="cc_tel != null">
- cc_tel = #{cc_tel,jdbcType=INTEGER},
- </if>
- <if test="cc_qq != null">
- cc_qq = #{cc_qq,jdbcType=VARCHAR},
- </if>
- <if test="cc_email != null">
- cc_email = #{cc_email,jdbcType=VARCHAR},
- </if>
- <if test="companyid != null">
- companyid = #{companyid,jdbcType=INTEGER},
- </if>
- <if test="updaterid != null">
- updaterid = #{updaterid,jdbcType=INTEGER},
- </if>
- <if test="updatetime != null">
- updatetime = #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="cc_text1 != null">
- cc_text1 = #{cc_text1,jdbcType=VARCHAR},
- </if>
- <if test="cc_text2 != null">
- cc_text2 = #{cc_text2,jdbcType=VARCHAR},
- </if>
- <if test="cc_text3 != null">
- cc_text3 = #{cc_text3,jdbcType=VARCHAR},
- </if>
- <if test="cc_text4 != null">
- cc_text4 = #{cc_text4,jdbcType=VARCHAR},
- </if>
- <if test="cc_text5 != null">
- cc_text5 = #{cc_text5,jdbcType=VARCHAR},
- </if>
- </set>
- where cc_id = #{cc_id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Customercontact">
- update customercontact
- set cc_cuid = #{cc_cuid,jdbcType=INTEGER},
- cc_detno = #{cc_detno,jdbcType=INTEGER},
- cc_name = #{cc_name,jdbcType=VARCHAR},
- cc_tel = #{cc_tel,jdbcType=INTEGER},
- cc_qq = #{cc_qq,jdbcType=VARCHAR},
- cc_email = #{cc_email,jdbcType=VARCHAR},
- companyid = #{companyid,jdbcType=INTEGER},
- updaterid = #{updaterid,jdbcType=INTEGER},
- updatetime = #{updatetime,jdbcType=TIMESTAMP},
- cc_text1 = #{cc_text1,jdbcType=VARCHAR},
- cc_text2 = #{cc_text2,jdbcType=VARCHAR},
- cc_text3 = #{cc_text3,jdbcType=VARCHAR},
- cc_text4 = #{cc_text4,jdbcType=VARCHAR},
- cc_text5 = #{cc_text5,jdbcType=VARCHAR}
- where cc_id = #{cc_id,jdbcType=INTEGER}
- </update>
- <select id="selectByFK" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from customercontact
- where cc_cuid = #{fk_i,jdbcType=INTEGER}
- </select>
- </mapper>
|