|
|
<?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.yoho.search.dal.UfoScoreProductRuleMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
|
|
|
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.UfoScoreProductRule">
|
|
|
<id column="id" property="id" jdbcType="INTEGER"/>
|
|
|
<result column="product_id" property="productId" jdbcType="INTEGER"/>
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER"/>
|
...
|
...
|
@@ -13,21 +13,21 @@ |
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from score_product_rule
|
|
|
from ufo_score_product_rule
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from score_product_rule
|
|
|
delete from ufo_score_product_rule
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
|
|
|
insert into score_product_rule (id, product_id, update_time,
|
|
|
<insert id="insert" parameterType="com.yoho.search.dal.model.UfoScoreProductRule">
|
|
|
insert into ufo_score_product_rule (id, product_id, update_time,
|
|
|
create_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
|
|
|
insert into score_product_rule
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoScoreProductRule">
|
|
|
insert into ufo_score_product_rule
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
id,
|
...
|
...
|
@@ -57,8 +57,8 @@ |
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
|
|
|
update score_product_rule
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoScoreProductRule">
|
|
|
update ufo_score_product_rule
|
|
|
<set>
|
|
|
<if test="productId != null">
|
|
|
product_id = #{productId,jdbcType=INTEGER},
|
...
|
...
|
@@ -72,8 +72,8 @@ |
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
|
|
|
update score_product_rule
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.UfoScoreProductRule">
|
|
|
update ufo_score_product_rule
|
|
|
set product_id = #{productId,jdbcType=INTEGER},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=INTEGER}
|
...
|
...
|
@@ -81,7 +81,7 @@ |
|
|
</update>
|
|
|
<select id="selectByIdList" resultType="java.lang.Integer">
|
|
|
select product_id
|
|
|
from score_product_rule
|
|
|
from ufo_score_product_rule
|
|
|
where product_id in
|
|
|
<foreach item="item" collection="idList" open="(" separator="," close=")">
|
|
|
#{item}
|
...
|
...
|
|