...
|
...
|
@@ -14,14 +14,7 @@ |
|
|
<sql id="Base_Column_List">
|
|
|
id, activityId, pool_name, comment, productType, diff_type, create_time, shop_id
|
|
|
</sql>
|
|
|
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
|
|
|
SELECT count(*) FROM product_pool
|
|
|
</select>
|
|
|
<select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from product_pool limit #{offset},#{pageSize}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
...
|
...
|
@@ -29,6 +22,7 @@ |
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
limit 1
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByIds" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
...
|
...
|
@@ -40,70 +34,19 @@ |
|
|
#{item}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from product_pool
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
<insert id="insert" parameterType="com.yoho.search.dal.model.ProductPool">
|
|
|
insert into product_pool (id, activityId, pool_name, comment, productType, diff_type, create_time, shop_id)
|
|
|
values (#{id,jdbcType=INTEGER}, #{activityId,jdbcType=INTEGER}, #{poolName,jdbcType=VARCHAR},
|
|
|
#{comment,jdbcType=VARCHAR}, #{productType,jdbcType=CHAR}, #{diffType,jdbcType=CHAR}, #{createTime,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ProductPool">
|
|
|
insert into product_pool
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="activityId != null">
|
|
|
activityId,
|
|
|
</if>
|
|
|
<if test="pool_name != null">
|
|
|
poolName,
|
|
|
</if>
|
|
|
<if test="comment != null">
|
|
|
comment,
|
|
|
</if>
|
|
|
<if test="productType != null">
|
|
|
productType,
|
|
|
</if>
|
|
|
<if test="diffType != null">
|
|
|
diff_type,
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
<if test="shopId != null">
|
|
|
shop_id,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="activityId != null">
|
|
|
#{activityId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="poolName != null">
|
|
|
#{poolName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="comment != null">
|
|
|
#{comment,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="productType != null">
|
|
|
#{productType,jdbcType=CHAR},
|
|
|
</if>
|
|
|
<if test="diffType != null">
|
|
|
#{diffType,jdbcType=CHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="shopId != null">
|
|
|
#{shopId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ProductPool">
|
|
|
update product_pool
|
|
|
<set>
|
...
|
...
|
@@ -131,15 +74,5 @@ |
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.ProductPool">
|
|
|
update product_pool
|
|
|
set activityId = #{activityId,jdbcType=INTEGER},
|
|
|
pool_name = #{poolName,jdbcType=INTEGER},
|
|
|
comment = #{comment,jdbcType=INTEGER},
|
|
|
productType = #{productType,jdbcType=CHAR},
|
|
|
diff_type = #{diffType,jdbcType=CHAR},
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
shop_id = #{shopId,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|