Showing
25 changed files
with
705 additions
and
25 deletions
@@ -9,6 +9,8 @@ public interface UfoStoragePriceMapper { | @@ -9,6 +9,8 @@ public interface UfoStoragePriceMapper { | ||
9 | 9 | ||
10 | int insert(UfoStoragePrice record); | 10 | int insert(UfoStoragePrice record); |
11 | 11 | ||
12 | + int insertSelective(UfoStoragePrice record); | ||
13 | + | ||
12 | UfoStoragePrice selectByPrimaryKey(Integer id); | 14 | UfoStoragePrice selectByPrimaryKey(Integer id); |
13 | 15 | ||
14 | int updateByPrimaryKeySelective(UfoStoragePrice record); | 16 | int updateByPrimaryKeySelective(UfoStoragePrice record); |
@@ -36,6 +36,74 @@ | @@ -36,6 +36,74 @@ | ||
36 | ) | 36 | ) |
37 | </insert> | 37 | </insert> |
38 | 38 | ||
39 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoBrand" > | ||
40 | + insert into ufo_brand | ||
41 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
42 | + <if test="id != null" > | ||
43 | + id, | ||
44 | + </if> | ||
45 | + <if test="brandName != null" > | ||
46 | + brand_name, | ||
47 | + </if> | ||
48 | + <if test="brandNameEn != null" > | ||
49 | + brand_name_en, | ||
50 | + </if> | ||
51 | + <if test="brandLogo != null" > | ||
52 | + brand_logo, | ||
53 | + </if> | ||
54 | + <if test="brandSearch != null" > | ||
55 | + brand_search, | ||
56 | + </if> | ||
57 | + <if test="status != null" > | ||
58 | + status, | ||
59 | + </if> | ||
60 | + <if test="createTime != null" > | ||
61 | + create_time, | ||
62 | + </if> | ||
63 | + <if test="editTime != null" > | ||
64 | + edit_time, | ||
65 | + </if> | ||
66 | + <if test="editPid != null" > | ||
67 | + edit_pid, | ||
68 | + </if> | ||
69 | + <if test="orderBy != null" > | ||
70 | + order_by, | ||
71 | + </if> | ||
72 | + </trim> | ||
73 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
74 | + <if test="id != null" > | ||
75 | + #{id,jdbcType=SMALLINT}, | ||
76 | + </if> | ||
77 | + <if test="brandName != null" > | ||
78 | + #{brandName,jdbcType=VARCHAR}, | ||
79 | + </if> | ||
80 | + <if test="brandNameEn != null" > | ||
81 | + #{brandNameEn,jdbcType=VARCHAR}, | ||
82 | + </if> | ||
83 | + <if test="brandLogo != null" > | ||
84 | + #{brandLogo,jdbcType=VARCHAR}, | ||
85 | + </if> | ||
86 | + <if test="brandSearch != null" > | ||
87 | + #{brandSearch,jdbcType=VARCHAR}, | ||
88 | + </if> | ||
89 | + <if test="status != null" > | ||
90 | + #{status,jdbcType=TINYINT}, | ||
91 | + </if> | ||
92 | + <if test="createTime != null" > | ||
93 | + #{createTime,jdbcType=INTEGER}, | ||
94 | + </if> | ||
95 | + <if test="editTime != null" > | ||
96 | + #{editTime,jdbcType=INTEGER}, | ||
97 | + </if> | ||
98 | + <if test="editPid != null" > | ||
99 | + #{editPid,jdbcType=INTEGER}, | ||
100 | + </if> | ||
101 | + <if test="orderBy != null" > | ||
102 | + #{orderBy,jdbcType=INTEGER}, | ||
103 | + </if> | ||
104 | + </trim> | ||
105 | + </insert> | ||
106 | + | ||
39 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoBrand"> | 107 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoBrand"> |
40 | update ufo_brand | 108 | update ufo_brand |
41 | <set> | 109 | <set> |
@@ -37,6 +37,56 @@ | @@ -37,6 +37,56 @@ | ||
37 | #{brandId,jdbcType=INTEGER}) | 37 | #{brandId,jdbcType=INTEGER}) |
38 | </insert> | 38 | </insert> |
39 | 39 | ||
40 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoBrandSeries" > | ||
41 | + insert into ufo_brand_series | ||
42 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
43 | + <if test="id != null" > | ||
44 | + id, | ||
45 | + </if> | ||
46 | + <if test="seriesName != null" > | ||
47 | + series_name, | ||
48 | + </if> | ||
49 | + <if test="seriesSearch != null" > | ||
50 | + series_search, | ||
51 | + </if> | ||
52 | + <if test="status != null" > | ||
53 | + status, | ||
54 | + </if> | ||
55 | + <if test="createTime != null" > | ||
56 | + create_time, | ||
57 | + </if> | ||
58 | + <if test="updateTime != null" > | ||
59 | + update_time, | ||
60 | + </if> | ||
61 | + <if test="brandId != null" > | ||
62 | + brand_id, | ||
63 | + </if> | ||
64 | + </trim> | ||
65 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
66 | + <if test="id != null" > | ||
67 | + #{id,jdbcType=SMALLINT}, | ||
68 | + </if> | ||
69 | + <if test="seriesName != null" > | ||
70 | + #{seriesName,jdbcType=VARCHAR}, | ||
71 | + </if> | ||
72 | + <if test="seriesSearch != null" > | ||
73 | + #{seriesSearch,jdbcType=VARCHAR}, | ||
74 | + </if> | ||
75 | + <if test="status != null" > | ||
76 | + #{status,jdbcType=TINYINT}, | ||
77 | + </if> | ||
78 | + <if test="createTime != null" > | ||
79 | + #{createTime,jdbcType=INTEGER}, | ||
80 | + </if> | ||
81 | + <if test="updateTime != null" > | ||
82 | + #{updateTime,jdbcType=INTEGER}, | ||
83 | + </if> | ||
84 | + <if test="brandId != null" > | ||
85 | + #{brandId,jdbcType=INTEGER}, | ||
86 | + </if> | ||
87 | + </trim> | ||
88 | + </insert> | ||
89 | + | ||
40 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoBrandSeries"> | 90 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoBrandSeries"> |
41 | update ufo_brand_series | 91 | update ufo_brand_series |
42 | <set> | 92 | <set> |
@@ -35,6 +35,50 @@ | @@ -35,6 +35,50 @@ | ||
35 | #{isDefault,jdbcType=CHAR}, #{imageUrl,jdbcType=VARCHAR}, #{orderBy,jdbcType=TINYINT} | 35 | #{isDefault,jdbcType=CHAR}, #{imageUrl,jdbcType=VARCHAR}, #{orderBy,jdbcType=TINYINT} |
36 | ) | 36 | ) |
37 | </insert> | 37 | </insert> |
38 | + | ||
39 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoGoodsImages" > | ||
40 | + insert into ufo_goods_images | ||
41 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
42 | + <if test="id != null" > | ||
43 | + id, | ||
44 | + </if> | ||
45 | + <if test="goodsId != null" > | ||
46 | + goods_id, | ||
47 | + </if> | ||
48 | + <if test="productId != null" > | ||
49 | + product_id, | ||
50 | + </if> | ||
51 | + <if test="isDefault != null" > | ||
52 | + is_default, | ||
53 | + </if> | ||
54 | + <if test="imageUrl != null" > | ||
55 | + image_url, | ||
56 | + </if> | ||
57 | + <if test="orderBy != null" > | ||
58 | + order_by, | ||
59 | + </if> | ||
60 | + </trim> | ||
61 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
62 | + <if test="id != null" > | ||
63 | + #{id,jdbcType=INTEGER}, | ||
64 | + </if> | ||
65 | + <if test="goodsId != null" > | ||
66 | + #{goodsId,jdbcType=INTEGER}, | ||
67 | + </if> | ||
68 | + <if test="productId != null" > | ||
69 | + #{productId,jdbcType=INTEGER}, | ||
70 | + </if> | ||
71 | + <if test="isDefault != null" > | ||
72 | + #{isDefault,jdbcType=CHAR}, | ||
73 | + </if> | ||
74 | + <if test="imageUrl != null" > | ||
75 | + #{imageUrl,jdbcType=VARCHAR}, | ||
76 | + </if> | ||
77 | + <if test="orderBy != null" > | ||
78 | + #{orderBy,jdbcType=TINYINT}, | ||
79 | + </if> | ||
80 | + </trim> | ||
81 | + </insert> | ||
38 | 82 | ||
39 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoGoodsImages"> | 83 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoGoodsImages"> |
40 | update ufo_goods_images | 84 | update ufo_goods_images |
@@ -36,6 +36,56 @@ | @@ -36,6 +36,56 @@ | ||
36 | #{colorName,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, #{colorImage,jdbcType=VARCHAR}, | 36 | #{colorName,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, #{colorImage,jdbcType=VARCHAR}, |
37 | #{isDefault,jdbcType=CHAR}) | 37 | #{isDefault,jdbcType=CHAR}) |
38 | </insert> | 38 | </insert> |
39 | + | ||
40 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoGoods" > | ||
41 | + insert into ufo_goods | ||
42 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
43 | + <if test="id != null" > | ||
44 | + id, | ||
45 | + </if> | ||
46 | + <if test="productId != null" > | ||
47 | + product_id, | ||
48 | + </if> | ||
49 | + <if test="colorId != null" > | ||
50 | + color_id, | ||
51 | + </if> | ||
52 | + <if test="colorName != null" > | ||
53 | + color_name, | ||
54 | + </if> | ||
55 | + <if test="goodsName != null" > | ||
56 | + goods_name, | ||
57 | + </if> | ||
58 | + <if test="colorImage != null" > | ||
59 | + color_image, | ||
60 | + </if> | ||
61 | + <if test="isDefault != null" > | ||
62 | + is_default, | ||
63 | + </if> | ||
64 | + </trim> | ||
65 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
66 | + <if test="id != null" > | ||
67 | + #{id,jdbcType=INTEGER}, | ||
68 | + </if> | ||
69 | + <if test="productId != null" > | ||
70 | + #{productId,jdbcType=INTEGER}, | ||
71 | + </if> | ||
72 | + <if test="colorId != null" > | ||
73 | + #{colorId,jdbcType=SMALLINT}, | ||
74 | + </if> | ||
75 | + <if test="colorName != null" > | ||
76 | + #{colorName,jdbcType=VARCHAR}, | ||
77 | + </if> | ||
78 | + <if test="goodsName != null" > | ||
79 | + #{goodsName,jdbcType=VARCHAR}, | ||
80 | + </if> | ||
81 | + <if test="colorImage != null" > | ||
82 | + #{colorImage,jdbcType=VARCHAR}, | ||
83 | + </if> | ||
84 | + <if test="isDefault != null" > | ||
85 | + #{isDefault,jdbcType=CHAR}, | ||
86 | + </if> | ||
87 | + </trim> | ||
88 | + </insert> | ||
39 | 89 | ||
40 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoGoods" > | 90 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoGoods" > |
41 | update ufo_goods | 91 | update ufo_goods |
@@ -32,6 +32,38 @@ | @@ -32,6 +32,38 @@ | ||
32 | #{createTime,jdbcType=INTEGER}) | 32 | #{createTime,jdbcType=INTEGER}) |
33 | </insert> | 33 | </insert> |
34 | 34 | ||
35 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductPoolDetail" > | ||
36 | + insert into ufo_product_pool_detail | ||
37 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
38 | + <if test="id != null" > | ||
39 | + id, | ||
40 | + </if> | ||
41 | + <if test="poolId != null" > | ||
42 | + pool_id, | ||
43 | + </if> | ||
44 | + <if test="productId != null" > | ||
45 | + product_id, | ||
46 | + </if> | ||
47 | + <if test="createTime != null" > | ||
48 | + create_time, | ||
49 | + </if> | ||
50 | + </trim> | ||
51 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
52 | + <if test="id != null" > | ||
53 | + #{id,jdbcType=INTEGER}, | ||
54 | + </if> | ||
55 | + <if test="poolId != null" > | ||
56 | + #{poolId,jdbcType=INTEGER}, | ||
57 | + </if> | ||
58 | + <if test="productId != null" > | ||
59 | + #{productId,jdbcType=INTEGER}, | ||
60 | + </if> | ||
61 | + <if test="createTime != null" > | ||
62 | + #{createTime,jdbcType=INTEGER}, | ||
63 | + </if> | ||
64 | + </trim> | ||
65 | + </insert> | ||
66 | + | ||
35 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductPoolDetail"> | 67 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductPoolDetail"> |
36 | update ufo_product_pool_detail | 68 | update ufo_product_pool_detail |
37 | <set> | 69 | <set> |
@@ -31,6 +31,38 @@ | @@ -31,6 +31,38 @@ | ||
31 | ) | 31 | ) |
32 | </insert> | 32 | </insert> |
33 | 33 | ||
34 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductPool" > | ||
35 | + insert into ufo_product_pool | ||
36 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
37 | + <if test="id != null" > | ||
38 | + id, | ||
39 | + </if> | ||
40 | + <if test="poolName != null" > | ||
41 | + pool_name, | ||
42 | + </if> | ||
43 | + <if test="createTime != null" > | ||
44 | + create_time, | ||
45 | + </if> | ||
46 | + <if test="poolType != null" > | ||
47 | + pool_type, | ||
48 | + </if> | ||
49 | + </trim> | ||
50 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
51 | + <if test="id != null" > | ||
52 | + #{id,jdbcType=INTEGER}, | ||
53 | + </if> | ||
54 | + <if test="poolName != null" > | ||
55 | + #{poolName,jdbcType=VARCHAR}, | ||
56 | + </if> | ||
57 | + <if test="createTime != null" > | ||
58 | + #{createTime,jdbcType=INTEGER}, | ||
59 | + </if> | ||
60 | + <if test="poolType != null" > | ||
61 | + #{poolType,jdbcType=INTEGER}, | ||
62 | + </if> | ||
63 | + </trim> | ||
64 | + </insert> | ||
65 | + | ||
34 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductPool" > | 66 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductPool" > |
35 | update ufo_product_pool | 67 | update ufo_product_pool |
36 | <set > | 68 | <set > |
@@ -35,6 +35,62 @@ | @@ -35,6 +35,62 @@ | ||
35 | #{parentId,jdbcType=SMALLINT}, #{status,jdbcType=TINYINT}, #{orderBy,jdbcType=INTEGER}) | 35 | #{parentId,jdbcType=SMALLINT}, #{status,jdbcType=TINYINT}, #{orderBy,jdbcType=INTEGER}) |
36 | </insert> | 36 | </insert> |
37 | 37 | ||
38 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductSort" > | ||
39 | + insert into ufo_product_sort | ||
40 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
41 | + <if test="id != null" > | ||
42 | + id, | ||
43 | + </if> | ||
44 | + <if test="sortName != null" > | ||
45 | + sort_name, | ||
46 | + </if> | ||
47 | + <if test="level != null" > | ||
48 | + level, | ||
49 | + </if> | ||
50 | + <if test="parentId != null" > | ||
51 | + parent_id, | ||
52 | + </if> | ||
53 | + <if test="status != null" > | ||
54 | + status, | ||
55 | + </if> | ||
56 | + <if test="createTime != null" > | ||
57 | + create_time, | ||
58 | + </if> | ||
59 | + <if test="updateTime != null" > | ||
60 | + update_time, | ||
61 | + </if> | ||
62 | + <if test="orderBy != null" > | ||
63 | + order_by, | ||
64 | + </if> | ||
65 | + </trim> | ||
66 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
67 | + <if test="id != null" > | ||
68 | + #{id,jdbcType=SMALLINT}, | ||
69 | + </if> | ||
70 | + <if test="sortName != null" > | ||
71 | + #{sortName,jdbcType=VARCHAR}, | ||
72 | + </if> | ||
73 | + <if test="level != null" > | ||
74 | + #{level,jdbcType=SMALLINT}, | ||
75 | + </if> | ||
76 | + <if test="parentId != null" > | ||
77 | + #{parentId,jdbcType=SMALLINT}, | ||
78 | + </if> | ||
79 | + <if test="status != null" > | ||
80 | + #{status,jdbcType=TINYINT}, | ||
81 | + </if> | ||
82 | + <if test="createTime != null" > | ||
83 | + #{createTime,jdbcType=INTEGER}, | ||
84 | + </if> | ||
85 | + <if test="updateTime != null" > | ||
86 | + #{updateTime,jdbcType=INTEGER}, | ||
87 | + </if> | ||
88 | + <if test="orderBy != null" > | ||
89 | + #{orderBy,jdbcType=INTEGER}, | ||
90 | + </if> | ||
91 | + </trim> | ||
92 | + </insert> | ||
93 | + | ||
38 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductSort" > | 94 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductSort" > |
39 | update ufo_product_sort | 95 | update ufo_product_sort |
40 | <set > | 96 | <set > |
@@ -34,6 +34,50 @@ | @@ -34,6 +34,50 @@ | ||
34 | ) | 34 | ) |
35 | </insert> | 35 | </insert> |
36 | 36 | ||
37 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoSize" > | ||
38 | + insert into ufo_size | ||
39 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
40 | + <if test="id != null" > | ||
41 | + id, | ||
42 | + </if> | ||
43 | + <if test="sizeName != null" > | ||
44 | + size_name, | ||
45 | + </if> | ||
46 | + <if test="sortId != null" > | ||
47 | + sort_id, | ||
48 | + </if> | ||
49 | + <if test="orderBy != null" > | ||
50 | + order_by, | ||
51 | + </if> | ||
52 | + <if test="createTime != null" > | ||
53 | + create_time, | ||
54 | + </if> | ||
55 | + <if test="updateTime != null" > | ||
56 | + update_time, | ||
57 | + </if> | ||
58 | + </trim> | ||
59 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
60 | + <if test="id != null" > | ||
61 | + #{id,jdbcType=SMALLINT}, | ||
62 | + </if> | ||
63 | + <if test="sizeName != null" > | ||
64 | + #{sizeName,jdbcType=VARCHAR}, | ||
65 | + </if> | ||
66 | + <if test="sortId != null" > | ||
67 | + #{sortId,jdbcType=SMALLINT}, | ||
68 | + </if> | ||
69 | + <if test="orderBy != null" > | ||
70 | + #{orderBy,jdbcType=INTEGER}, | ||
71 | + </if> | ||
72 | + <if test="createTime != null" > | ||
73 | + #{createTime,jdbcType=INTEGER}, | ||
74 | + </if> | ||
75 | + <if test="updateTime != null" > | ||
76 | + #{updateTime,jdbcType=INTEGER}, | ||
77 | + </if> | ||
78 | + </trim> | ||
79 | + </insert> | ||
80 | + | ||
37 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoSize"> | 81 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoSize"> |
38 | update ufo_size | 82 | update ufo_size |
39 | <set> | 83 | <set> |
@@ -32,7 +32,57 @@ | @@ -32,7 +32,57 @@ | ||
32 | values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, | 32 | values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, |
33 | #{sizeId,jdbcType=SMALLINT}, #{storageNum,jdbcType=INTEGER}) | 33 | #{sizeId,jdbcType=SMALLINT}, #{storageNum,jdbcType=INTEGER}) |
34 | </insert> | 34 | </insert> |
35 | - | 35 | + |
36 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoStorage" > | ||
37 | + insert into ufo_storage | ||
38 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
39 | + <if test="id != null" > | ||
40 | + id, | ||
41 | + </if> | ||
42 | + <if test="productId != null" > | ||
43 | + product_id, | ||
44 | + </if> | ||
45 | + <if test="goodsId != null" > | ||
46 | + goods_id, | ||
47 | + </if> | ||
48 | + <if test="sizeId != null" > | ||
49 | + size_id, | ||
50 | + </if> | ||
51 | + <if test="storageNum != null" > | ||
52 | + storage_num, | ||
53 | + </if> | ||
54 | + <if test="updateTime != null" > | ||
55 | + update_time, | ||
56 | + </if> | ||
57 | + <if test="createTime != null" > | ||
58 | + create_time, | ||
59 | + </if> | ||
60 | + </trim> | ||
61 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
62 | + <if test="id != null" > | ||
63 | + #{id,jdbcType=INTEGER}, | ||
64 | + </if> | ||
65 | + <if test="productId != null" > | ||
66 | + #{productId,jdbcType=INTEGER}, | ||
67 | + </if> | ||
68 | + <if test="goodsId != null" > | ||
69 | + #{goodsId,jdbcType=INTEGER}, | ||
70 | + </if> | ||
71 | + <if test="sizeId != null" > | ||
72 | + #{sizeId,jdbcType=SMALLINT}, | ||
73 | + </if> | ||
74 | + <if test="storageNum != null" > | ||
75 | + #{storageNum,jdbcType=INTEGER}, | ||
76 | + </if> | ||
77 | + <if test="updateTime != null" > | ||
78 | + #{updateTime,jdbcType=INTEGER}, | ||
79 | + </if> | ||
80 | + <if test="createTime != null" > | ||
81 | + #{createTime,jdbcType=INTEGER}, | ||
82 | + </if> | ||
83 | + </trim> | ||
84 | + </insert> | ||
85 | + | ||
36 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoStorage" > | 86 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoStorage" > |
37 | update ufo_storage | 87 | update ufo_storage |
38 | <set > | 88 | <set > |
@@ -44,6 +44,86 @@ | @@ -44,6 +44,86 @@ | ||
44 | #{createTime,jdbcType=INTEGER}) | 44 | #{createTime,jdbcType=INTEGER}) |
45 | </insert> | 45 | </insert> |
46 | 46 | ||
47 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoStoragePrice" > | ||
48 | + insert into ufo_storage_price | ||
49 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
50 | + <if test="id != null" > | ||
51 | + id, | ||
52 | + </if> | ||
53 | + <if test="skup != null" > | ||
54 | + skup, | ||
55 | + </if> | ||
56 | + <if test="productId != null" > | ||
57 | + product_id, | ||
58 | + </if> | ||
59 | + <if test="goodsId != null" > | ||
60 | + goods_id, | ||
61 | + </if> | ||
62 | + <if test="storageId != null" > | ||
63 | + storage_id, | ||
64 | + </if> | ||
65 | + <if test="depotNum != null" > | ||
66 | + depot_num, | ||
67 | + </if> | ||
68 | + <if test="sellerUid != null" > | ||
69 | + seller_uid, | ||
70 | + </if> | ||
71 | + <if test="price != null" > | ||
72 | + price, | ||
73 | + </if> | ||
74 | + <if test="status != null" > | ||
75 | + status, | ||
76 | + </if> | ||
77 | + <if test="updateTime != null" > | ||
78 | + update_time, | ||
79 | + </if> | ||
80 | + <if test="createTime != null" > | ||
81 | + create_time, | ||
82 | + </if> | ||
83 | + <if test="editPid != null" > | ||
84 | + edit_pid, | ||
85 | + </if> | ||
86 | + </trim> | ||
87 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
88 | + <if test="id != null" > | ||
89 | + #{id,jdbcType=INTEGER}, | ||
90 | + </if> | ||
91 | + <if test="skup != null" > | ||
92 | + #{skup,jdbcType=INTEGER}, | ||
93 | + </if> | ||
94 | + <if test="productId != null" > | ||
95 | + #{productId,jdbcType=INTEGER}, | ||
96 | + </if> | ||
97 | + <if test="goodsId != null" > | ||
98 | + #{goodsId,jdbcType=INTEGER}, | ||
99 | + </if> | ||
100 | + <if test="storageId != null" > | ||
101 | + #{storageId,jdbcType=INTEGER}, | ||
102 | + </if> | ||
103 | + <if test="depotNum != null" > | ||
104 | + #{depotNum,jdbcType=INTEGER}, | ||
105 | + </if> | ||
106 | + <if test="sellerUid != null" > | ||
107 | + #{sellerUid,jdbcType=INTEGER}, | ||
108 | + </if> | ||
109 | + <if test="price != null" > | ||
110 | + #{price,jdbcType=DECIMAL}, | ||
111 | + </if> | ||
112 | + <if test="status != null" > | ||
113 | + #{status,jdbcType=INTEGER}, | ||
114 | + </if> | ||
115 | + <if test="updateTime != null" > | ||
116 | + #{updateTime,jdbcType=INTEGER}, | ||
117 | + </if> | ||
118 | + <if test="createTime != null" > | ||
119 | + #{createTime,jdbcType=INTEGER}, | ||
120 | + </if> | ||
121 | + <if test="editPid != null" > | ||
122 | + #{editPid,jdbcType=INTEGER}, | ||
123 | + </if> | ||
124 | + </trim> | ||
125 | + </insert> | ||
126 | + | ||
47 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoStoragePrice"> | 127 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoStoragePrice"> |
48 | update ufo_storage_price | 128 | update ufo_storage_price |
49 | <set> | 129 | <set> |
@@ -33,6 +33,50 @@ | @@ -33,6 +33,50 @@ | ||
33 | #{colorValue,jdbcType=VARCHAR} | 33 | #{colorValue,jdbcType=VARCHAR} |
34 | ) | 34 | ) |
35 | </insert> | 35 | </insert> |
36 | + | ||
37 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductColor" > | ||
38 | + insert into ufo_product_color | ||
39 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
40 | + <if test="id != null" > | ||
41 | + id, | ||
42 | + </if> | ||
43 | + <if test="colorName != null" > | ||
44 | + color_name, | ||
45 | + </if> | ||
46 | + <if test="colorCode != null" > | ||
47 | + color_code, | ||
48 | + </if> | ||
49 | + <if test="colorValue != null" > | ||
50 | + color_value, | ||
51 | + </if> | ||
52 | + <if test="createTime != null" > | ||
53 | + create_time, | ||
54 | + </if> | ||
55 | + <if test="updateTime != null" > | ||
56 | + update_time, | ||
57 | + </if> | ||
58 | + </trim> | ||
59 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
60 | + <if test="id != null" > | ||
61 | + #{id,jdbcType=SMALLINT}, | ||
62 | + </if> | ||
63 | + <if test="colorName != null" > | ||
64 | + #{colorName,jdbcType=VARCHAR}, | ||
65 | + </if> | ||
66 | + <if test="colorCode != null" > | ||
67 | + #{colorCode,jdbcType=VARCHAR}, | ||
68 | + </if> | ||
69 | + <if test="colorValue != null" > | ||
70 | + #{colorValue,jdbcType=VARCHAR}, | ||
71 | + </if> | ||
72 | + <if test="createTime != null" > | ||
73 | + #{createTime,jdbcType=INTEGER}, | ||
74 | + </if> | ||
75 | + <if test="updateTime != null" > | ||
76 | + #{updateTime,jdbcType=INTEGER}, | ||
77 | + </if> | ||
78 | + </trim> | ||
79 | + </insert> | ||
36 | 80 | ||
37 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductColor" > | 81 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductColor" > |
38 | update ufo_product_color | 82 | update ufo_product_color |
@@ -58,6 +58,134 @@ | @@ -58,6 +58,134 @@ | ||
58 | ) | 58 | ) |
59 | </insert> | 59 | </insert> |
60 | 60 | ||
61 | + <insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufoProduct" > | ||
62 | + insert into ufo_product | ||
63 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
64 | + <if test="id != null" > | ||
65 | + id, | ||
66 | + </if> | ||
67 | + <if test="productName != null" > | ||
68 | + product_name, | ||
69 | + </if> | ||
70 | + <if test="productCode != null" > | ||
71 | + product_code, | ||
72 | + </if> | ||
73 | + <if test="maxSortId != null" > | ||
74 | + max_sort_id, | ||
75 | + </if> | ||
76 | + <if test="midSortId != null" > | ||
77 | + mid_sort_id, | ||
78 | + </if> | ||
79 | + <if test="brandId != null" > | ||
80 | + brand_id, | ||
81 | + </if> | ||
82 | + <if test="seriesId != null" > | ||
83 | + series_id, | ||
84 | + </if> | ||
85 | + <if test="gender != null" > | ||
86 | + gender, | ||
87 | + </if> | ||
88 | + <if test="saleTime != null" > | ||
89 | + sale_time, | ||
90 | + </if> | ||
91 | + <if test="minPrice != null" > | ||
92 | + min_price, | ||
93 | + </if> | ||
94 | + <if test="maxPrice != null" > | ||
95 | + max_price, | ||
96 | + </if> | ||
97 | + <if test="createTime != null" > | ||
98 | + create_time, | ||
99 | + </if> | ||
100 | + <if test="updateTime != null" > | ||
101 | + update_time, | ||
102 | + </if> | ||
103 | + <if test="shelveTime != null" > | ||
104 | + shelve_time, | ||
105 | + </if> | ||
106 | + <if test="editTime != null" > | ||
107 | + edit_time, | ||
108 | + </if> | ||
109 | + <if test="shelveStatus != null" > | ||
110 | + shelve_status, | ||
111 | + </if> | ||
112 | + <if test="storage != null" > | ||
113 | + storage, | ||
114 | + </if> | ||
115 | + <if test="keyWords != null" > | ||
116 | + key_words, | ||
117 | + </if> | ||
118 | + <if test="delStatus != null" > | ||
119 | + del_status, | ||
120 | + </if> | ||
121 | + <if test="orderBy != null" > | ||
122 | + order_by, | ||
123 | + </if> | ||
124 | + </trim> | ||
125 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
126 | + <if test="id != null" > | ||
127 | + #{id,jdbcType=INTEGER}, | ||
128 | + </if> | ||
129 | + <if test="productName != null" > | ||
130 | + #{productName,jdbcType=VARCHAR}, | ||
131 | + </if> | ||
132 | + <if test="productCode != null" > | ||
133 | + #{productCode,jdbcType=VARCHAR}, | ||
134 | + </if> | ||
135 | + <if test="maxSortId != null" > | ||
136 | + #{maxSortId,jdbcType=SMALLINT}, | ||
137 | + </if> | ||
138 | + <if test="midSortId != null" > | ||
139 | + #{midSortId,jdbcType=SMALLINT}, | ||
140 | + </if> | ||
141 | + <if test="brandId != null" > | ||
142 | + #{brandId,jdbcType=SMALLINT}, | ||
143 | + </if> | ||
144 | + <if test="seriesId != null" > | ||
145 | + #{seriesId,jdbcType=SMALLINT}, | ||
146 | + </if> | ||
147 | + <if test="gender != null" > | ||
148 | + #{gender,jdbcType=CHAR}, | ||
149 | + </if> | ||
150 | + <if test="saleTime != null" > | ||
151 | + #{saleTime,jdbcType=INTEGER}, | ||
152 | + </if> | ||
153 | + <if test="minPrice != null" > | ||
154 | + #{minPrice,jdbcType=DECIMAL}, | ||
155 | + </if> | ||
156 | + <if test="maxPrice != null" > | ||
157 | + #{maxPrice,jdbcType=DECIMAL}, | ||
158 | + </if> | ||
159 | + <if test="createTime != null" > | ||
160 | + #{createTime,jdbcType=INTEGER}, | ||
161 | + </if> | ||
162 | + <if test="updateTime != null" > | ||
163 | + #{updateTime,jdbcType=INTEGER}, | ||
164 | + </if> | ||
165 | + <if test="shelveTime != null" > | ||
166 | + #{shelveTime,jdbcType=INTEGER}, | ||
167 | + </if> | ||
168 | + <if test="editTime != null" > | ||
169 | + #{editTime,jdbcType=INTEGER}, | ||
170 | + </if> | ||
171 | + <if test="shelveStatus != null" > | ||
172 | + #{shelveStatus,jdbcType=TINYINT}, | ||
173 | + </if> | ||
174 | + <if test="storage != null" > | ||
175 | + #{storage,jdbcType=INTEGER}, | ||
176 | + </if> | ||
177 | + <if test="keyWords != null" > | ||
178 | + #{keyWords,jdbcType=VARCHAR}, | ||
179 | + </if> | ||
180 | + <if test="delStatus != null" > | ||
181 | + #{delStatus,jdbcType=TINYINT}, | ||
182 | + </if> | ||
183 | + <if test="orderBy != null" > | ||
184 | + #{orderBy,jdbcType=INTEGER}, | ||
185 | + </if> | ||
186 | + </trim> | ||
187 | + </insert> | ||
188 | + | ||
61 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProduct"> | 189 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProduct"> |
62 | update ufo_product | 190 | update ufo_product |
63 | <set> | 191 | <set> |
@@ -19,7 +19,7 @@ public class UfoBrandSeriesService { | @@ -19,7 +19,7 @@ public class UfoBrandSeriesService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoBrandSeries ufoBrandSeries) { | 21 | public int insert(UfoBrandSeries ufoBrandSeries) { |
22 | - return ufoBrandSeriesMapper.insert(ufoBrandSeries); | 22 | + return ufoBrandSeriesMapper.insertSelective(ufoBrandSeries); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoBrandSeries ufoBrandSeries) { | 25 | public int update(UfoBrandSeries ufoBrandSeries) { |
@@ -28,7 +28,7 @@ public class UfoBrandSeriesService { | @@ -28,7 +28,7 @@ public class UfoBrandSeriesService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoBrandSeries ufoBrandSeries) { | 29 | public int saveOrUpdate(UfoBrandSeries ufoBrandSeries) { |
30 | if (ufoBrandSeries.getId() == null || ufoBrandSeriesMapper.selectByPrimaryKey(ufoBrandSeries.getId()) == null) { | 30 | if (ufoBrandSeries.getId() == null || ufoBrandSeriesMapper.selectByPrimaryKey(ufoBrandSeries.getId()) == null) { |
31 | - return ufoBrandSeriesMapper.insert(ufoBrandSeries); | 31 | + return ufoBrandSeriesMapper.insertSelective(ufoBrandSeries); |
32 | } else { | 32 | } else { |
33 | return ufoBrandSeriesMapper.updateByPrimaryKeySelective(ufoBrandSeries); | 33 | return ufoBrandSeriesMapper.updateByPrimaryKeySelective(ufoBrandSeries); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoBrandService { | @@ -19,7 +19,7 @@ public class UfoBrandService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoBrand ufoBrand) { | 21 | public int insert(UfoBrand ufoBrand) { |
22 | - return ufoBrandMapper.insert(ufoBrand); | 22 | + return ufoBrandMapper.insertSelective(ufoBrand); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoBrand ufoBrand) { | 25 | public int update(UfoBrand ufoBrand) { |
@@ -28,7 +28,7 @@ public class UfoBrandService { | @@ -28,7 +28,7 @@ public class UfoBrandService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoBrand ufoBrand) { | 29 | public int saveOrUpdate(UfoBrand ufoBrand) { |
30 | if (ufoBrand.getId() == null || ufoBrandMapper.selectByPrimaryKey(ufoBrand.getId()) == null) { | 30 | if (ufoBrand.getId() == null || ufoBrandMapper.selectByPrimaryKey(ufoBrand.getId()) == null) { |
31 | - return ufoBrandMapper.insert(ufoBrand); | 31 | + return ufoBrandMapper.insertSelective(ufoBrand); |
32 | } else { | 32 | } else { |
33 | return ufoBrandMapper.updateByPrimaryKeySelective(ufoBrand); | 33 | return ufoBrandMapper.updateByPrimaryKeySelective(ufoBrand); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoGoodsImagesService { | @@ -19,7 +19,7 @@ public class UfoGoodsImagesService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoGoodsImages ufoGoodsImages) { | 21 | public int insert(UfoGoodsImages ufoGoodsImages) { |
22 | - return ufoGoodsImagesMapper.insert(ufoGoodsImages); | 22 | + return ufoGoodsImagesMapper.insertSelective(ufoGoodsImages); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoGoodsImages ufoGoodsImages) { | 25 | public int update(UfoGoodsImages ufoGoodsImages) { |
@@ -28,7 +28,7 @@ public class UfoGoodsImagesService { | @@ -28,7 +28,7 @@ public class UfoGoodsImagesService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoGoodsImages ufoGoodsImages) { | 29 | public int saveOrUpdate(UfoGoodsImages ufoGoodsImages) { |
30 | if (ufoGoodsImages.getId() == null || ufoGoodsImagesMapper.selectByPrimaryKey(ufoGoodsImages.getId()) == null) { | 30 | if (ufoGoodsImages.getId() == null || ufoGoodsImagesMapper.selectByPrimaryKey(ufoGoodsImages.getId()) == null) { |
31 | - return ufoGoodsImagesMapper.insert(ufoGoodsImages); | 31 | + return ufoGoodsImagesMapper.insertSelective(ufoGoodsImages); |
32 | } else { | 32 | } else { |
33 | return ufoGoodsImagesMapper.updateByPrimaryKeySelective(ufoGoodsImages); | 33 | return ufoGoodsImagesMapper.updateByPrimaryKeySelective(ufoGoodsImages); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoGoodsService { | @@ -19,7 +19,7 @@ public class UfoGoodsService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoGoods ufoGoods) { | 21 | public int insert(UfoGoods ufoGoods) { |
22 | - return ufoGoodsMapper.insert(ufoGoods); | 22 | + return ufoGoodsMapper.insertSelective(ufoGoods); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoGoods ufoGoods) { | 25 | public int update(UfoGoods ufoGoods) { |
@@ -28,7 +28,7 @@ public class UfoGoodsService { | @@ -28,7 +28,7 @@ public class UfoGoodsService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoGoods ufoGoods) { | 29 | public int saveOrUpdate(UfoGoods ufoGoods) { |
30 | if (ufoGoods.getId() == null || ufoGoodsMapper.selectByPrimaryKey(ufoGoods.getId()) == null) { | 30 | if (ufoGoods.getId() == null || ufoGoodsMapper.selectByPrimaryKey(ufoGoods.getId()) == null) { |
31 | - return ufoGoodsMapper.insert(ufoGoods); | 31 | + return ufoGoodsMapper.insertSelective(ufoGoods); |
32 | } else { | 32 | } else { |
33 | return ufoGoodsMapper.updateByPrimaryKeySelective(ufoGoods); | 33 | return ufoGoodsMapper.updateByPrimaryKeySelective(ufoGoods); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoProductColorService { | @@ -19,7 +19,7 @@ public class UfoProductColorService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoProductColor ufoProductColor) { | 21 | public int insert(UfoProductColor ufoProductColor) { |
22 | - return ufoProductColorMapper.insert(ufoProductColor); | 22 | + return ufoProductColorMapper.insertSelective(ufoProductColor); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoProductColor ufoProductColor) { | 25 | public int update(UfoProductColor ufoProductColor) { |
@@ -28,7 +28,7 @@ public class UfoProductColorService { | @@ -28,7 +28,7 @@ public class UfoProductColorService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoProductColor ufoProductColor) { | 29 | public int saveOrUpdate(UfoProductColor ufoProductColor) { |
30 | if (ufoProductColor.getId() == null || ufoProductColorMapper.selectByPrimaryKey(ufoProductColor.getId()) == null) { | 30 | if (ufoProductColor.getId() == null || ufoProductColorMapper.selectByPrimaryKey(ufoProductColor.getId()) == null) { |
31 | - return ufoProductColorMapper.insert(ufoProductColor); | 31 | + return ufoProductColorMapper.insertSelective(ufoProductColor); |
32 | } else { | 32 | } else { |
33 | return ufoProductColorMapper.updateByPrimaryKeySelective(ufoProductColor); | 33 | return ufoProductColorMapper.updateByPrimaryKeySelective(ufoProductColor); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoProductPoolDetailService { | @@ -19,7 +19,7 @@ public class UfoProductPoolDetailService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoProductPoolDetail ufoProductPoolDetail) { | 21 | public int insert(UfoProductPoolDetail ufoProductPoolDetail) { |
22 | - return ufoProductPoolDetailMapper.insert(ufoProductPoolDetail); | 22 | + return ufoProductPoolDetailMapper.insertSelective(ufoProductPoolDetail); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoProductPoolDetail ufoProductPoolDetail) { | 25 | public int update(UfoProductPoolDetail ufoProductPoolDetail) { |
@@ -28,7 +28,7 @@ public class UfoProductPoolDetailService { | @@ -28,7 +28,7 @@ public class UfoProductPoolDetailService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoProductPoolDetail ufoProductPoolDetail) { | 29 | public int saveOrUpdate(UfoProductPoolDetail ufoProductPoolDetail) { |
30 | if (ufoProductPoolDetail.getId() == null || ufoProductPoolDetailMapper.selectByPrimaryKey(ufoProductPoolDetail.getId()) == null) { | 30 | if (ufoProductPoolDetail.getId() == null || ufoProductPoolDetailMapper.selectByPrimaryKey(ufoProductPoolDetail.getId()) == null) { |
31 | - return ufoProductPoolDetailMapper.insert(ufoProductPoolDetail); | 31 | + return ufoProductPoolDetailMapper.insertSelective(ufoProductPoolDetail); |
32 | } else { | 32 | } else { |
33 | return ufoProductPoolDetailMapper.updateByPrimaryKeySelective(ufoProductPoolDetail); | 33 | return ufoProductPoolDetailMapper.updateByPrimaryKeySelective(ufoProductPoolDetail); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoProductPoolService { | @@ -19,7 +19,7 @@ public class UfoProductPoolService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoProductPool ufoProductPool) { | 21 | public int insert(UfoProductPool ufoProductPool) { |
22 | - return ufoProductPoolMapper.insert(ufoProductPool); | 22 | + return ufoProductPoolMapper.insertSelective(ufoProductPool); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoProductPool ufoProductPool) { | 25 | public int update(UfoProductPool ufoProductPool) { |
@@ -28,7 +28,7 @@ public class UfoProductPoolService { | @@ -28,7 +28,7 @@ public class UfoProductPoolService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoProductPool ufoProductPool) { | 29 | public int saveOrUpdate(UfoProductPool ufoProductPool) { |
30 | if (ufoProductPool.getId() == null || ufoProductPoolMapper.selectByPrimaryKey(ufoProductPool.getId()) == null) { | 30 | if (ufoProductPool.getId() == null || ufoProductPoolMapper.selectByPrimaryKey(ufoProductPool.getId()) == null) { |
31 | - return ufoProductPoolMapper.insert(ufoProductPool); | 31 | + return ufoProductPoolMapper.insertSelective(ufoProductPool); |
32 | } else { | 32 | } else { |
33 | return ufoProductPoolMapper.updateByPrimaryKeySelective(ufoProductPool); | 33 | return ufoProductPoolMapper.updateByPrimaryKeySelective(ufoProductPool); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoProductService { | @@ -19,7 +19,7 @@ public class UfoProductService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoProduct size) { | 21 | public int insert(UfoProduct size) { |
22 | - return sizeMapper.insert(size); | 22 | + return sizeMapper.insertSelective(size); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoProduct size) { | 25 | public int update(UfoProduct size) { |
@@ -28,7 +28,7 @@ public class UfoProductService { | @@ -28,7 +28,7 @@ public class UfoProductService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoProduct size) { | 29 | public int saveOrUpdate(UfoProduct size) { |
30 | if (size.getId() == null || sizeMapper.selectByPrimaryKey(size.getId()) == null) { | 30 | if (size.getId() == null || sizeMapper.selectByPrimaryKey(size.getId()) == null) { |
31 | - return sizeMapper.insert(size); | 31 | + return sizeMapper.insertSelective(size); |
32 | } else { | 32 | } else { |
33 | return sizeMapper.updateByPrimaryKeySelective(size); | 33 | return sizeMapper.updateByPrimaryKeySelective(size); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoProductSortService { | @@ -19,7 +19,7 @@ public class UfoProductSortService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoProductSort ufoProductSort) { | 21 | public int insert(UfoProductSort ufoProductSort) { |
22 | - return ufoProductSortMapper.insert(ufoProductSort); | 22 | + return ufoProductSortMapper.insertSelective(ufoProductSort); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoProductSort ufoProductSort) { | 25 | public int update(UfoProductSort ufoProductSort) { |
@@ -28,7 +28,7 @@ public class UfoProductSortService { | @@ -28,7 +28,7 @@ public class UfoProductSortService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoProductSort ufoProductSort) { | 29 | public int saveOrUpdate(UfoProductSort ufoProductSort) { |
30 | if (ufoProductSort.getId() == null || ufoProductSortMapper.selectByPrimaryKey(ufoProductSort.getId()) == null) { | 30 | if (ufoProductSort.getId() == null || ufoProductSortMapper.selectByPrimaryKey(ufoProductSort.getId()) == null) { |
31 | - return ufoProductSortMapper.insert(ufoProductSort); | 31 | + return ufoProductSortMapper.insertSelective(ufoProductSort); |
32 | } else { | 32 | } else { |
33 | return ufoProductSortMapper.updateByPrimaryKeySelective(ufoProductSort); | 33 | return ufoProductSortMapper.updateByPrimaryKeySelective(ufoProductSort); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoSizeService { | @@ -19,7 +19,7 @@ public class UfoSizeService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoSize ufoSize) { | 21 | public int insert(UfoSize ufoSize) { |
22 | - return ufoSizeMapper.insert(ufoSize); | 22 | + return ufoSizeMapper.insertSelective(ufoSize); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoSize ufoSize) { | 25 | public int update(UfoSize ufoSize) { |
@@ -28,7 +28,7 @@ public class UfoSizeService { | @@ -28,7 +28,7 @@ public class UfoSizeService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoSize ufoSize) { | 29 | public int saveOrUpdate(UfoSize ufoSize) { |
30 | if (ufoSize.getId() == null || ufoSizeMapper.selectByPrimaryKey(ufoSize.getId()) == null) { | 30 | if (ufoSize.getId() == null || ufoSizeMapper.selectByPrimaryKey(ufoSize.getId()) == null) { |
31 | - return ufoSizeMapper.insert(ufoSize); | 31 | + return ufoSizeMapper.insertSelective(ufoSize); |
32 | } else { | 32 | } else { |
33 | return ufoSizeMapper.updateByPrimaryKeySelective(ufoSize); | 33 | return ufoSizeMapper.updateByPrimaryKeySelective(ufoSize); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoStoragePriceService { | @@ -19,7 +19,7 @@ public class UfoStoragePriceService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoStoragePrice ufoStoragePrice) { | 21 | public int insert(UfoStoragePrice ufoStoragePrice) { |
22 | - return ufoStoragePriceMapper.insert(ufoStoragePrice); | 22 | + return ufoStoragePriceMapper.insertSelective(ufoStoragePrice); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoStoragePrice ufoStoragePrice) { | 25 | public int update(UfoStoragePrice ufoStoragePrice) { |
@@ -28,7 +28,7 @@ public class UfoStoragePriceService { | @@ -28,7 +28,7 @@ public class UfoStoragePriceService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoStoragePrice ufoStoragePrice) { | 29 | public int saveOrUpdate(UfoStoragePrice ufoStoragePrice) { |
30 | if (ufoStoragePrice.getId() == null || ufoStoragePriceMapper.selectByPrimaryKey(ufoStoragePrice.getId()) == null) { | 30 | if (ufoStoragePrice.getId() == null || ufoStoragePriceMapper.selectByPrimaryKey(ufoStoragePrice.getId()) == null) { |
31 | - return ufoStoragePriceMapper.insert(ufoStoragePrice); | 31 | + return ufoStoragePriceMapper.insertSelective(ufoStoragePrice); |
32 | } else { | 32 | } else { |
33 | return ufoStoragePriceMapper.updateByPrimaryKeySelective(ufoStoragePrice); | 33 | return ufoStoragePriceMapper.updateByPrimaryKeySelective(ufoStoragePrice); |
34 | } | 34 | } |
@@ -19,7 +19,7 @@ public class UfoStorageService { | @@ -19,7 +19,7 @@ public class UfoStorageService { | ||
19 | } | 19 | } |
20 | 20 | ||
21 | public int insert(UfoStorage ufoStorage) { | 21 | public int insert(UfoStorage ufoStorage) { |
22 | - return ufoStorageMapper.insert(ufoStorage); | 22 | + return ufoStorageMapper.insertSelective(ufoStorage); |
23 | } | 23 | } |
24 | 24 | ||
25 | public int update(UfoStorage ufoStorage) { | 25 | public int update(UfoStorage ufoStorage) { |
@@ -28,7 +28,7 @@ public class UfoStorageService { | @@ -28,7 +28,7 @@ public class UfoStorageService { | ||
28 | 28 | ||
29 | public int saveOrUpdate(UfoStorage ufoStorage) { | 29 | public int saveOrUpdate(UfoStorage ufoStorage) { |
30 | if (ufoStorage.getId() == null || ufoStorageMapper.selectByPrimaryKey(ufoStorage.getId()) == null) { | 30 | if (ufoStorage.getId() == null || ufoStorageMapper.selectByPrimaryKey(ufoStorage.getId()) == null) { |
31 | - return ufoStorageMapper.insert(ufoStorage); | 31 | + return ufoStorageMapper.insertSelective(ufoStorage); |
32 | } else { | 32 | } else { |
33 | return ufoStorageMapper.updateByPrimaryKeySelective(ufoStorage); | 33 | return ufoStorageMapper.updateByPrimaryKeySelective(ufoStorage); |
34 | } | 34 | } |
-
Please register or login to post a comment