...
|
...
|
@@ -10,9 +10,10 @@ |
|
|
<result column="diff_type" property="diffType" jdbcType="CHAR"/>
|
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER"/>
|
|
|
<result column="shop_id" property="shopId" jdbcType="INTEGER"/>
|
|
|
<result column="backImageUrl" property="backImageUrl" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, activityId, pool_name, comment, productType, diff_type, create_time, shop_id
|
|
|
id, activityId, pool_name, comment, productType, diff_type, create_time, shop_id, backImageUrl
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
...
|
...
|
@@ -42,9 +43,10 @@ |
|
|
|
|
|
|
|
|
<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)
|
|
|
insert into product_pool (id, activityId, pool_name, comment, productType, diff_type, create_time, shop_id, backImageUrl)
|
|
|
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})
|
|
|
#{comment,jdbcType=VARCHAR}, #{productType,jdbcType=CHAR}, #{diffType,jdbcType=CHAR},
|
|
|
#{createTime,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER}, #{backImageUrl,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ProductPool">
|
...
|
...
|
@@ -71,8 +73,21 @@ |
|
|
<if test="shopId != null">
|
|
|
shop_id = #{shopId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="backImageUrl != null">
|
|
|
backImageUrl = #{backImageUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
|
|
|
SELECT count(1) FROM product_pool
|
|
|
</select>
|
|
|
|
|
|
<select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from product_pool limit #{offset},#{pageSize}
|
|
|
</select>
|
|
|
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|