123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?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.juxiao.xchat.module.xbd.mapper.system.DingTalksConfigMapper">
- <resultMap id="BaseResultMap" type="com.juxiao.xchat.module.xbd.domain.system.DingTalksConfig" >
- <id column="id" property="id" jdbcType="BIGINT" />
- <result column="type" property="type" jdbcType="INTEGER" />
- <result column="url" property="url" jdbcType="VARCHAR" />
- <result column="mobiles" property="mobiles" jdbcType="VARCHAR" />
- <result column="at_all" property="atAll" jdbcType="INTEGER" />
- <result column="is_def" property="isDef" jdbcType="INTEGER"/>
- <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, type, url, mobiles, at_all, create_date,is_def
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
- select
- <include refid="Base_Column_List" />
- from ding_talks_config
- where id = #{id,jdbcType=BIGINT}
- </select>
- <insert id="insert" parameterType="com.juxiao.xchat.module.xbd.domain.system.DingTalksConfig" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
- insert into ding_talks_config (id, type, url,
- mobiles, at_all, create_date
- )
- values (#{id,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR},
- #{mobiles,jdbcType=VARCHAR}, #{atAll,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.juxiao.xchat.module.xbd.domain.system.DingTalksConfig" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
- insert into ding_talks_config
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="type != null" >
- type,
- </if>
- <if test="url != null" >
- url,
- </if>
- <if test="mobiles != null" >
- mobiles,
- </if>
- <if test="atAll != null" >
- at_all,
- </if>
- <if test="createDate != null" >
- create_date,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=BIGINT},
- </if>
- <if test="type != null" >
- #{type,jdbcType=INTEGER},
- </if>
- <if test="url != null" >
- #{url,jdbcType=VARCHAR},
- </if>
- <if test="mobiles != null" >
- #{mobiles,jdbcType=VARCHAR},
- </if>
- <if test="atAll != null" >
- #{atAll,jdbcType=INTEGER},
- </if>
- <if test="createDate != null" >
- #{createDate,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.juxiao.xchat.module.xbd.domain.system.DingTalksConfig" >
- update ding_talks_config
- <set >
- <if test="type != null" >
- type = #{type,jdbcType=INTEGER},
- </if>
- <if test="url != null" >
- url = #{url,jdbcType=VARCHAR},
- </if>
- <if test="mobiles != null" >
- mobiles = #{mobiles,jdbcType=VARCHAR},
- </if>
- <if test="atAll != null" >
- at_all = #{atAll,jdbcType=INTEGER},
- </if>
- <if test="createDate != null" >
- create_date = #{createDate,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.juxiao.xchat.module.xbd.domain.system.DingTalksConfig" >
- update ding_talks_config
- set type = #{type,jdbcType=INTEGER},
- url = #{url,jdbcType=VARCHAR},
- mobiles = #{mobiles,jdbcType=VARCHAR},
- at_all = #{atAll,jdbcType=INTEGER},
- create_date = #{createDate,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=BIGINT}
- </update>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
- delete from ding_talks_config
- where id = #{id,jdbcType=BIGINT}
- </delete>
- <select id="selectDingTalksConfigByPage" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from ding_talks_config
- where 1 = 1
- <if test="type != null"> and type = #{type}</if>
- </select>
- </mapper>
|