Authored by YOHO01\aaron.wang

ufo用真实表名类名 修改表名 test

... ... @@ -18,17 +18,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short">
select
<include refid="Base_Column_List"/>
from ufo_brand
from brand
where id = #{id,jdbcType=SMALLINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
delete from ufo_brand
delete from brand
where id = #{id,jdbcType=SMALLINT}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.Brand" >
insert into ufo_brand
insert into brand
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -72,7 +72,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.Brand">
update ufo_brand
update brand
<set>
<if test="brandName != null">
brand_name = #{brandName,jdbcType=VARCHAR},
... ... @@ -97,7 +97,7 @@
<select id="selectByIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_brand
from brand
WHERE
id in
<foreach item="item" index="index" collection="list"
... ... @@ -108,13 +108,13 @@
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
select count(*) from ufo_brand
select count(*) from brand
</select>
<select id="selectPageList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_brand limit #{offset},#{pageSize}
from brand limit #{offset},#{pageSize}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -19,17 +19,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short">
select
<include refid="Base_Column_List"/>
from ufo_brand_series
from brand_series
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
delete from ufo_brand_series
delete from brand_series
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.BrandSeries">
insert into ufo_brand_series
insert into brand_series
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
... ... @@ -79,7 +79,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.BrandSeries">
update ufo_brand_series
update brand_series
<set>
<if test="seriesName != null">
series_name = #{seriesName,jdbcType=VARCHAR},
... ... @@ -106,7 +106,7 @@
<select id="selectByIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_brand_series
from brand_series
WHERE
status =1
AND
... ... @@ -120,7 +120,7 @@
<select id="selectByBrandIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_brand_series
from brand_series
WHERE brand_id in
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
... ... @@ -131,7 +131,7 @@
<select id="selectPageList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_brand_series limit #{offset},#{pageSize}
from brand_series limit #{offset},#{pageSize}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -16,15 +16,15 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from ufo_buyer_order_goods
from buyer_order_goods
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from ufo_buyer_order_goods
delete from buyer_order_goods
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
insert into ufo_buyer_order_goods (id, order_code, skup,
insert into buyer_order_goods (id, order_code, skup,
goods_price, goods_amount, uid,
coupon_cut_amount)
values (#{id,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{skup,jdbcType=INTEGER},
... ... @@ -32,7 +32,7 @@
#{couponCutAmount,jdbcType=DECIMAL})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
insert into ufo_buyer_order_goods
insert into buyer_order_goods
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -81,7 +81,7 @@
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
update ufo_buyer_order_goods
update buyer_order_goods
<set >
<if test="orderCode != null" >
order_code = #{orderCode,jdbcType=BIGINT},
... ... @@ -105,7 +105,7 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
update ufo_buyer_order_goods
update buyer_order_goods
set order_code = #{orderCode,jdbcType=BIGINT},
skup = #{skup,jdbcType=INTEGER},
goods_price = #{goodsPrice,jdbcType=DECIMAL},
... ... @@ -118,7 +118,7 @@
<select id="selectBySkupList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_buyer_order_goods
from buyer_order_goods
WHERE
skup in
<foreach item="item" index="index" collection="list"
... ...
... ... @@ -27,15 +27,15 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from ufo_buyer_order
from buyer_order
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from ufo_buyer_order
delete from buyer_order
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrder" >
insert into ufo_buyer_order (id, uid, order_code,
insert into buyer_order (id, uid, order_code,
seller_uid, client_type, payment,
payment_type, is_cancel, amount,
ship_fee, status, create_time,
... ... @@ -49,7 +49,7 @@
#{channelNo,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrder" >
insert into ufo_buyer_order
insert into buyer_order
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -152,7 +152,7 @@
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrder" >
update ufo_buyer_order
update buyer_order
<set >
<if test="uid != null" >
uid = #{uid,jdbcType=INTEGER},
... ... @@ -203,7 +203,7 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrder" >
update ufo_buyer_order
update buyer_order
set uid = #{uid,jdbcType=INTEGER},
order_code = #{orderCode,jdbcType=BIGINT},
seller_uid = #{sellerUid,jdbcType=INTEGER},
... ... @@ -224,7 +224,7 @@
<select id="selectByOrderCodeList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_buyer_order
from buyer_order
WHERE
order_code in
<foreach item="item" index="index" collection="list"
... ...
... ... @@ -18,17 +18,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from ufo_goods_images
from goods_images
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from ufo_goods_images
delete from goods_images
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.GoodsImages" >
insert into ufo_goods_images
insert into goods_images
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -72,7 +72,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.GoodsImages">
update ufo_goods_images
update goods_images
<set>
<if test="goodsId != null">
goods_id = #{goodsId,jdbcType=INTEGER},
... ... @@ -96,7 +96,7 @@
<select id="selectByProductIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_goods_images
from goods_images
WHERE product_id in
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
... ...
... ... @@ -19,17 +19,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from ufo_goods
from goods
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from ufo_goods
delete from goods
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.Goods" >
insert into ufo_goods
insert into goods
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -79,7 +79,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.Goods" >
update ufo_goods
update goods
<set >
<if test="productId != null" >
product_id = #{productId,jdbcType=INTEGER},
... ... @@ -106,7 +106,7 @@
<select id="selectByProductIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_goods
from goods
WHERE product_id in
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
... ...
... ... @@ -16,17 +16,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short" >
select
<include refid="Base_Column_List" />
from ufo_product_color
from product_color
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short" >
delete from ufo_product_color
delete from product_color
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductColor" >
insert into ufo_product_color
insert into product_color
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -58,7 +58,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductColor" >
update ufo_product_color
update product_color
<set >
<if test="colorName != null" >
color_name = #{colorName,jdbcType=VARCHAR},
... ... @@ -75,13 +75,13 @@
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
select count(*) from ufo_product_color
select count(*) from product_color
</select>
<select id="selectPageList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_product_color limit #{offset},#{pageSize}
from product_color limit #{offset},#{pageSize}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yoho.search.dal.UfoProductMapper">
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.ufo_product.Product">
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.product.Product">
<id column="id" property="id" jdbcType="INTEGER"/>
<result column="product_name" property="productName" jdbcType="VARCHAR"/>
<result column="product_code" property="productCode" jdbcType="VARCHAR"/>
... ... @@ -32,17 +32,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from ufo_product
from product
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from ufo_product
delete from product
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.Product" >
insert into ufo_product
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.product.Product" >
insert into product
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -157,8 +157,8 @@
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.Product">
update ufo_product
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.product.Product">
update product
<set>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
... ... @@ -216,19 +216,19 @@
</update>
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
select count(*) from ufo_product
select count(*) from product
</select>
<select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_product limit #{offset},#{pageSize}
from product limit #{offset},#{pageSize}
</select>
<select id="selectByIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_product
from product
WHERE
id in
<foreach item="item" index="index" collection="list"
... ... @@ -240,7 +240,7 @@
<select id="selectByBrandId" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_product
from product
where brand_id = #{brandId,jdbcType=INTEGER}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -17,17 +17,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from ufo_product_pool_detail
from product_pool_detail
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from ufo_product_pool_detail
delete from product_pool_detail
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductPoolDetail" >
insert into ufo_product_pool_detail
insert into product_pool_detail
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -65,7 +65,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductPoolDetail">
update ufo_product_pool_detail
update product_pool_detail
<set>
<if test="poolId != null">
pool_id = #{poolId,jdbcType=INTEGER},
... ... @@ -86,7 +86,7 @@
<select id="selectByProductId" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_product_pool_detail
from product_pool_detail
WHERE product_id = #{productId,jdbcType=INTEGER}
</select>
... ...
... ... @@ -15,17 +15,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from ufo_product_pool
from product_pool
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from ufo_product_pool
delete from product_pool
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductPool" >
insert into ufo_product_pool
insert into product_pool
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -51,7 +51,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductPool" >
update ufo_product_pool
update product_pool
<set >
<if test="poolName != null" >
pool_name = #{poolName,jdbcType=VARCHAR},
... ...
... ... @@ -18,17 +18,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short">
select
<include refid="Base_Column_List"/>
from ufo_product_sort
from product_sort
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
delete from ufo_product_sort
delete from product_sort
where id = #{id,jdbcType=SMALLINT}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductSort" >
insert into ufo_product_sort
insert into product_sort
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -72,7 +72,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.ProductSort" >
update ufo_product_sort
update product_sort
<set >
<if test="sortName != null" >
sort_name = #{sortName,jdbcType=VARCHAR},
... ... @@ -96,7 +96,7 @@
<select id="selectByIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_product_sort
from product_sort
WHERE id in
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
... ... @@ -105,13 +105,13 @@
</select>
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
select count(*) from ufo_product_sort
select count(*) from product_sort
</select>
<select id="selectPageList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_product_sort limit #{offset},#{pageSize}
from product_sort limit #{offset},#{pageSize}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -13,21 +13,21 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from ufo_score_product_rule
from score_product_rule
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from ufo_score_product_rule
delete from score_product_rule
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
insert into ufo_score_product_rule (id, product_id, update_time,
insert into 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 ufo_score_product_rule
insert into score_product_rule
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
... ... @@ -58,7 +58,7 @@
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
update ufo_score_product_rule
update score_product_rule
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=INTEGER},
... ... @@ -73,7 +73,7 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.ufo_product.ScoreProductRule">
update ufo_score_product_rule
update 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 ufo_score_product_rule
from score_product_rule
where product_id in
<foreach item="item" collection="idList" open="(" separator="," close=")">
#{item}
... ...
... ... @@ -14,24 +14,24 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from ufo_search_sort_relation
from search_sort_relation
where ufo_sort_id = #{ufoSortId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from ufo_search_sort_relation
delete from search_sort_relation
where ufo_sort_id = #{ufoSortId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.search.dal.model.ufo_product.SearchSortRelation">
insert into ufo_search_sort_relation (ufo_sort_id, yoho_sort_id, yoho_small_sort_id
insert into search_sort_relation (ufo_sort_id, yoho_sort_id, yoho_small_sort_id
)
values (#{ufoSortId,jdbcType=INTEGER}, #{yohoSortId,jdbcType=INTEGER}, #{yohoSmallSortId,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.SearchSortRelation" >
insert into ufo_search_sort_relation
insert into search_sort_relation
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="ufoSortId != null" >
ufo_sort_id,
... ... @@ -57,7 +57,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.SearchSortRelation">
update ufo_search_sort_relation
update search_sort_relation
<set>
<if test="yohoSortId != null">
yoho_sort_id = #{yohoSortId,jdbcType=INTEGER},
... ... @@ -70,7 +70,7 @@
</update>
<insert id="insertBatch" parameterType="java.util.List" timeout="20000">
insert ignore into ufo_search_sort_relation (ufo_sort_id,yoho_sort_id,yoho_small_sort_id)
insert ignore into search_sort_relation (ufo_sort_id,yoho_sort_id,yoho_small_sort_id)
values
<foreach collection="list" item="item" index="index"
separator=",">
... ... @@ -81,14 +81,14 @@
</insert>
<delete id="deleteAll">
delete from ufo_search_sort_relation
delete from search_sort_relation
where 1=1
</delete>
<select id="selectAll" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_search_sort_relation
from search_sort_relation
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -16,17 +16,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short">
select
<include refid="Base_Column_List"/>
from ufo_size
from size
where id = #{id,jdbcType=SMALLINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
delete from ufo_size
delete from size
where id = #{id,jdbcType=SMALLINT}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.Size" >
insert into ufo_size
insert into size
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -58,7 +58,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.Size">
update ufo_size
update size
<set>
<if test="sizeName != null">
size_name = #{sizeName,jdbcType=VARCHAR},
... ... @@ -74,12 +74,12 @@
</update>
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
select count(*) from ufo_size
select count(*) from size
</select>
<select id="selectPageList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_size limit #{offset},#{pageSize}
from size limit #{offset},#{pageSize}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -20,17 +20,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from ufo_storage
from storage
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from ufo_storage
delete from storage
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.Storage" >
insert into ufo_storage
insert into storage
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -80,7 +80,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.Storage" >
update ufo_storage
update storage
<set >
<if test="productId != null" >
product_id = #{productId,jdbcType=INTEGER},
... ... @@ -107,7 +107,7 @@
<select id="selectByProductIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_storage
from storage
WHERE product_id in
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
... ...
... ... @@ -24,17 +24,17 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from ufo_storage_price
from storage_price
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from ufo_storage_price
delete from storage_price
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_product.StoragePrice" >
insert into ufo_storage_price
insert into storage_price
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
... ... @@ -108,7 +108,7 @@
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_product.StoragePrice">
update ufo_storage_price
update storage_price
<set>
<if test="skup != null">
skup = #{skup,jdbcType=INTEGER},
... ... @@ -147,7 +147,7 @@
<select id="selectByProductIdList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List"/>
from ufo_storage_price
from storage_price
where
product_id in
<foreach item="item" index="index" collection="list"
... ...