| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?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.AchievementDemandCountMapper" >
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.AchievementDemandCount" >
- <id column="id" property="id" jdbcType="VARCHAR" />
- <result column="uid" property="uid" jdbcType="VARCHAR" />
- <result column="achievement_count" property="achievementCount" jdbcType="INTEGER" />
- <result column="demand_count" property="demandCount" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, uid, achievement_count, demand_count
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from achievement_demand_count
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from achievement_demand_count
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.AchievementDemandCount" >
- insert into achievement_demand_count (id, uid, achievement_count,
- demand_count)
- values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{achievementCount,jdbcType=INTEGER},
- #{demandCount,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.AchievementDemandCount" >
- insert into achievement_demand_count
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="uid != null" >
- uid,
- </if>
- <if test="achievementCount != null" >
- achievement_count,
- </if>
- <if test="demandCount != null" >
- demand_count,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="uid != null" >
- #{uid,jdbcType=VARCHAR},
- </if>
- <if test="achievementCount != null" >
- #{achievementCount,jdbcType=INTEGER},
- </if>
- <if test="demandCount != null" >
- #{demandCount,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AchievementDemandCount" >
- update achievement_demand_count
- <set >
- <if test="uid != null" >
- uid = #{uid,jdbcType=VARCHAR},
- </if>
- <if test="achievementCount != null" >
- achievement_count = #{achievementCount,jdbcType=INTEGER},
- </if>
- <if test="demandCount != null" >
- demand_count = #{demandCount,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.AchievementDemandCount" >
- update achievement_demand_count
- set uid = #{uid,jdbcType=VARCHAR},
- achievement_count = #{achievementCount,jdbcType=INTEGER},
- demand_count = #{demandCount,jdbcType=INTEGER}
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="selectByUid" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from achievement_demand_count
- where uid = #{uid,jdbcType=VARCHAR}
- </select>
- </mapper>
|