Authored by zhaojun2

fix mapper & model

Showing 25 changed files with 216 additions and 155 deletions
@@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.Brand; @@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.Brand;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface BrandMapper { 6 public interface BrandMapper {
7 - int deleteByPrimaryKey(Short id); 7 + int deleteByPrimaryKey(Integer id);
8 8
9 int insert(Brand record); 9 int insert(Brand record);
10 10
11 - Brand selectByPrimaryKey(Short id); 11 + Brand selectByPrimaryKey(Integer id);
12 12
13 List<Brand> selectAll(); 13 List<Brand> selectAll();
14 14
@@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.BrandSeries; @@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.BrandSeries;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface BrandSeriesMapper { 6 public interface BrandSeriesMapper {
7 - int deleteByPrimaryKey(Short id); 7 + int deleteByPrimaryKey(Integer id);
8 8
9 int insert(BrandSeries record); 9 int insert(BrandSeries record);
10 10
11 - BrandSeries selectByPrimaryKey(Short id); 11 + BrandSeries selectByPrimaryKey(Integer id);
12 12
13 List<BrandSeries> selectAll(); 13 List<BrandSeries> selectAll();
14 14
@@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.ProductColor; @@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.ProductColor;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface ProductColorMapper { 6 public interface ProductColorMapper {
7 - int deleteByPrimaryKey(Short id); 7 + int deleteByPrimaryKey(Integer id);
8 8
9 int insert(ProductColor record); 9 int insert(ProductColor record);
10 10
11 - ProductColor selectByPrimaryKey(Short id); 11 + ProductColor selectByPrimaryKey(Integer id);
12 12
13 List<ProductColor> selectAll(); 13 List<ProductColor> selectAll();
14 14
@@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.ProductSort; @@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.ProductSort;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface ProductSortMapper { 6 public interface ProductSortMapper {
7 - int deleteByPrimaryKey(Short id); 7 + int deleteByPrimaryKey(Integer id);
8 8
9 int insert(ProductSort record); 9 int insert(ProductSort record);
10 10
11 - ProductSort selectByPrimaryKey(Short id); 11 + ProductSort selectByPrimaryKey(Integer id);
12 12
13 List<ProductSort> selectAll(); 13 List<ProductSort> selectAll();
14 14
@@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.Size; @@ -4,11 +4,11 @@ import com.yohoufo.dal.product.model.Size;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface SizeMapper { 6 public interface SizeMapper {
7 - int deleteByPrimaryKey(Short id); 7 + int deleteByPrimaryKey(Integer id);
8 8
9 int insert(Size record); 9 int insert(Size record);
10 10
11 - Size selectByPrimaryKey(Short id); 11 + Size selectByPrimaryKey(Integer id);
12 12
13 List<Size> selectAll(); 13 List<Size> selectAll();
14 14
1 package com.yohoufo.dal.product.model; 1 package com.yohoufo.dal.product.model;
2 2
3 public class Brand { 3 public class Brand {
4 - private Short id; 4 + private Integer id;
5 5
6 private String brandName; 6 private String brandName;
7 7
@@ -11,7 +11,7 @@ public class Brand { @@ -11,7 +11,7 @@ public class Brand {
11 11
12 private String brandSearch; 12 private String brandSearch;
13 13
14 - private Byte status; 14 + private Integer status;
15 15
16 private Integer createTime; 16 private Integer createTime;
17 17
@@ -19,11 +19,13 @@ public class Brand { @@ -19,11 +19,13 @@ public class Brand {
19 19
20 private Integer editPid; 20 private Integer editPid;
21 21
22 - public Short getId() { 22 + private Integer orderBy;
  23 +
  24 + public Integer getId() {
23 return id; 25 return id;
24 } 26 }
25 27
26 - public void setId(Short id) { 28 + public void setId(Integer id) {
27 this.id = id; 29 this.id = id;
28 } 30 }
29 31
@@ -59,11 +61,11 @@ public class Brand { @@ -59,11 +61,11 @@ public class Brand {
59 this.brandSearch = brandSearch; 61 this.brandSearch = brandSearch;
60 } 62 }
61 63
62 - public Byte getStatus() { 64 + public Integer getStatus() {
63 return status; 65 return status;
64 } 66 }
65 67
66 - public void setStatus(Byte status) { 68 + public void setStatus(Integer status) {
67 this.status = status; 69 this.status = status;
68 } 70 }
69 71
@@ -90,4 +92,12 @@ public class Brand { @@ -90,4 +92,12 @@ public class Brand {
90 public void setEditPid(Integer editPid) { 92 public void setEditPid(Integer editPid) {
91 this.editPid = editPid; 93 this.editPid = editPid;
92 } 94 }
  95 +
  96 + public Integer getOrderBy() {
  97 + return orderBy;
  98 + }
  99 +
  100 + public void setOrderBy(Integer orderBy) {
  101 + this.orderBy = orderBy;
  102 + }
93 } 103 }
1 package com.yohoufo.dal.product.model; 1 package com.yohoufo.dal.product.model;
2 2
3 public class BrandSeries { 3 public class BrandSeries {
4 - private Short id; 4 + private Integer id;
5 5
6 private String seriesName; 6 private String seriesName;
7 7
8 private String seriesSearch; 8 private String seriesSearch;
9 9
10 - private Byte status; 10 + private Integer status;
11 11
12 private Integer createTime; 12 private Integer createTime;
13 13
@@ -15,11 +15,11 @@ public class BrandSeries { @@ -15,11 +15,11 @@ public class BrandSeries {
15 15
16 private Integer brandId; 16 private Integer brandId;
17 17
18 - public Short getId() { 18 + public Integer getId() {
19 return id; 19 return id;
20 } 20 }
21 21
22 - public void setId(Short id) { 22 + public void setId(Integer id) {
23 this.id = id; 23 this.id = id;
24 } 24 }
25 25
@@ -39,11 +39,11 @@ public class BrandSeries { @@ -39,11 +39,11 @@ public class BrandSeries {
39 this.seriesSearch = seriesSearch; 39 this.seriesSearch = seriesSearch;
40 } 40 }
41 41
42 - public Byte getStatus() { 42 + public Integer getStatus() {
43 return status; 43 return status;
44 } 44 }
45 45
46 - public void setStatus(Byte status) { 46 + public void setStatus(Integer status) {
47 this.status = status; 47 this.status = status;
48 } 48 }
49 49
@@ -5,7 +5,7 @@ public class Goods { @@ -5,7 +5,7 @@ public class Goods {
5 5
6 private Integer productId; 6 private Integer productId;
7 7
8 - private Short colorId; 8 + private Integer colorId;
9 9
10 private String colorName; 10 private String colorName;
11 11
@@ -31,11 +31,11 @@ public class Goods { @@ -31,11 +31,11 @@ public class Goods {
31 this.productId = productId; 31 this.productId = productId;
32 } 32 }
33 33
34 - public Short getColorId() { 34 + public Integer getColorId() {
35 return colorId; 35 return colorId;
36 } 36 }
37 37
38 - public void setColorId(Short colorId) { 38 + public void setColorId(Integer colorId) {
39 this.colorId = colorId; 39 this.colorId = colorId;
40 } 40 }
41 41
@@ -11,7 +11,7 @@ public class GoodsImages { @@ -11,7 +11,7 @@ public class GoodsImages {
11 11
12 private String imageUrl; 12 private String imageUrl;
13 13
14 - private Byte orderBy; 14 + private Integer orderBy;
15 15
16 public Integer getId() { 16 public Integer getId() {
17 return id; 17 return id;
@@ -53,11 +53,11 @@ public class GoodsImages { @@ -53,11 +53,11 @@ public class GoodsImages {
53 this.imageUrl = imageUrl; 53 this.imageUrl = imageUrl;
54 } 54 }
55 55
56 - public Byte getOrderBy() { 56 + public Integer getOrderBy() {
57 return orderBy; 57 return orderBy;
58 } 58 }
59 59
60 - public void setOrderBy(Byte orderBy) { 60 + public void setOrderBy(Integer orderBy) {
61 this.orderBy = orderBy; 61 this.orderBy = orderBy;
62 } 62 }
63 } 63 }
@@ -9,11 +9,13 @@ public class Product { @@ -9,11 +9,13 @@ public class Product {
9 9
10 private String productCode; 10 private String productCode;
11 11
12 - private Short sortId; 12 + private Integer maxSortId;
13 13
14 - private Short brandId; 14 + private Integer midSortId;
15 15
16 - private Short seriesId; 16 + private Integer brandId;
  17 +
  18 + private Integer seriesId;
17 19
18 private String gender; 20 private String gender;
19 21
@@ -31,13 +33,14 @@ public class Product { @@ -31,13 +33,14 @@ public class Product {
31 33
32 private Integer editTime; 34 private Integer editTime;
33 35
34 - private Byte shelveStatus; 36 + private Integer shelveStatus;
35 37
36 private Integer storage; 38 private Integer storage;
37 39
38 private String keyWords; 40 private String keyWords;
39 41
40 - private Byte delStatus; 42 + private Integer delStatus;
  43 +
41 44
42 public Integer getId() { 45 public Integer getId() {
43 return id; 46 return id;
@@ -63,27 +66,35 @@ public class Product { @@ -63,27 +66,35 @@ public class Product {
63 this.productCode = productCode; 66 this.productCode = productCode;
64 } 67 }
65 68
66 - public Short getSortId() {  
67 - return sortId; 69 + public Integer getMaxSortId() {
  70 + return maxSortId;
  71 + }
  72 +
  73 + public void setMaxSortId(Integer maxSortId) {
  74 + this.maxSortId = maxSortId;
  75 + }
  76 +
  77 + public Integer getMidSortId() {
  78 + return midSortId;
68 } 79 }
69 80
70 - public void setSortId(Short sortId) {  
71 - this.sortId = sortId; 81 + public void setMidSortId(Integer midSortId) {
  82 + this.midSortId = midSortId;
72 } 83 }
73 84
74 - public Short getBrandId() { 85 + public Integer getBrandId() {
75 return brandId; 86 return brandId;
76 } 87 }
77 88
78 - public void setBrandId(Short brandId) { 89 + public void setBrandId(Integer brandId) {
79 this.brandId = brandId; 90 this.brandId = brandId;
80 } 91 }
81 92
82 - public Short getSeriesId() { 93 + public Integer getSeriesId() {
83 return seriesId; 94 return seriesId;
84 } 95 }
85 96
86 - public void setSeriesId(Short seriesId) { 97 + public void setSeriesId(Integer seriesId) {
87 this.seriesId = seriesId; 98 this.seriesId = seriesId;
88 } 99 }
89 100
@@ -151,11 +162,11 @@ public class Product { @@ -151,11 +162,11 @@ public class Product {
151 this.editTime = editTime; 162 this.editTime = editTime;
152 } 163 }
153 164
154 - public Byte getShelveStatus() { 165 + public Integer getShelveStatus() {
155 return shelveStatus; 166 return shelveStatus;
156 } 167 }
157 168
158 - public void setShelveStatus(Byte shelveStatus) { 169 + public void setShelveStatus(Integer shelveStatus) {
159 this.shelveStatus = shelveStatus; 170 this.shelveStatus = shelveStatus;
160 } 171 }
161 172
@@ -175,11 +186,11 @@ public class Product { @@ -175,11 +186,11 @@ public class Product {
175 this.keyWords = keyWords; 186 this.keyWords = keyWords;
176 } 187 }
177 188
178 - public Byte getDelStatus() { 189 + public Integer getDelStatus() {
179 return delStatus; 190 return delStatus;
180 } 191 }
181 192
182 - public void setDelStatus(Byte delStatus) { 193 + public void setDelStatus(Integer delStatus) {
183 this.delStatus = delStatus; 194 this.delStatus = delStatus;
184 } 195 }
185 } 196 }
1 package com.yohoufo.dal.product.model; 1 package com.yohoufo.dal.product.model;
2 2
3 public class ProductColor { 3 public class ProductColor {
4 - private Short id; 4 + private Integer id;
5 5
6 private String colorName; 6 private String colorName;
7 7
@@ -13,11 +13,11 @@ public class ProductColor { @@ -13,11 +13,11 @@ public class ProductColor {
13 13
14 private Integer updateTime; 14 private Integer updateTime;
15 15
16 - public Short getId() { 16 + public Integer getId() {
17 return id; 17 return id;
18 } 18 }
19 19
20 - public void setId(Short id) { 20 + public void setId(Integer id) {
21 this.id = id; 21 this.id = id;
22 } 22 }
23 23
1 package com.yohoufo.dal.product.model; 1 package com.yohoufo.dal.product.model;
2 2
3 public class ProductSort { 3 public class ProductSort {
4 - private Short id; 4 + private Integer id;
5 5
6 private String sortName; 6 private String sortName;
7 7
8 - private Byte status; 8 + private Integer level;
  9 +
  10 + private Integer parentId;
  11 +
  12 + private Integer status;
9 13
10 private Integer createTime; 14 private Integer createTime;
11 15
12 private Integer updateTime; 16 private Integer updateTime;
13 17
14 - public Short getId() { 18 + private Integer orderBy;
  19 +
  20 + public Integer getId() {
15 return id; 21 return id;
16 } 22 }
17 23
18 - public void setId(Short id) { 24 + public void setId(Integer id) {
19 this.id = id; 25 this.id = id;
20 } 26 }
21 27
@@ -27,11 +33,27 @@ public class ProductSort { @@ -27,11 +33,27 @@ public class ProductSort {
27 this.sortName = sortName; 33 this.sortName = sortName;
28 } 34 }
29 35
30 - public Byte getStatus() { 36 + public Integer getLevel() {
  37 + return level;
  38 + }
  39 +
  40 + public void setLevel(Integer level) {
  41 + this.level = level;
  42 + }
  43 +
  44 + public Integer getParentId() {
  45 + return parentId;
  46 + }
  47 +
  48 + public void setParentId(Integer parentId) {
  49 + this.parentId = parentId;
  50 + }
  51 +
  52 + public Integer getStatus() {
31 return status; 53 return status;
32 } 54 }
33 55
34 - public void setStatus(Byte status) { 56 + public void setStatus(Integer status) {
35 this.status = status; 57 this.status = status;
36 } 58 }
37 59
@@ -50,4 +72,12 @@ public class ProductSort { @@ -50,4 +72,12 @@ public class ProductSort {
50 public void setUpdateTime(Integer updateTime) { 72 public void setUpdateTime(Integer updateTime) {
51 this.updateTime = updateTime; 73 this.updateTime = updateTime;
52 } 74 }
  75 +
  76 + public Integer getOrderBy() {
  77 + return orderBy;
  78 + }
  79 +
  80 + public void setOrderBy(Integer orderBy) {
  81 + this.orderBy = orderBy;
  82 + }
53 } 83 }
1 package com.yohoufo.dal.product.model; 1 package com.yohoufo.dal.product.model;
2 2
3 public class Size { 3 public class Size {
4 - private Short id; 4 + private Integer id;
5 5
6 private String sizeName; 6 private String sizeName;
7 7
8 - private Short sortId; 8 + private Integer sortId;
9 9
10 private Integer orderBy; 10 private Integer orderBy;
11 11
@@ -13,11 +13,11 @@ public class Size { @@ -13,11 +13,11 @@ public class Size {
13 13
14 private Integer updateTime; 14 private Integer updateTime;
15 15
16 - public Short getId() { 16 + public Integer getId() {
17 return id; 17 return id;
18 } 18 }
19 19
20 - public void setId(Short id) { 20 + public void setId(Integer id) {
21 this.id = id; 21 this.id = id;
22 } 22 }
23 23
@@ -29,11 +29,11 @@ public class Size { @@ -29,11 +29,11 @@ public class Size {
29 this.sizeName = sizeName; 29 this.sizeName = sizeName;
30 } 30 }
31 31
32 - public Short getSortId() { 32 + public Integer getSortId() {
33 return sortId; 33 return sortId;
34 } 34 }
35 35
36 - public void setSortId(Short sortId) { 36 + public void setSortId(Integer sortId) {
37 this.sortId = sortId; 37 this.sortId = sortId;
38 } 38 }
39 39
@@ -7,7 +7,7 @@ public class Storage { @@ -7,7 +7,7 @@ public class Storage {
7 7
8 private Integer goodsId; 8 private Integer goodsId;
9 9
10 - private Short sizeId; 10 + private Integer sizeId;
11 11
12 private Integer storageNum; 12 private Integer storageNum;
13 13
@@ -39,11 +39,11 @@ public class Storage { @@ -39,11 +39,11 @@ public class Storage {
39 this.goodsId = goodsId; 39 this.goodsId = goodsId;
40 } 40 }
41 41
42 - public Short getSizeId() { 42 + public Integer getSizeId() {
43 return sizeId; 43 return sizeId;
44 } 44 }
45 45
46 - public void setSizeId(Short sizeId) { 46 + public void setSizeId(Integer sizeId) {
47 this.sizeId = sizeId; 47 this.sizeId = sizeId;
48 } 48 }
49 49
@@ -9,7 +9,7 @@ public class StoragePrice { @@ -9,7 +9,7 @@ public class StoragePrice {
9 9
10 private Integer goodsId; 10 private Integer goodsId;
11 11
12 - private Short storageId; 12 + private Integer storageId;
13 13
14 private Integer depotNum; 14 private Integer depotNum;
15 15
@@ -17,7 +17,7 @@ public class StoragePrice { @@ -17,7 +17,7 @@ public class StoragePrice {
17 17
18 private BigDecimal price; 18 private BigDecimal price;
19 19
20 - private Byte status; 20 + private Integer status;
21 21
22 private Integer updateTime; 22 private Integer updateTime;
23 23
@@ -47,11 +47,11 @@ public class StoragePrice { @@ -47,11 +47,11 @@ public class StoragePrice {
47 this.goodsId = goodsId; 47 this.goodsId = goodsId;
48 } 48 }
49 49
50 - public Short getStorageId() { 50 + public Integer getStorageId() {
51 return storageId; 51 return storageId;
52 } 52 }
53 53
54 - public void setStorageId(Short storageId) { 54 + public void setStorageId(Integer storageId) {
55 this.storageId = storageId; 55 this.storageId = storageId;
56 } 56 }
57 57
@@ -79,11 +79,11 @@ public class StoragePrice { @@ -79,11 +79,11 @@ public class StoragePrice {
79 this.price = price; 79 this.price = price;
80 } 80 }
81 81
82 - public Byte getStatus() { 82 + public Integer getStatus() {
83 return status; 83 return status;
84 } 84 }
85 85
86 - public void setStatus(Byte status) { 86 + public void setStatus(Integer status) {
87 this.status = status; 87 this.status = status;
88 } 88 }
89 89
@@ -2,28 +2,29 @@ @@ -2,28 +2,29 @@
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="com.yohoufo.dal.product.BrandMapper"> 3 <mapper namespace="com.yohoufo.dal.product.BrandMapper">
4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.Brand"> 4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.Brand">
5 - <id column="id" jdbcType="SMALLINT" property="id" /> 5 + <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="brand_name" jdbcType="VARCHAR" property="brandName" /> 6 <result column="brand_name" jdbcType="VARCHAR" property="brandName" />
7 <result column="brand_name_en" jdbcType="VARCHAR" property="brandNameEn" /> 7 <result column="brand_name_en" jdbcType="VARCHAR" property="brandNameEn" />
8 <result column="brand_log" jdbcType="VARCHAR" property="brandLog" /> 8 <result column="brand_log" jdbcType="VARCHAR" property="brandLog" />
9 <result column="brand_search" jdbcType="VARCHAR" property="brandSearch" /> 9 <result column="brand_search" jdbcType="VARCHAR" property="brandSearch" />
10 - <result column="status" jdbcType="TINYINT" property="status" /> 10 + <result column="status" jdbcType="INTEGER" property="status" />
11 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 11 <result column="create_time" jdbcType="INTEGER" property="createTime" />
12 <result column="edit_time" jdbcType="INTEGER" property="editTime" /> 12 <result column="edit_time" jdbcType="INTEGER" property="editTime" />
13 <result column="edit_pid" jdbcType="INTEGER" property="editPid" /> 13 <result column="edit_pid" jdbcType="INTEGER" property="editPid" />
  14 + <result column="order_by" jdbcType="INTEGER" property="orderBy" />
14 </resultMap> 15 </resultMap>
15 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Short"> 16 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
16 delete from brand 17 delete from brand
17 - where id = #{id,jdbcType=SMALLINT} 18 + where id = #{id,jdbcType=INTEGER}
18 </delete> 19 </delete>
19 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Brand"> 20 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Brand">
20 insert into brand (id, brand_name, brand_name_en, 21 insert into brand (id, brand_name, brand_name_en,
21 brand_log, brand_search, status, 22 brand_log, brand_search, status,
22 - create_time, edit_time, edit_pid 23 + create_time, edit_time, edit_pid, order_by
23 ) 24 )
24 - values (#{id,jdbcType=SMALLINT}, #{brandName,jdbcType=VARCHAR}, #{brandNameEn,jdbcType=VARCHAR},  
25 - #{brandLog,jdbcType=VARCHAR}, #{brandSearch,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},  
26 - #{createTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER}, #{editPid,jdbcType=INTEGER} 25 + values (#{id,jdbcType=INTEGER}, #{brandName,jdbcType=VARCHAR}, #{brandNameEn,jdbcType=VARCHAR},
  26 + #{brandLog,jdbcType=VARCHAR}, #{brandSearch,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
  27 + #{createTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER}, #{editPid,jdbcType=INTEGER}, #{orderBy,jdbcType=INTEGER}
27 ) 28 )
28 </insert> 29 </insert>
29 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Brand"> 30 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Brand">
@@ -32,21 +33,22 @@ @@ -32,21 +33,22 @@
32 brand_name_en = #{brandNameEn,jdbcType=VARCHAR}, 33 brand_name_en = #{brandNameEn,jdbcType=VARCHAR},
33 brand_log = #{brandLog,jdbcType=VARCHAR}, 34 brand_log = #{brandLog,jdbcType=VARCHAR},
34 brand_search = #{brandSearch,jdbcType=VARCHAR}, 35 brand_search = #{brandSearch,jdbcType=VARCHAR},
35 - status = #{status,jdbcType=TINYINT}, 36 + status = #{status,jdbcType=INTEGER},
36 create_time = #{createTime,jdbcType=INTEGER}, 37 create_time = #{createTime,jdbcType=INTEGER},
37 edit_time = #{editTime,jdbcType=INTEGER}, 38 edit_time = #{editTime,jdbcType=INTEGER},
38 - edit_pid = #{editPid,jdbcType=INTEGER}  
39 - where id = #{id,jdbcType=SMALLINT} 39 + edit_pid = #{editPid,jdbcType=INTEGER},
  40 + order_by = #{orderBy,jdbcType=INTEGER}
  41 + where id = #{id,jdbcType=INTEGER}
40 </update> 42 </update>
41 - <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap"> 43 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
42 select id, brand_name, brand_name_en, brand_log, brand_search, status, create_time, 44 select id, brand_name, brand_name_en, brand_log, brand_search, status, create_time,
43 - edit_time, edit_pid 45 + edit_time, edit_pid, order_by
44 from brand 46 from brand
45 - where id = #{id,jdbcType=SMALLINT} 47 + where id = #{id,jdbcType=INTEGER}
46 </select> 48 </select>
47 <select id="selectAll" resultMap="BaseResultMap"> 49 <select id="selectAll" resultMap="BaseResultMap">
48 select id, brand_name, brand_name_en, brand_log, brand_search, status, create_time, 50 select id, brand_name, brand_name_en, brand_log, brand_search, status, create_time,
49 - edit_time, edit_pid 51 + edit_time, edit_pid, order_by
50 from brand 52 from brand
51 </select> 53 </select>
52 </mapper> 54 </mapper>
@@ -2,40 +2,40 @@ @@ -2,40 +2,40 @@
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="com.yohoufo.dal.product.BrandSeriesMapper"> 3 <mapper namespace="com.yohoufo.dal.product.BrandSeriesMapper">
4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.BrandSeries"> 4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.BrandSeries">
5 - <id column="id" jdbcType="SMALLINT" property="id" /> 5 + <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="series_name" jdbcType="VARCHAR" property="seriesName" /> 6 <result column="series_name" jdbcType="VARCHAR" property="seriesName" />
7 <result column="series_search" jdbcType="VARCHAR" property="seriesSearch" /> 7 <result column="series_search" jdbcType="VARCHAR" property="seriesSearch" />
8 - <result column="status" jdbcType="TINYINT" property="status" /> 8 + <result column="status" jdbcType="INTEGER" property="status" />
9 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 9 <result column="create_time" jdbcType="INTEGER" property="createTime" />
10 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 10 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
11 <result column="brand_id" jdbcType="INTEGER" property="brandId" /> 11 <result column="brand_id" jdbcType="INTEGER" property="brandId" />
12 </resultMap> 12 </resultMap>
13 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Short"> 13 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
14 delete from brand_series 14 delete from brand_series
15 - where id = #{id,jdbcType=SMALLINT} 15 + where id = #{id,jdbcType=INTEGER}
16 </delete> 16 </delete>
17 <insert id="insert" parameterType="com.yohoufo.dal.product.model.BrandSeries"> 17 <insert id="insert" parameterType="com.yohoufo.dal.product.model.BrandSeries">
18 insert into brand_series (id, series_name, series_search, 18 insert into brand_series (id, series_name, series_search,
19 status, create_time, update_time, 19 status, create_time, update_time,
20 brand_id) 20 brand_id)
21 - values (#{id,jdbcType=SMALLINT}, #{seriesName,jdbcType=VARCHAR}, #{seriesSearch,jdbcType=VARCHAR},  
22 - #{status,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, 21 + values (#{id,jdbcType=INTEGER}, #{seriesName,jdbcType=VARCHAR}, #{seriesSearch,jdbcType=VARCHAR},
  22 + #{status,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
23 #{brandId,jdbcType=INTEGER}) 23 #{brandId,jdbcType=INTEGER})
24 </insert> 24 </insert>
25 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.BrandSeries"> 25 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.BrandSeries">
26 update brand_series 26 update brand_series
27 set series_name = #{seriesName,jdbcType=VARCHAR}, 27 set series_name = #{seriesName,jdbcType=VARCHAR},
28 series_search = #{seriesSearch,jdbcType=VARCHAR}, 28 series_search = #{seriesSearch,jdbcType=VARCHAR},
29 - status = #{status,jdbcType=TINYINT}, 29 + status = #{status,jdbcType=INTEGER},
30 create_time = #{createTime,jdbcType=INTEGER}, 30 create_time = #{createTime,jdbcType=INTEGER},
31 update_time = #{updateTime,jdbcType=INTEGER}, 31 update_time = #{updateTime,jdbcType=INTEGER},
32 brand_id = #{brandId,jdbcType=INTEGER} 32 brand_id = #{brandId,jdbcType=INTEGER}
33 - where id = #{id,jdbcType=SMALLINT} 33 + where id = #{id,jdbcType=INTEGER}
34 </update> 34 </update>
35 - <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap"> 35 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
36 select id, series_name, series_search, status, create_time, update_time, brand_id 36 select id, series_name, series_search, status, create_time, update_time, brand_id
37 from brand_series 37 from brand_series
38 - where id = #{id,jdbcType=SMALLINT} 38 + where id = #{id,jdbcType=INTEGER}
39 </select> 39 </select>
40 <select id="selectAll" resultMap="BaseResultMap"> 40 <select id="selectAll" resultMap="BaseResultMap">
41 select id, series_name, series_search, status, create_time, update_time, brand_id 41 select id, series_name, series_search, status, create_time, update_time, brand_id
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 <result column="product_id" jdbcType="INTEGER" property="productId" /> 7 <result column="product_id" jdbcType="INTEGER" property="productId" />
8 <result column="is_default" jdbcType="CHAR" property="isDefault" /> 8 <result column="is_default" jdbcType="CHAR" property="isDefault" />
9 <result column="image_url" jdbcType="VARCHAR" property="imageUrl" /> 9 <result column="image_url" jdbcType="VARCHAR" property="imageUrl" />
10 - <result column="order_by" jdbcType="TINYINT" property="orderBy" /> 10 + <result column="order_by" jdbcType="INTEGER" property="orderBy" />
11 </resultMap> 11 </resultMap>
12 <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> 12 <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
13 delete from goods_images 13 delete from goods_images
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 is_default, image_url, order_by 18 is_default, image_url, order_by
19 ) 19 )
20 values (#{id,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, 20 values (#{id,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER},
21 - #{isDefault,jdbcType=CHAR}, #{imageUrl,jdbcType=VARCHAR}, #{orderBy,jdbcType=TINYINT} 21 + #{isDefault,jdbcType=CHAR}, #{imageUrl,jdbcType=VARCHAR}, #{orderBy,jdbcType=INTEGER}
22 ) 22 )
23 </insert> 23 </insert>
24 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.GoodsImages"> 24 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.GoodsImages">
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 product_id = #{productId,jdbcType=INTEGER}, 27 product_id = #{productId,jdbcType=INTEGER},
28 is_default = #{isDefault,jdbcType=CHAR}, 28 is_default = #{isDefault,jdbcType=CHAR},
29 image_url = #{imageUrl,jdbcType=VARCHAR}, 29 image_url = #{imageUrl,jdbcType=VARCHAR},
30 - order_by = #{orderBy,jdbcType=TINYINT} 30 + order_by = #{orderBy,jdbcType=INTEGER}
31 where id = #{id,jdbcType=INTEGER} 31 where id = #{id,jdbcType=INTEGER}
32 </update> 32 </update>
33 <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> 33 <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.Goods"> 4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.Goods">
5 <id column="id" jdbcType="INTEGER" property="id" /> 5 <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="product_id" jdbcType="INTEGER" property="productId" /> 6 <result column="product_id" jdbcType="INTEGER" property="productId" />
7 - <result column="color_id" jdbcType="SMALLINT" property="colorId" /> 7 + <result column="color_id" jdbcType="INTEGER" property="colorId" />
8 <result column="color_name" jdbcType="VARCHAR" property="colorName" /> 8 <result column="color_name" jdbcType="VARCHAR" property="colorName" />
9 <result column="goods_name" jdbcType="VARCHAR" property="goodsName" /> 9 <result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
10 <result column="color_image" jdbcType="VARCHAR" property="colorImage" /> 10 <result column="color_image" jdbcType="VARCHAR" property="colorImage" />
@@ -18,14 +18,14 @@ @@ -18,14 +18,14 @@
18 insert into goods (id, product_id, color_id, 18 insert into goods (id, product_id, color_id,
19 color_name, goods_name, color_image, 19 color_name, goods_name, color_image,
20 is_default) 20 is_default)
21 - values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{colorId,jdbcType=SMALLINT}, 21 + values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{colorId,jdbcType=INTEGER},
22 #{colorName,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, #{colorImage,jdbcType=VARCHAR}, 22 #{colorName,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, #{colorImage,jdbcType=VARCHAR},
23 #{isDefault,jdbcType=CHAR}) 23 #{isDefault,jdbcType=CHAR})
24 </insert> 24 </insert>
25 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Goods"> 25 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Goods">
26 update goods 26 update goods
27 set product_id = #{productId,jdbcType=INTEGER}, 27 set product_id = #{productId,jdbcType=INTEGER},
28 - color_id = #{colorId,jdbcType=SMALLINT}, 28 + color_id = #{colorId,jdbcType=INTEGER},
29 color_name = #{colorName,jdbcType=VARCHAR}, 29 color_name = #{colorName,jdbcType=VARCHAR},
30 goods_name = #{goodsName,jdbcType=VARCHAR}, 30 goods_name = #{goodsName,jdbcType=VARCHAR},
31 color_image = #{colorImage,jdbcType=VARCHAR}, 31 color_image = #{colorImage,jdbcType=VARCHAR},
@@ -2,22 +2,22 @@ @@ -2,22 +2,22 @@
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="com.yohoufo.dal.product.ProductColorMapper"> 3 <mapper namespace="com.yohoufo.dal.product.ProductColorMapper">
4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.ProductColor"> 4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.ProductColor">
5 - <id column="id" jdbcType="SMALLINT" property="id" /> 5 + <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="color_name" jdbcType="VARCHAR" property="colorName" /> 6 <result column="color_name" jdbcType="VARCHAR" property="colorName" />
7 <result column="color_code" jdbcType="VARCHAR" property="colorCode" /> 7 <result column="color_code" jdbcType="VARCHAR" property="colorCode" />
8 <result column="color_value" jdbcType="VARCHAR" property="colorValue" /> 8 <result column="color_value" jdbcType="VARCHAR" property="colorValue" />
9 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 9 <result column="create_time" jdbcType="INTEGER" property="createTime" />
10 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 10 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
11 </resultMap> 11 </resultMap>
12 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Short"> 12 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
13 delete from product_color 13 delete from product_color
14 - where id = #{id,jdbcType=SMALLINT} 14 + where id = #{id,jdbcType=INTEGER}
15 </delete> 15 </delete>
16 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductColor"> 16 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductColor">
17 insert into product_color (id, color_name, color_code, 17 insert into product_color (id, color_name, color_code,
18 color_value, create_time, update_time 18 color_value, create_time, update_time
19 ) 19 )
20 - values (#{id,jdbcType=SMALLINT}, #{colorName,jdbcType=VARCHAR}, #{colorCode,jdbcType=VARCHAR}, 20 + values (#{id,jdbcType=INTEGER}, #{colorName,jdbcType=VARCHAR}, #{colorCode,jdbcType=VARCHAR},
21 #{colorValue,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER} 21 #{colorValue,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}
22 ) 22 )
23 </insert> 23 </insert>
@@ -28,12 +28,12 @@ @@ -28,12 +28,12 @@
28 color_value = #{colorValue,jdbcType=VARCHAR}, 28 color_value = #{colorValue,jdbcType=VARCHAR},
29 create_time = #{createTime,jdbcType=INTEGER}, 29 create_time = #{createTime,jdbcType=INTEGER},
30 update_time = #{updateTime,jdbcType=INTEGER} 30 update_time = #{updateTime,jdbcType=INTEGER}
31 - where id = #{id,jdbcType=SMALLINT} 31 + where id = #{id,jdbcType=INTEGER}
32 </update> 32 </update>
33 - <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap"> 33 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
34 select id, color_name, color_code, color_value, create_time, update_time 34 select id, color_name, color_code, color_value, create_time, update_time
35 from product_color 35 from product_color
36 - where id = #{id,jdbcType=SMALLINT} 36 + where id = #{id,jdbcType=INTEGER}
37 </select> 37 </select>
38 <select id="selectAll" resultMap="BaseResultMap"> 38 <select id="selectAll" resultMap="BaseResultMap">
39 select id, color_name, color_code, color_value, create_time, update_time 39 select id, color_name, color_code, color_value, create_time, update_time
@@ -5,9 +5,10 @@ @@ -5,9 +5,10 @@
5 <id column="id" jdbcType="INTEGER" property="id" /> 5 <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="product_name" jdbcType="VARCHAR" property="productName" /> 6 <result column="product_name" jdbcType="VARCHAR" property="productName" />
7 <result column="product_code" jdbcType="VARCHAR" property="productCode" /> 7 <result column="product_code" jdbcType="VARCHAR" property="productCode" />
8 - <result column="sort_id" jdbcType="SMALLINT" property="sortId" />  
9 - <result column="brand_id" jdbcType="SMALLINT" property="brandId" />  
10 - <result column="series_id" jdbcType="SMALLINT" property="seriesId" /> 8 + <result column="max_sort_id" jdbcType="INTEGER" property="maxSortId" />
  9 + <result column="mid_sort_id" jdbcType="INTEGER" property="midSortId" />
  10 + <result column="brand_id" jdbcType="INTEGER" property="brandId" />
  11 + <result column="series_id" jdbcType="INTEGER" property="seriesId" />
11 <result column="gender" jdbcType="CHAR" property="gender" /> 12 <result column="gender" jdbcType="CHAR" property="gender" />
12 <result column="sale_time" jdbcType="INTEGER" property="saleTime" /> 13 <result column="sale_time" jdbcType="INTEGER" property="saleTime" />
13 <result column="min_price" jdbcType="DECIMAL" property="minPrice" /> 14 <result column="min_price" jdbcType="DECIMAL" property="minPrice" />
@@ -16,10 +17,10 @@ @@ -16,10 +17,10 @@
16 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 17 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
17 <result column="shelve_time" jdbcType="INTEGER" property="shelveTime" /> 18 <result column="shelve_time" jdbcType="INTEGER" property="shelveTime" />
18 <result column="edit_time" jdbcType="INTEGER" property="editTime" /> 19 <result column="edit_time" jdbcType="INTEGER" property="editTime" />
19 - <result column="shelve_status" jdbcType="TINYINT" property="shelveStatus" /> 20 + <result column="shelve_status" jdbcType="INTEGER" property="shelveStatus" />
20 <result column="storage" jdbcType="INTEGER" property="storage" /> 21 <result column="storage" jdbcType="INTEGER" property="storage" />
21 <result column="key_words" jdbcType="VARCHAR" property="keyWords" /> 22 <result column="key_words" jdbcType="VARCHAR" property="keyWords" />
22 - <result column="del_status" jdbcType="TINYINT" property="delStatus" /> 23 + <result column="del_status" jdbcType="INTEGER" property="delStatus" />
23 </resultMap> 24 </resultMap>
24 <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> 25 <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
25 delete from product 26 delete from product
@@ -27,27 +28,28 @@ @@ -27,27 +28,28 @@
27 </delete> 28 </delete>
28 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Product"> 29 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Product">
29 insert into product (id, product_name, product_code, 30 insert into product (id, product_name, product_code,
30 - sort_id, brand_id, series_id, 31 + max_sort_id, mid_sort_id, brand_id, series_id,
31 gender, sale_time, min_price, 32 gender, sale_time, min_price,
32 max_price, create_time, update_time, 33 max_price, create_time, update_time,
33 shelve_time, edit_time, shelve_status, 34 shelve_time, edit_time, shelve_status,
34 storage, key_words, del_status 35 storage, key_words, del_status
35 ) 36 )
36 values (#{id,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR}, 37 values (#{id,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR},
37 - #{sortId,jdbcType=SMALLINT}, #{brandId,jdbcType=SMALLINT}, #{seriesId,jdbcType=SMALLINT}, 38 + #{maxSortId,jdbcType=INTEGER}, #{midSortId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER}, #{seriesId,jdbcType=INTEGER},
38 #{gender,jdbcType=CHAR}, #{saleTime,jdbcType=INTEGER}, #{minPrice,jdbcType=DECIMAL}, 39 #{gender,jdbcType=CHAR}, #{saleTime,jdbcType=INTEGER}, #{minPrice,jdbcType=DECIMAL},
39 #{maxPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, 40 #{maxPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
40 - #{shelveTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER}, #{shelveStatus,jdbcType=TINYINT},  
41 - #{storage,jdbcType=INTEGER}, #{keyWords,jdbcType=VARCHAR}, #{delStatus,jdbcType=TINYINT} 41 + #{shelveTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER}, #{shelveStatus,jdbcType=INTEGER},
  42 + #{storage,jdbcType=INTEGER}, #{keyWords,jdbcType=VARCHAR}, #{delStatus,jdbcType=INTEGER}
42 ) 43 )
43 </insert> 44 </insert>
44 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Product"> 45 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Product">
45 update product 46 update product
46 set product_name = #{productName,jdbcType=VARCHAR}, 47 set product_name = #{productName,jdbcType=VARCHAR},
47 product_code = #{productCode,jdbcType=VARCHAR}, 48 product_code = #{productCode,jdbcType=VARCHAR},
48 - sort_id = #{sortId,jdbcType=SMALLINT},  
49 - brand_id = #{brandId,jdbcType=SMALLINT},  
50 - series_id = #{seriesId,jdbcType=SMALLINT}, 49 + max_sort_id = #{maxSortId,jdbcType=INTEGER},
  50 + mid_sort_id = #{midSortId,jdbcType=INTEGER},
  51 + brand_id = #{brandId,jdbcType=INTEGER},
  52 + series_id = #{seriesId,jdbcType=INTEGER},
51 gender = #{gender,jdbcType=CHAR}, 53 gender = #{gender,jdbcType=CHAR},
52 sale_time = #{saleTime,jdbcType=INTEGER}, 54 sale_time = #{saleTime,jdbcType=INTEGER},
53 min_price = #{minPrice,jdbcType=DECIMAL}, 55 min_price = #{minPrice,jdbcType=DECIMAL},
@@ -56,21 +58,21 @@ @@ -56,21 +58,21 @@
56 update_time = #{updateTime,jdbcType=INTEGER}, 58 update_time = #{updateTime,jdbcType=INTEGER},
57 shelve_time = #{shelveTime,jdbcType=INTEGER}, 59 shelve_time = #{shelveTime,jdbcType=INTEGER},
58 edit_time = #{editTime,jdbcType=INTEGER}, 60 edit_time = #{editTime,jdbcType=INTEGER},
59 - shelve_status = #{shelveStatus,jdbcType=TINYINT}, 61 + shelve_status = #{shelveStatus,jdbcType=INTEGER},
60 storage = #{storage,jdbcType=INTEGER}, 62 storage = #{storage,jdbcType=INTEGER},
61 key_words = #{keyWords,jdbcType=VARCHAR}, 63 key_words = #{keyWords,jdbcType=VARCHAR},
62 - del_status = #{delStatus,jdbcType=TINYINT} 64 + del_status = #{delStatus,jdbcType=INTEGER}
63 where id = #{id,jdbcType=INTEGER} 65 where id = #{id,jdbcType=INTEGER}
64 </update> 66 </update>
65 <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> 67 <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
66 - select id, product_name, product_code, sort_id, brand_id, series_id, gender, sale_time, 68 + select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id, gender, sale_time,
67 min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status, 69 min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status,
68 storage, key_words, del_status 70 storage, key_words, del_status
69 from product 71 from product
70 where id = #{id,jdbcType=INTEGER} 72 where id = #{id,jdbcType=INTEGER}
71 </select> 73 </select>
72 <select id="selectAll" resultMap="BaseResultMap"> 74 <select id="selectAll" resultMap="BaseResultMap">
73 - select id, product_name, product_code, sort_id, brand_id, series_id, gender, sale_time, 75 + select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id, gender, sale_time,
74 min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status, 76 min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status,
75 storage, key_words, del_status 77 storage, key_words, del_status
76 from product 78 from product
@@ -2,37 +2,43 @@ @@ -2,37 +2,43 @@
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="com.yohoufo.dal.product.ProductSortMapper"> 3 <mapper namespace="com.yohoufo.dal.product.ProductSortMapper">
4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.ProductSort"> 4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.ProductSort">
5 - <id column="id" jdbcType="SMALLINT" property="id" /> 5 + <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="sort_name" jdbcType="VARCHAR" property="sortName" /> 6 <result column="sort_name" jdbcType="VARCHAR" property="sortName" />
7 - <result column="status" jdbcType="TINYINT" property="status" /> 7 + <result column="level" jdbcType="INTEGER" property="level" />
  8 + <result column="parent_id" jdbcType="INTEGER" property="parentId" />
  9 + <result column="status" jdbcType="INTEGER" property="status" />
8 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 10 <result column="create_time" jdbcType="INTEGER" property="createTime" />
9 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 11 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
  12 + <result column="order_by" jdbcType="INTEGER" property="orderBy" />
10 </resultMap> 13 </resultMap>
11 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Short"> 14 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
12 delete from product_sort 15 delete from product_sort
13 - where id = #{id,jdbcType=SMALLINT} 16 + where id = #{id,jdbcType=INTEGER}
14 </delete> 17 </delete>
15 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductSort"> 18 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductSort">
16 - insert into product_sort (id, sort_name, status,  
17 - create_time, update_time)  
18 - values (#{id,jdbcType=SMALLINT}, #{sortName,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},  
19 - #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}) 19 + insert into product_sort (id, sort_name, `level`, parent_id, status,
  20 + create_time, update_time, order_by)
  21 + values (#{id,jdbcType=INTEGER}, #{sortName,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, #{parentId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
  22 + #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{orderBy,jdbcType=INTEGER})
20 </insert> 23 </insert>
21 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.ProductSort"> 24 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.ProductSort">
22 update product_sort 25 update product_sort
23 set sort_name = #{sortName,jdbcType=VARCHAR}, 26 set sort_name = #{sortName,jdbcType=VARCHAR},
24 - status = #{status,jdbcType=TINYINT}, 27 + status = #{status,jdbcType=INTEGER},
  28 + `level` = #{level,jdbcType=INTEGER},
  29 + parent_id = #{parentId,jdbcType=INTEGER},
25 create_time = #{createTime,jdbcType=INTEGER}, 30 create_time = #{createTime,jdbcType=INTEGER},
26 - update_time = #{updateTime,jdbcType=INTEGER}  
27 - where id = #{id,jdbcType=SMALLINT} 31 + update_time = #{updateTime,jdbcType=INTEGER},
  32 + order_by = #{orderBy,jdbcType=INTEGER}
  33 + where id = #{id,jdbcType=INTEGER}
28 </update> 34 </update>
29 - <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">  
30 - select id, sort_name, status, create_time, update_time 35 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  36 + select id, sort_name, `level`, parent_id, status, create_time, update_time, order_by
31 from product_sort 37 from product_sort
32 - where id = #{id,jdbcType=SMALLINT} 38 + where id = #{id,jdbcType=INTEGER}
33 </select> 39 </select>
34 <select id="selectAll" resultMap="BaseResultMap"> 40 <select id="selectAll" resultMap="BaseResultMap">
35 - select id, sort_name, status, create_time, update_time 41 + select id, sort_name, `level`, parent_id, status, create_time, update_time, order_by
36 from product_sort 42 from product_sort
37 </select> 43 </select>
38 </mapper> 44 </mapper>
@@ -2,38 +2,38 @@ @@ -2,38 +2,38 @@
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="com.yohoufo.dal.product.SizeMapper"> 3 <mapper namespace="com.yohoufo.dal.product.SizeMapper">
4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.Size"> 4 <resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.Size">
5 - <id column="id" jdbcType="SMALLINT" property="id" /> 5 + <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="size_name" jdbcType="VARCHAR" property="sizeName" /> 6 <result column="size_name" jdbcType="VARCHAR" property="sizeName" />
7 - <result column="sort_id" jdbcType="SMALLINT" property="sortId" /> 7 + <result column="sort_id" jdbcType="INTEGER" property="sortId" />
8 <result column="order_by" jdbcType="INTEGER" property="orderBy" /> 8 <result column="order_by" jdbcType="INTEGER" property="orderBy" />
9 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 9 <result column="create_time" jdbcType="INTEGER" property="createTime" />
10 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 10 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
11 </resultMap> 11 </resultMap>
12 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Short"> 12 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
13 delete from size 13 delete from size
14 - where id = #{id,jdbcType=SMALLINT} 14 + where id = #{id,jdbcType=INTEGER}
15 </delete> 15 </delete>
16 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Size"> 16 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Size">
17 insert into size (id, size_name, sort_id, 17 insert into size (id, size_name, sort_id,
18 order_by, create_time, update_time 18 order_by, create_time, update_time
19 ) 19 )
20 - values (#{id,jdbcType=SMALLINT}, #{sizeName,jdbcType=VARCHAR}, #{sortId,jdbcType=SMALLINT}, 20 + values (#{id,jdbcType=INTEGER}, #{sizeName,jdbcType=VARCHAR}, #{sortId,jdbcType=INTEGER},
21 #{orderBy,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER} 21 #{orderBy,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}
22 ) 22 )
23 </insert> 23 </insert>
24 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Size"> 24 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Size">
25 update size 25 update size
26 set size_name = #{sizeName,jdbcType=VARCHAR}, 26 set size_name = #{sizeName,jdbcType=VARCHAR},
27 - sort_id = #{sortId,jdbcType=SMALLINT}, 27 + sort_id = #{sortId,jdbcType=INTEGER},
28 order_by = #{orderBy,jdbcType=INTEGER}, 28 order_by = #{orderBy,jdbcType=INTEGER},
29 create_time = #{createTime,jdbcType=INTEGER}, 29 create_time = #{createTime,jdbcType=INTEGER},
30 update_time = #{updateTime,jdbcType=INTEGER} 30 update_time = #{updateTime,jdbcType=INTEGER}
31 - where id = #{id,jdbcType=SMALLINT} 31 + where id = #{id,jdbcType=INTEGER}
32 </update> 32 </update>
33 - <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap"> 33 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
34 select id, size_name, sort_id, order_by, create_time, update_time 34 select id, size_name, sort_id, order_by, create_time, update_time
35 from size 35 from size
36 - where id = #{id,jdbcType=SMALLINT} 36 + where id = #{id,jdbcType=INTEGER}
37 </select> 37 </select>
38 <select id="selectAll" resultMap="BaseResultMap"> 38 <select id="selectAll" resultMap="BaseResultMap">
39 select id, size_name, sort_id, order_by, create_time, update_time 39 select id, size_name, sort_id, order_by, create_time, update_time
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <id column="id" jdbcType="INTEGER" property="id" /> 5 <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="product_id" jdbcType="INTEGER" property="productId" /> 6 <result column="product_id" jdbcType="INTEGER" property="productId" />
7 <result column="goods_id" jdbcType="INTEGER" property="goodsId" /> 7 <result column="goods_id" jdbcType="INTEGER" property="goodsId" />
8 - <result column="size_id" jdbcType="SMALLINT" property="sizeId" /> 8 + <result column="size_id" jdbcType="INTEGER" property="sizeId" />
9 <result column="storage_num" jdbcType="INTEGER" property="storageNum" /> 9 <result column="storage_num" jdbcType="INTEGER" property="storageNum" />
10 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 10 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
11 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 11 <result column="create_time" jdbcType="INTEGER" property="createTime" />
@@ -19,14 +19,14 @@ @@ -19,14 +19,14 @@
19 size_id, storage_num, update_time, 19 size_id, storage_num, update_time,
20 create_time) 20 create_time)
21 values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, 21 values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER},
22 - #{sizeId,jdbcType=SMALLINT}, #{storageNum,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, 22 + #{sizeId,jdbcType=INTEGER}, #{storageNum,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
23 #{createTime,jdbcType=INTEGER}) 23 #{createTime,jdbcType=INTEGER})
24 </insert> 24 </insert>
25 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Storage"> 25 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Storage">
26 update storage 26 update storage
27 set product_id = #{productId,jdbcType=INTEGER}, 27 set product_id = #{productId,jdbcType=INTEGER},
28 goods_id = #{goodsId,jdbcType=INTEGER}, 28 goods_id = #{goodsId,jdbcType=INTEGER},
29 - size_id = #{sizeId,jdbcType=SMALLINT}, 29 + size_id = #{sizeId,jdbcType=INTEGER},
30 storage_num = #{storageNum,jdbcType=INTEGER}, 30 storage_num = #{storageNum,jdbcType=INTEGER},
31 update_time = #{updateTime,jdbcType=INTEGER}, 31 update_time = #{updateTime,jdbcType=INTEGER},
32 create_time = #{createTime,jdbcType=INTEGER} 32 create_time = #{createTime,jdbcType=INTEGER}
@@ -5,11 +5,11 @@ @@ -5,11 +5,11 @@
5 <id column="id" jdbcType="INTEGER" property="id" /> 5 <id column="id" jdbcType="INTEGER" property="id" />
6 <result column="product_id" jdbcType="INTEGER" property="productId" /> 6 <result column="product_id" jdbcType="INTEGER" property="productId" />
7 <result column="goods_id" jdbcType="INTEGER" property="goodsId" /> 7 <result column="goods_id" jdbcType="INTEGER" property="goodsId" />
8 - <result column="storage_id" jdbcType="SMALLINT" property="storageId" /> 8 + <result column="storage_id" jdbcType="INTEGER" property="storageId" />
9 <result column="depot_num" jdbcType="INTEGER" property="depotNum" /> 9 <result column="depot_num" jdbcType="INTEGER" property="depotNum" />
10 <result column="seller_uid" jdbcType="INTEGER" property="sellerUid" /> 10 <result column="seller_uid" jdbcType="INTEGER" property="sellerUid" />
11 <result column="price" jdbcType="DECIMAL" property="price" /> 11 <result column="price" jdbcType="DECIMAL" property="price" />
12 - <result column="status" jdbcType="TINYINT" property="status" /> 12 + <result column="status" jdbcType="INTEGER" property="status" />
13 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 13 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
14 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 14 <result column="create_time" jdbcType="INTEGER" property="createTime" />
15 </resultMap> 15 </resultMap>
@@ -23,15 +23,15 @@ @@ -23,15 +23,15 @@
23 price, status, update_time, 23 price, status, update_time,
24 create_time) 24 create_time)
25 values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, 25 values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER},
26 - #{storageId,jdbcType=SMALLINT}, #{depotNum,jdbcType=INTEGER}, #{sellerUid,jdbcType=INTEGER},  
27 - #{price,jdbcType=DECIMAL}, #{status,jdbcType=TINYINT}, #{updateTime,jdbcType=INTEGER}, 26 + #{storageId,jdbcType=INTEGER}, #{depotNum,jdbcType=INTEGER}, #{sellerUid,jdbcType=INTEGER},
  27 + #{price,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
28 #{createTime,jdbcType=INTEGER}) 28 #{createTime,jdbcType=INTEGER})
29 </insert> 29 </insert>
30 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.StoragePrice"> 30 <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.StoragePrice">
31 update storage_price 31 update storage_price
32 set product_id = #{productId,jdbcType=INTEGER}, 32 set product_id = #{productId,jdbcType=INTEGER},
33 goods_id = #{goodsId,jdbcType=INTEGER}, 33 goods_id = #{goodsId,jdbcType=INTEGER},
34 - storage_id = #{storageId,jdbcType=SMALLINT}, 34 + storage_id = #{storageId,jdbcType=INTEGER},
35 depot_num = #{depotNum,jdbcType=INTEGER}, 35 depot_num = #{depotNum,jdbcType=INTEGER},
36 seller_uid = #{sellerUid,jdbcType=INTEGER}, 36 seller_uid = #{sellerUid,jdbcType=INTEGER},
37 price = #{price,jdbcType=DECIMAL}, 37 price = #{price,jdbcType=DECIMAL},