| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?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.goafanti.common.dao.OrganizationSalesTargetMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.OrganizationSalesTarget">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="uid" jdbcType="VARCHAR" property="uid" />
- <result column="keyword" jdbcType="VARCHAR" property="keyword" />
- </resultMap>
- <sql id="Base_Column_List">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- id, `uid`, keyword
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- select
- <include refid="Base_Column_List" />
- from organization_sales_target
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- delete from organization_sales_target
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- insert into organization_sales_target (id, `uid`, keyword
- )
- values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- insert into organization_sales_target
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="uid != null">
- `uid`,
- </if>
- <if test="keyword != null">
- keyword,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=INTEGER},
- </if>
- <if test="uid != null">
- #{uid,jdbcType=VARCHAR},
- </if>
- <if test="keyword != null">
- #{keyword,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- update organization_sales_target
- <set>
- <if test="uid != null">
- `uid` = #{uid,jdbcType=VARCHAR},
- </if>
- <if test="keyword != null">
- keyword = #{keyword,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Jan 04 17:13:29 CST 2021.
- -->
- update organization_sales_target
- set `uid` = #{uid,jdbcType=VARCHAR},
- keyword = #{keyword,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
-
- <insert id="insertBatch" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
- insert into organization_sales_target
- (`uid`, keyword)
- values
- <foreach item="item" index="index" collection="list" separator=",">
- (#{item.uid,jdbcType=VARCHAR},
- #{item.keyword,jdbcType=VARCHAR})
- </foreach>
- </insert>
-
- <delete id="deleteByUid">
- delete from organization_sales_target where uid= #{uid}
- </delete>
- </mapper>
|