Merge branch 'zf_dependency_opt' of http://git.yoho.cn/yoho-search/yoho-search-c…
…onsumer into zf_dependency_opt
Showing
25 changed files
with
96 additions
and
99 deletions
@@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | @@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | ||
6 | import java.util.List; | 6 | import java.util.List; |
7 | 7 | ||
8 | public interface BrandMapper { | 8 | public interface BrandMapper { |
9 | - int deleteByPrimaryKey(Short id); | 9 | + int deleteByPrimaryKey(Integer id); |
10 | 10 | ||
11 | int insert(Brand record); | 11 | int insert(Brand record); |
12 | 12 | ||
13 | int insertSelective(Brand record); | 13 | int insertSelective(Brand record); |
14 | 14 | ||
15 | - Brand selectByPrimaryKey(Short id); | 15 | + Brand selectByPrimaryKey(Integer id); |
16 | 16 | ||
17 | int updateByPrimaryKeySelective(Brand record); | 17 | int updateByPrimaryKeySelective(Brand record); |
18 | 18 |
@@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | @@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | ||
6 | import java.util.List; | 6 | import java.util.List; |
7 | 7 | ||
8 | public interface ProductColorMapper { | 8 | public interface ProductColorMapper { |
9 | - int deleteByPrimaryKey(Short id); | 9 | + int deleteByPrimaryKey(Integer id); |
10 | 10 | ||
11 | int insert(ProductColor record); | 11 | int insert(ProductColor record); |
12 | 12 | ||
13 | int insertSelective(ProductColor record); | 13 | int insertSelective(ProductColor record); |
14 | 14 | ||
15 | - ProductColor selectByPrimaryKey(Short id); | 15 | + ProductColor selectByPrimaryKey(Integer id); |
16 | 16 | ||
17 | int updateByPrimaryKeySelective(ProductColor record); | 17 | int updateByPrimaryKeySelective(ProductColor record); |
18 | 18 |
@@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | @@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | ||
6 | import java.util.List; | 6 | import java.util.List; |
7 | 7 | ||
8 | public interface ProductSortMapper { | 8 | public interface ProductSortMapper { |
9 | - int deleteByPrimaryKey(Short id); | 9 | + int deleteByPrimaryKey(Integer id); |
10 | 10 | ||
11 | int insert(ProductSort record); | 11 | int insert(ProductSort record); |
12 | 12 | ||
13 | int insertSelective(ProductSort record); | 13 | int insertSelective(ProductSort record); |
14 | 14 | ||
15 | - ProductSort selectByPrimaryKey(Short id); | 15 | + ProductSort selectByPrimaryKey(Integer id); |
16 | 16 | ||
17 | int updateByPrimaryKeySelective(ProductSort record); | 17 | int updateByPrimaryKeySelective(ProductSort record); |
18 | 18 |
@@ -7,13 +7,13 @@ import java.util.List; | @@ -7,13 +7,13 @@ import java.util.List; | ||
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | 8 | ||
9 | public interface ProductStandardRelationMapper { | 9 | public interface ProductStandardRelationMapper { |
10 | - int deleteByPrimaryKey(@Param(value="productId")Integer productId, @Param(value="standardId")Short standardId); | 10 | + int deleteByPrimaryKey(@Param(value="productId")Integer productId, @Param(value="standardId")Integer standardId); |
11 | 11 | ||
12 | int insert(ProductStandardRelation record); | 12 | int insert(ProductStandardRelation record); |
13 | 13 | ||
14 | int insertSelective(ProductStandardRelation record); | 14 | int insertSelective(ProductStandardRelation record); |
15 | 15 | ||
16 | - ProductStandardRelation selectByPrimaryKey(@Param(value="productId")Integer productId, @Param(value="standardId")Short standardId); | 16 | + ProductStandardRelation selectByPrimaryKey(@Param(value="productId")Integer productId, @Param(value="standardId")Integer standardId); |
17 | 17 | ||
18 | int updateByPrimaryKeySelective(ProductStandardRelation record); | 18 | int updateByPrimaryKeySelective(ProductStandardRelation record); |
19 | 19 |
@@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | @@ -6,13 +6,13 @@ import org.apache.ibatis.annotations.Param; | ||
6 | import java.util.List; | 6 | import java.util.List; |
7 | 7 | ||
8 | public interface SizeMapper { | 8 | public interface SizeMapper { |
9 | - int deleteByPrimaryKey(Short id); | 9 | + int deleteByPrimaryKey(Integer id); |
10 | 10 | ||
11 | int insert(Size record); | 11 | int insert(Size record); |
12 | 12 | ||
13 | int insertSelective(Size record); | 13 | int insertSelective(Size record); |
14 | 14 | ||
15 | - Size selectByPrimaryKey(Short id); | 15 | + Size selectByPrimaryKey(Integer id); |
16 | 16 | ||
17 | int updateByPrimaryKeySelective(Size record); | 17 | int updateByPrimaryKeySelective(Size record); |
18 | 18 | ||
@@ -20,7 +20,7 @@ public interface SizeMapper { | @@ -20,7 +20,7 @@ public interface SizeMapper { | ||
20 | 20 | ||
21 | List<Size> getPageLists(@Param(value="offset")Integer offset, @Param(value="pageSize")Integer pageSize); | 21 | List<Size> getPageLists(@Param(value="offset")Integer offset, @Param(value="pageSize")Integer pageSize); |
22 | 22 | ||
23 | - List<Size> getByIds(List<Short> ids); | 23 | + List<Size> getByIds(List<Integer> ids); |
24 | 24 | ||
25 | int count(); | 25 | int count(); |
26 | } | 26 | } |
1 | package com.yoho.search.dal; | 1 | package com.yoho.search.dal; |
2 | 2 | ||
3 | -import java.util.List; | ||
4 | - | ||
5 | import com.yoho.search.dal.model.Style; | 3 | import com.yoho.search.dal.model.Style; |
6 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
7 | 5 | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | public interface StyleMapper { | 8 | public interface StyleMapper { |
9 | - int deleteByPrimaryKey(Short id); | 9 | + int deleteByPrimaryKey(Integer id); |
10 | 10 | ||
11 | int insert(Style record); | 11 | int insert(Style record); |
12 | 12 | ||
13 | int insertSelective(Style record); | 13 | int insertSelective(Style record); |
14 | 14 | ||
15 | - Style selectByPrimaryKey(Short id); | 15 | + Style selectByPrimaryKey(Integer id); |
16 | 16 | ||
17 | int updateByPrimaryKeySelective(Style record); | 17 | int updateByPrimaryKeySelective(Style record); |
18 | 18 |
@@ -85,7 +85,7 @@ public class BrandMqListener extends AbstractMqListener implements ChannelAwareM | @@ -85,7 +85,7 @@ public class BrandMqListener extends AbstractMqListener implements ChannelAwareM | ||
85 | return; | 85 | return; |
86 | } | 86 | } |
87 | long begin = System.currentTimeMillis(); | 87 | long begin = System.currentTimeMillis(); |
88 | - brandService.delete(Short.parseShort(id)); | 88 | + brandService.delete(Integer.valueOf(id)); |
89 | indexService.deleteIndexData(indexName, id); | 89 | indexService.deleteIndexData(indexName, id); |
90 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); | 90 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); |
91 | } | 91 | } |
@@ -76,7 +76,7 @@ public class ProductColorMqListener extends AbstractMqListener implements Channe | @@ -76,7 +76,7 @@ public class ProductColorMqListener extends AbstractMqListener implements Channe | ||
76 | return; | 76 | return; |
77 | } | 77 | } |
78 | long begin = System.currentTimeMillis(); | 78 | long begin = System.currentTimeMillis(); |
79 | - productColorService.delete(Short.parseShort(id)); | 79 | + productColorService.delete(Integer.valueOf(id)); |
80 | indexService.deleteIndexData(indexName, id); | 80 | indexService.deleteIndexData(indexName, id); |
81 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); | 81 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); |
82 | } | 82 | } |
@@ -75,7 +75,7 @@ public class ProductSortMqListener extends AbstractMqListener implements Channel | @@ -75,7 +75,7 @@ public class ProductSortMqListener extends AbstractMqListener implements Channel | ||
75 | return; | 75 | return; |
76 | } | 76 | } |
77 | long begin = System.currentTimeMillis(); | 77 | long begin = System.currentTimeMillis(); |
78 | - productSortService.delete(Short.parseShort(id)); | 78 | + productSortService.delete(Integer.valueOf(id)); |
79 | indexService.deleteIndexData(indexName, id); | 79 | indexService.deleteIndexData(indexName, id); |
80 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); | 80 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); |
81 | } | 81 | } |
@@ -78,7 +78,7 @@ public class ProductStandardRelationMqListener extends AbstractMqListener implem | @@ -78,7 +78,7 @@ public class ProductStandardRelationMqListener extends AbstractMqListener implem | ||
78 | return; | 78 | return; |
79 | } | 79 | } |
80 | int productId = psr.getProductId(); | 80 | int productId = psr.getProductId(); |
81 | - short standardId = psr.getStandardId(); | 81 | + Integer standardId = psr.getStandardId(); |
82 | productStandardRelationService.delete(productId, standardId); | 82 | productStandardRelationService.delete(productId, standardId); |
83 | logger.info("[func=deleteData][step=deleteFromBb][key={}][cost={}ms]", key, System.currentTimeMillis() - begin); | 83 | logger.info("[func=deleteData][step=deleteFromBb][key={}][cost={}ms]", key, System.currentTimeMillis() - begin); |
84 | this.updateProductIndex(productId, System.currentTimeMillis(), key); | 84 | this.updateProductIndex(productId, System.currentTimeMillis(), key); |
@@ -76,7 +76,7 @@ public class SizeMqListener extends AbstractMqListener implements ChannelAwareMe | @@ -76,7 +76,7 @@ public class SizeMqListener extends AbstractMqListener implements ChannelAwareMe | ||
76 | return; | 76 | return; |
77 | } | 77 | } |
78 | long begin = System.currentTimeMillis(); | 78 | long begin = System.currentTimeMillis(); |
79 | - sizeService.delete(Short.parseShort(id)); | 79 | + sizeService.delete(Integer.valueOf(id)); |
80 | logger.info("[func=deleteData][step=deleteFromDb][indexName={}] [id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); | 80 | logger.info("[func=deleteData][step=deleteFromDb][indexName={}] [id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); |
81 | indexService.deleteIndexData(indexName, id); | 81 | indexService.deleteIndexData(indexName, id); |
82 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); | 82 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); |
@@ -75,7 +75,7 @@ public class StyleMqListener extends AbstractMqListener implements ChannelAwareM | @@ -75,7 +75,7 @@ public class StyleMqListener extends AbstractMqListener implements ChannelAwareM | ||
75 | return; | 75 | return; |
76 | } | 76 | } |
77 | long begin = System.currentTimeMillis(); | 77 | long begin = System.currentTimeMillis(); |
78 | - styleService.delete(Short.parseShort(id)); | 78 | + styleService.delete(Integer.valueOf(id)); |
79 | indexService.deleteIndexData(indexName, id); | 79 | indexService.deleteIndexData(indexName, id); |
80 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); | 80 | logger.info("[func=deleteData][step=success][indexName={}][id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin)); |
81 | } | 81 | } |
1 | package com.yoho.search.consumer.service.base; | 1 | package com.yoho.search.consumer.service.base; |
2 | 2 | ||
3 | -import java.util.List; | ||
4 | - | 3 | +import com.yoho.search.dal.BrandMapper; |
5 | import com.yoho.search.dal.model.Brand; | 4 | import com.yoho.search.dal.model.Brand; |
6 | import org.springframework.beans.factory.annotation.Autowired; | 5 | import org.springframework.beans.factory.annotation.Autowired; |
7 | import org.springframework.stereotype.Component; | 6 | import org.springframework.stereotype.Component; |
8 | 7 | ||
9 | -import com.yoho.search.dal.BrandMapper; | 8 | +import java.util.List; |
10 | 9 | ||
11 | @Component | 10 | @Component |
12 | public class BrandService { | 11 | public class BrandService { |
@@ -14,7 +13,7 @@ public class BrandService { | @@ -14,7 +13,7 @@ public class BrandService { | ||
14 | @Autowired | 13 | @Autowired |
15 | private BrandMapper brandMapper; | 14 | private BrandMapper brandMapper; |
16 | 15 | ||
17 | - public Brand getById(Short id) { | 16 | + public Brand getById(Integer id) { |
18 | return brandMapper.selectByPrimaryKey(id); | 17 | return brandMapper.selectByPrimaryKey(id); |
19 | } | 18 | } |
20 | 19 | ||
@@ -34,7 +33,7 @@ public class BrandService { | @@ -34,7 +33,7 @@ public class BrandService { | ||
34 | } | 33 | } |
35 | } | 34 | } |
36 | 35 | ||
37 | - public int delete(Short id) { | 36 | + public int delete(Integer id) { |
38 | return brandMapper.deleteByPrimaryKey(id); | 37 | return brandMapper.deleteByPrimaryKey(id); |
39 | } | 38 | } |
40 | 39 |
@@ -14,7 +14,7 @@ public class ProductColorService { | @@ -14,7 +14,7 @@ public class ProductColorService { | ||
14 | @Autowired | 14 | @Autowired |
15 | private ProductColorMapper productColorMapper; | 15 | private ProductColorMapper productColorMapper; |
16 | 16 | ||
17 | - public ProductColor getById(Short id) { | 17 | + public ProductColor getById(Integer id) { |
18 | return productColorMapper.selectByPrimaryKey(id); | 18 | return productColorMapper.selectByPrimaryKey(id); |
19 | } | 19 | } |
20 | 20 | ||
@@ -34,7 +34,7 @@ public class ProductColorService { | @@ -34,7 +34,7 @@ public class ProductColorService { | ||
34 | } | 34 | } |
35 | } | 35 | } |
36 | 36 | ||
37 | - public int delete(Short id) { | 37 | + public int delete(Integer id) { |
38 | return productColorMapper.deleteByPrimaryKey(id); | 38 | return productColorMapper.deleteByPrimaryKey(id); |
39 | } | 39 | } |
40 | 40 |
1 | package com.yoho.search.consumer.service.base; | 1 | package com.yoho.search.consumer.service.base; |
2 | 2 | ||
3 | -import java.util.List; | ||
4 | - | ||
5 | import com.yoho.search.dal.ProductSortMapper; | 3 | import com.yoho.search.dal.ProductSortMapper; |
6 | import com.yoho.search.dal.model.ProductSort; | 4 | import com.yoho.search.dal.model.ProductSort; |
7 | import org.springframework.beans.factory.annotation.Autowired; | 5 | import org.springframework.beans.factory.annotation.Autowired; |
8 | import org.springframework.stereotype.Component; | 6 | import org.springframework.stereotype.Component; |
9 | 7 | ||
8 | +import java.util.List; | ||
9 | + | ||
10 | @Component | 10 | @Component |
11 | //@Transactional | 11 | //@Transactional |
12 | public class ProductSortService { | 12 | public class ProductSortService { |
@@ -14,7 +14,7 @@ public class ProductSortService { | @@ -14,7 +14,7 @@ public class ProductSortService { | ||
14 | @Autowired | 14 | @Autowired |
15 | private ProductSortMapper productSortMapper; | 15 | private ProductSortMapper productSortMapper; |
16 | 16 | ||
17 | - public ProductSort getById(Short id) { | 17 | + public ProductSort getById(Integer id) { |
18 | return productSortMapper.selectByPrimaryKey(id); | 18 | return productSortMapper.selectByPrimaryKey(id); |
19 | } | 19 | } |
20 | 20 | ||
@@ -34,7 +34,7 @@ public class ProductSortService { | @@ -34,7 +34,7 @@ public class ProductSortService { | ||
34 | } | 34 | } |
35 | } | 35 | } |
36 | 36 | ||
37 | - public int delete(Short id) { | 37 | + public int delete(Integer id) { |
38 | return productSortMapper.deleteByPrimaryKey(id); | 38 | return productSortMapper.deleteByPrimaryKey(id); |
39 | } | 39 | } |
40 | 40 |
@@ -15,7 +15,7 @@ public class ProductStandardRelationService { | @@ -15,7 +15,7 @@ public class ProductStandardRelationService { | ||
15 | @Autowired | 15 | @Autowired |
16 | private ProductStandardRelationMapper productStandardRelationMapper; | 16 | private ProductStandardRelationMapper productStandardRelationMapper; |
17 | 17 | ||
18 | - public ProductStandardRelation getById(Integer productId, Short standardId) { | 18 | + public ProductStandardRelation getById(Integer productId, Integer standardId) { |
19 | return productStandardRelationMapper.selectByPrimaryKey(productId, standardId); | 19 | return productStandardRelationMapper.selectByPrimaryKey(productId, standardId); |
20 | } | 20 | } |
21 | 21 | ||
@@ -38,7 +38,7 @@ public class ProductStandardRelationService { | @@ -38,7 +38,7 @@ public class ProductStandardRelationService { | ||
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 | ||
41 | - public int delete(Integer productId, Short standardId) { | 41 | + public int delete(Integer productId, Integer standardId) { |
42 | return productStandardRelationMapper.deleteByPrimaryKey(productId, standardId); | 42 | return productStandardRelationMapper.deleteByPrimaryKey(productId, standardId); |
43 | } | 43 | } |
44 | 44 |
1 | package com.yoho.search.consumer.service.base; | 1 | package com.yoho.search.consumer.service.base; |
2 | 2 | ||
3 | -import java.util.List; | ||
4 | - | ||
5 | import com.yoho.search.dal.SizeMapper; | 3 | import com.yoho.search.dal.SizeMapper; |
4 | +import com.yoho.search.dal.model.Size; | ||
6 | import org.springframework.beans.factory.annotation.Autowired; | 5 | import org.springframework.beans.factory.annotation.Autowired; |
7 | import org.springframework.stereotype.Component; | 6 | import org.springframework.stereotype.Component; |
8 | 7 | ||
9 | -import com.yoho.search.dal.model.Size; | 8 | +import java.util.List; |
10 | 9 | ||
11 | @Component | 10 | @Component |
12 | //@Transactional | 11 | //@Transactional |
@@ -15,7 +14,7 @@ public class SizeService { | @@ -15,7 +14,7 @@ public class SizeService { | ||
15 | @Autowired | 14 | @Autowired |
16 | private SizeMapper sizeMapper; | 15 | private SizeMapper sizeMapper; |
17 | 16 | ||
18 | - public Size getById(Short id) { | 17 | + public Size getById(Integer id) { |
19 | return sizeMapper.selectByPrimaryKey(id); | 18 | return sizeMapper.selectByPrimaryKey(id); |
20 | } | 19 | } |
21 | 20 | ||
@@ -35,7 +34,7 @@ public class SizeService { | @@ -35,7 +34,7 @@ public class SizeService { | ||
35 | } | 34 | } |
36 | } | 35 | } |
37 | 36 | ||
38 | - public int delete(Short id) { | 37 | + public int delete(Integer id) { |
39 | return sizeMapper.deleteByPrimaryKey(id); | 38 | return sizeMapper.deleteByPrimaryKey(id); |
40 | } | 39 | } |
41 | 40 |
1 | package com.yoho.search.consumer.service.base; | 1 | package com.yoho.search.consumer.service.base; |
2 | 2 | ||
3 | -import java.util.List; | ||
4 | - | 3 | +import com.yoho.search.dal.StyleMapper; |
5 | import com.yoho.search.dal.model.Style; | 4 | import com.yoho.search.dal.model.Style; |
6 | import org.springframework.beans.factory.annotation.Autowired; | 5 | import org.springframework.beans.factory.annotation.Autowired; |
7 | import org.springframework.stereotype.Component; | 6 | import org.springframework.stereotype.Component; |
8 | 7 | ||
9 | -import com.yoho.search.dal.StyleMapper; | 8 | +import java.util.List; |
10 | 9 | ||
11 | @Component | 10 | @Component |
12 | //@Transactional | 11 | //@Transactional |
@@ -15,7 +14,7 @@ public class StyleService { | @@ -15,7 +14,7 @@ public class StyleService { | ||
15 | @Autowired | 14 | @Autowired |
16 | private StyleMapper styleMapper; | 15 | private StyleMapper styleMapper; |
17 | 16 | ||
18 | - public Style getById(Short id) { | 17 | + public Style getById(Integer id) { |
19 | return styleMapper.selectByPrimaryKey(id); | 18 | return styleMapper.selectByPrimaryKey(id); |
20 | } | 19 | } |
21 | 20 | ||
@@ -35,7 +34,7 @@ public class StyleService { | @@ -35,7 +34,7 @@ public class StyleService { | ||
35 | } | 34 | } |
36 | } | 35 | } |
37 | 36 | ||
38 | - public int delete(Short id) { | 37 | + public int delete(Integer id) { |
39 | return styleMapper.deleteByPrimaryKey(id); | 38 | return styleMapper.deleteByPrimaryKey(id); |
40 | } | 39 | } |
41 | 40 |
@@ -18,10 +18,10 @@ public class ProductIBO implements Serializable { | @@ -18,10 +18,10 @@ public class ProductIBO implements Serializable { | ||
18 | private String productName; | 18 | private String productName; |
19 | private String cnAlphabet; | 19 | private String cnAlphabet; |
20 | private String salesPhrase; | 20 | private String salesPhrase; |
21 | - private Short brandId; | ||
22 | - private Short maxSortId; | ||
23 | - private Short middleSortId; | ||
24 | - private Short smallSortId; | 21 | + private Integer brandId; |
22 | + private Integer maxSortId; | ||
23 | + private Integer middleSortId; | ||
24 | + private Integer smallSortId; | ||
25 | private Integer seriesId; | 25 | private Integer seriesId; |
26 | private String gender; | 26 | private String gender; |
27 | private String genderS; | 27 | private String genderS; |
@@ -39,8 +39,8 @@ public class ProductIBO implements Serializable { | @@ -39,8 +39,8 @@ public class ProductIBO implements Serializable { | ||
39 | private String isAuditing; | 39 | private String isAuditing; |
40 | private Integer isauditing; | 40 | private Integer isauditing; |
41 | private Integer isrecommend; | 41 | private Integer isrecommend; |
42 | - private Short ispromotion; | ||
43 | - private Byte attribute; | 42 | + private Integer ispromotion; |
43 | + private Integer attribute; | ||
44 | private String seasons; | 44 | private String seasons; |
45 | private Integer seasonsS; | 45 | private Integer seasonsS; |
46 | private Integer firstShelveTime; | 46 | private Integer firstShelveTime; |
@@ -49,7 +49,7 @@ public class ProductIBO implements Serializable { | @@ -49,7 +49,7 @@ public class ProductIBO implements Serializable { | ||
49 | private Integer editTime; | 49 | private Integer editTime; |
50 | private String isDown; | 50 | private String isDown; |
51 | private Integer isdown; | 51 | private Integer isdown; |
52 | - private Byte status; | 52 | + private Integer status; |
53 | private Integer isOutlets; | 53 | private Integer isOutlets; |
54 | private Integer folderId; | 54 | private Integer folderId; |
55 | private String sellChannels; | 55 | private String sellChannels; |
@@ -150,11 +150,11 @@ public class ProductIBO implements Serializable { | @@ -150,11 +150,11 @@ public class ProductIBO implements Serializable { | ||
150 | this.salesPhrase = salesPhrase == null ? null : salesPhrase.trim(); | 150 | this.salesPhrase = salesPhrase == null ? null : salesPhrase.trim(); |
151 | } | 151 | } |
152 | 152 | ||
153 | - public Short getMaxSortId() { | 153 | + public Integer getMaxSortId() { |
154 | return maxSortId; | 154 | return maxSortId; |
155 | } | 155 | } |
156 | 156 | ||
157 | - public void setMaxSortId(Short maxSortId) { | 157 | + public void setMaxSortId(Integer maxSortId) { |
158 | this.maxSortId = maxSortId; | 158 | this.maxSortId = maxSortId; |
159 | } | 159 | } |
160 | 160 | ||
@@ -166,11 +166,11 @@ public class ProductIBO implements Serializable { | @@ -166,11 +166,11 @@ public class ProductIBO implements Serializable { | ||
166 | this.maxSortName = maxSortName == null ? null : maxSortName.trim(); | 166 | this.maxSortName = maxSortName == null ? null : maxSortName.trim(); |
167 | } | 167 | } |
168 | 168 | ||
169 | - public Short getMiddleSortId() { | 169 | + public Integer getMiddleSortId() { |
170 | return middleSortId; | 170 | return middleSortId; |
171 | } | 171 | } |
172 | 172 | ||
173 | - public void setMiddleSortId(Short middleSortId) { | 173 | + public void setMiddleSortId(Integer middleSortId) { |
174 | this.middleSortId = middleSortId; | 174 | this.middleSortId = middleSortId; |
175 | } | 175 | } |
176 | 176 | ||
@@ -182,11 +182,11 @@ public class ProductIBO implements Serializable { | @@ -182,11 +182,11 @@ public class ProductIBO implements Serializable { | ||
182 | this.middleSortName = middleSortName == null ? null : middleSortName.trim(); | 182 | this.middleSortName = middleSortName == null ? null : middleSortName.trim(); |
183 | } | 183 | } |
184 | 184 | ||
185 | - public Short getSmallSortId() { | 185 | + public Integer getSmallSortId() { |
186 | return smallSortId; | 186 | return smallSortId; |
187 | } | 187 | } |
188 | 188 | ||
189 | - public void setSmallSortId(Short smallSortId) { | 189 | + public void setSmallSortId(Integer smallSortId) { |
190 | this.smallSortId = smallSortId; | 190 | this.smallSortId = smallSortId; |
191 | } | 191 | } |
192 | 192 | ||
@@ -214,11 +214,11 @@ public class ProductIBO implements Serializable { | @@ -214,11 +214,11 @@ public class ProductIBO implements Serializable { | ||
214 | this.genderS = genderS == null ? null : genderS.trim(); | 214 | this.genderS = genderS == null ? null : genderS.trim(); |
215 | } | 215 | } |
216 | 216 | ||
217 | - public Short getBrandId() { | 217 | + public Integer getBrandId() { |
218 | return brandId; | 218 | return brandId; |
219 | } | 219 | } |
220 | 220 | ||
221 | - public void setBrandId(Short brandId) { | 221 | + public void setBrandId(Integer brandId) { |
222 | this.brandId = brandId; | 222 | this.brandId = brandId; |
223 | } | 223 | } |
224 | 224 | ||
@@ -230,11 +230,11 @@ public class ProductIBO implements Serializable { | @@ -230,11 +230,11 @@ public class ProductIBO implements Serializable { | ||
230 | this.isSpecial = isSpecial == null ? null : isSpecial.trim(); | 230 | this.isSpecial = isSpecial == null ? null : isSpecial.trim(); |
231 | } | 231 | } |
232 | 232 | ||
233 | - public Byte getStatus() { | 233 | + public Integer getStatus() { |
234 | return status; | 234 | return status; |
235 | } | 235 | } |
236 | 236 | ||
237 | - public void setStatus(Byte status) { | 237 | + public void setStatus(Integer status) { |
238 | this.status = status; | 238 | this.status = status; |
239 | } | 239 | } |
240 | 240 | ||
@@ -278,11 +278,11 @@ public class ProductIBO implements Serializable { | @@ -278,11 +278,11 @@ public class ProductIBO implements Serializable { | ||
278 | this.ishot = ishot; | 278 | this.ishot = ishot; |
279 | } | 279 | } |
280 | 280 | ||
281 | - public Short getIspromotion() { | 281 | + public Integer getIspromotion() { |
282 | return ispromotion; | 282 | return ispromotion; |
283 | } | 283 | } |
284 | 284 | ||
285 | - public void setIspromotion(Short ispromotion) { | 285 | + public void setIspromotion(Integer ispromotion) { |
286 | this.ispromotion = ispromotion; | 286 | this.ispromotion = ispromotion; |
287 | } | 287 | } |
288 | 288 | ||
@@ -342,11 +342,11 @@ public class ProductIBO implements Serializable { | @@ -342,11 +342,11 @@ public class ProductIBO implements Serializable { | ||
342 | this.isauditing = isauditing; | 342 | this.isauditing = isauditing; |
343 | } | 343 | } |
344 | 344 | ||
345 | - public Byte getAttribute() { | 345 | + public Integer getAttribute() { |
346 | return attribute; | 346 | return attribute; |
347 | } | 347 | } |
348 | 348 | ||
349 | - public void setAttribute(Byte attribute) { | 349 | + public void setAttribute(Integer attribute) { |
350 | this.attribute = attribute; | 350 | this.attribute = attribute; |
351 | } | 351 | } |
352 | 352 |
@@ -16,7 +16,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable { | @@ -16,7 +16,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable { | ||
16 | // from product_price | 16 | // from product_price |
17 | private BigDecimal specialPrice; | 17 | private BigDecimal specialPrice; |
18 | private BigDecimal marketPrice; | 18 | private BigDecimal marketPrice; |
19 | - private Byte vipDiscountType; | 19 | + private Integer vipDiscountType; |
20 | private BigDecimal vipPrice; | 20 | private BigDecimal vipPrice; |
21 | private BigDecimal vip1Price; | 21 | private BigDecimal vip1Price; |
22 | private BigDecimal vip2Price; | 22 | private BigDecimal vip2Price; |
@@ -103,7 +103,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable { | @@ -103,7 +103,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable { | ||
103 | return marketPrice; | 103 | return marketPrice; |
104 | } | 104 | } |
105 | 105 | ||
106 | - public Byte getVipDiscountType() { | 106 | + public Integer getVipDiscountType() { |
107 | return vipDiscountType; | 107 | return vipDiscountType; |
108 | } | 108 | } |
109 | 109 | ||
@@ -260,7 +260,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable { | @@ -260,7 +260,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable { | ||
260 | this.marketPrice = marketPrice; | 260 | this.marketPrice = marketPrice; |
261 | } | 261 | } |
262 | 262 | ||
263 | - public void setVipDiscountType(Byte vipDiscountType) { | 263 | + public void setVipDiscountType(Integer vipDiscountType) { |
264 | this.vipDiscountType = vipDiscountType; | 264 | this.vipDiscountType = vipDiscountType; |
265 | } | 265 | } |
266 | 266 |
@@ -13,17 +13,17 @@ public class ProductPoolBO { | @@ -13,17 +13,17 @@ public class ProductPoolBO { | ||
13 | 13 | ||
14 | private String sales; | 14 | private String sales; |
15 | 15 | ||
16 | - private Short brandId; | 16 | + private Integer brandId; |
17 | 17 | ||
18 | - private Byte status; | 18 | + private Integer status; |
19 | 19 | ||
20 | - private Byte attribute; | 20 | + private Integer attribute; |
21 | 21 | ||
22 | - private Short smallSortId; | 22 | + private Integer smallSortId; |
23 | 23 | ||
24 | - private Short middleSortId; | 24 | + private Integer middleSortId; |
25 | 25 | ||
26 | - private Short maxSortId; | 26 | + private Integer maxSortId; |
27 | 27 | ||
28 | private String gender; | 28 | private String gender; |
29 | 29 | ||
@@ -35,7 +35,7 @@ public class ProductPoolBO { | @@ -35,7 +35,7 @@ public class ProductPoolBO { | ||
35 | 35 | ||
36 | private BigDecimal salesPrice; | 36 | private BigDecimal salesPrice; |
37 | 37 | ||
38 | - private Byte vipDiscountType; | 38 | + private Integer vipDiscountType; |
39 | 39 | ||
40 | private String isDiscount; | 40 | private String isDiscount; |
41 | 41 | ||
@@ -90,51 +90,51 @@ public class ProductPoolBO { | @@ -90,51 +90,51 @@ public class ProductPoolBO { | ||
90 | this.sales = sales == null ? null : sales.trim(); | 90 | this.sales = sales == null ? null : sales.trim(); |
91 | } | 91 | } |
92 | 92 | ||
93 | - public Short getBrandId() { | 93 | + public Integer getBrandId() { |
94 | return brandId; | 94 | return brandId; |
95 | } | 95 | } |
96 | 96 | ||
97 | - public void setBrandId(Short brandId) { | 97 | + public void setBrandId(Integer brandId) { |
98 | this.brandId = brandId; | 98 | this.brandId = brandId; |
99 | } | 99 | } |
100 | 100 | ||
101 | - public Byte getStatus() { | 101 | + public Integer getStatus() { |
102 | return status; | 102 | return status; |
103 | } | 103 | } |
104 | 104 | ||
105 | - public void setStatus(Byte status) { | 105 | + public void setStatus(Integer status) { |
106 | this.status = status; | 106 | this.status = status; |
107 | } | 107 | } |
108 | 108 | ||
109 | - public Byte getAttribute() { | 109 | + public Integer getAttribute() { |
110 | return attribute; | 110 | return attribute; |
111 | } | 111 | } |
112 | 112 | ||
113 | - public void setAttribute(Byte attribute) { | 113 | + public void setAttribute(Integer attribute) { |
114 | this.attribute = attribute; | 114 | this.attribute = attribute; |
115 | } | 115 | } |
116 | 116 | ||
117 | - public Short getSmallSortId() { | 117 | + public Integer getSmallSortId() { |
118 | return smallSortId; | 118 | return smallSortId; |
119 | } | 119 | } |
120 | 120 | ||
121 | - public void setSmallSortId(Short smallSortId) { | 121 | + public void setSmallSortId(Integer smallSortId) { |
122 | this.smallSortId = smallSortId; | 122 | this.smallSortId = smallSortId; |
123 | } | 123 | } |
124 | 124 | ||
125 | - public Short getMiddleSortId() { | 125 | + public Integer getMiddleSortId() { |
126 | return middleSortId; | 126 | return middleSortId; |
127 | } | 127 | } |
128 | 128 | ||
129 | - public void setMiddleSortId(Short middleSortId) { | 129 | + public void setMiddleSortId(Integer middleSortId) { |
130 | this.middleSortId = middleSortId; | 130 | this.middleSortId = middleSortId; |
131 | } | 131 | } |
132 | 132 | ||
133 | - public Short getMaxSortId() { | 133 | + public Integer getMaxSortId() { |
134 | return maxSortId; | 134 | return maxSortId; |
135 | } | 135 | } |
136 | 136 | ||
137 | - public void setMaxSortId(Short maxSortId) { | 137 | + public void setMaxSortId(Integer maxSortId) { |
138 | this.maxSortId = maxSortId; | 138 | this.maxSortId = maxSortId; |
139 | } | 139 | } |
140 | 140 | ||
@@ -178,11 +178,11 @@ public class ProductPoolBO { | @@ -178,11 +178,11 @@ public class ProductPoolBO { | ||
178 | this.salesPrice = salesPrice; | 178 | this.salesPrice = salesPrice; |
179 | } | 179 | } |
180 | 180 | ||
181 | - public Byte getVipDiscountType() { | 181 | + public Integer getVipDiscountType() { |
182 | return vipDiscountType; | 182 | return vipDiscountType; |
183 | } | 183 | } |
184 | 184 | ||
185 | - public void setVipDiscountType(Byte vipDiscountType) { | 185 | + public void setVipDiscountType(Integer vipDiscountType) { |
186 | this.vipDiscountType = vipDiscountType; | 186 | this.vipDiscountType = vipDiscountType; |
187 | } | 187 | } |
188 | 188 |
@@ -39,7 +39,7 @@ public class ProductGoodsLogicService { | @@ -39,7 +39,7 @@ public class ProductGoodsLogicService { | ||
39 | // 解析product_good视图 | 39 | // 解析product_good视图 |
40 | // 获取ProductColor数据 41数据量 | 40 | // 获取ProductColor数据 41数据量 |
41 | List<ProductColor> productColors = productColorMapper.getAll(); | 41 | List<ProductColor> productColors = productColorMapper.getAll(); |
42 | - Map<Short, String> productColorsMap = new HashMap<>(); | 42 | + Map<Integer, String> productColorsMap = new HashMap<>(); |
43 | for (ProductColor p : productColors) { | 43 | for (ProductColor p : productColors) { |
44 | productColorsMap.put(p.getId(), p.getColorCode() == null ? "" : p.getColorCode()); | 44 | productColorsMap.put(p.getId(), p.getColorCode() == null ? "" : p.getColorCode()); |
45 | } | 45 | } |
@@ -30,7 +30,7 @@ public class ProductILogicService { | @@ -30,7 +30,7 @@ public class ProductILogicService { | ||
30 | * @return <br> | 30 | * @return <br> |
31 | * @author wangnan<br> | 31 | * @author wangnan<br> |
32 | */ | 32 | */ |
33 | - public List<Product> filterProductList(List<Product> products, Map<Short, ProductSort> ProductSortMap, Map<Short, Brand> brandMap) { | 33 | + public List<Product> filterProductList(List<Product> products, Map<Integer, ProductSort> ProductSortMap, Map<Integer, Brand> brandMap) { |
34 | List<Product> productsNew = new ArrayList<>(); | 34 | List<Product> productsNew = new ArrayList<>(); |
35 | for (Product p : products) { | 35 | for (Product p : products) { |
36 | if (ProductSortMap.containsKey(p.getMaxSortId())) { | 36 | if (ProductSortMap.containsKey(p.getMaxSortId())) { |
@@ -56,7 +56,7 @@ public class ProductILogicService { | @@ -56,7 +56,7 @@ public class ProductILogicService { | ||
56 | * @return <br> | 56 | * @return <br> |
57 | * @author wangnan<br> | 57 | * @author wangnan<br> |
58 | */ | 58 | */ |
59 | - public List<ProductIBO> buildProductI(List<Product> products, Map<Short, ProductSort> ProductSortMap, Map<Short, Brand> brandMap) { | 59 | + public List<ProductIBO> buildProductI(List<Product> products, Map<Integer, ProductSort> ProductSortMap, Map<Integer, Brand> brandMap) { |
60 | 60 | ||
61 | logger.info("拼装ProductI数据开始"); | 61 | logger.info("拼装ProductI数据开始"); |
62 | List<ProductIBO> pdis = new ArrayList<>(); | 62 | List<ProductIBO> pdis = new ArrayList<>(); |
@@ -124,13 +124,13 @@ public class ProductIndexLogicService { | @@ -124,13 +124,13 @@ public class ProductIndexLogicService { | ||
124 | if (productSorts == null || productSorts.size() == 0) { | 124 | if (productSorts == null || productSorts.size() == 0) { |
125 | logger.error("获取ProductSort列表失败"); | 125 | logger.error("获取ProductSort列表失败"); |
126 | } | 126 | } |
127 | - Map<Short, ProductSort> ProductSortMap = productSorts.stream().parallel().collect(Collectors.toMap(ProductSort::getId, (p) -> p)); | 127 | + Map<Integer, ProductSort> ProductSortMap = productSorts.stream().parallel().collect(Collectors.toMap(ProductSort::getId, (p) -> p)); |
128 | // 数据量1500,可以全量 | 128 | // 数据量1500,可以全量 |
129 | List<Brand> brands = this.brandMapper.getAll(); | 129 | List<Brand> brands = this.brandMapper.getAll(); |
130 | if (brands == null || brands.size() == 0) { | 130 | if (brands == null || brands.size() == 0) { |
131 | logger.error("获取Brand列表失败"); | 131 | logger.error("获取Brand列表失败"); |
132 | } | 132 | } |
133 | - Map<Short, Brand> brandMap = brands.stream().parallel().collect(Collectors.toMap(Brand::getId, (p) -> p)); | 133 | + Map<Integer, Brand> brandMap = brands.stream().parallel().collect(Collectors.toMap(Brand::getId, (p) -> p)); |
134 | 134 | ||
135 | 135 | ||
136 | // 过滤Product数据 | 136 | // 过滤Product数据 |
@@ -62,26 +62,26 @@ public class ProductSizesLogicService { | @@ -62,26 +62,26 @@ public class ProductSizesLogicService { | ||
62 | 62 | ||
63 | List<ProductSizes> productSizess = storageMapper.getProductSizes(ids_); | 63 | List<ProductSizes> productSizess = storageMapper.getProductSizes(ids_); |
64 | if (CollectionUtils.isNotEmpty(productSizess)) { | 64 | if (CollectionUtils.isNotEmpty(productSizess)) { |
65 | - List<Short> sizeIds = new ArrayList<>(); | 65 | + List<Integer> sizeIds = new ArrayList<>(); |
66 | for (ProductSizes ps : productSizess) { | 66 | for (ProductSizes ps : productSizess) { |
67 | String sizeArray[] = ps.getSizeIds().split(","); | 67 | String sizeArray[] = ps.getSizeIds().split(","); |
68 | if (sizeArray != null) { | 68 | if (sizeArray != null) { |
69 | for (int i = 0; i < sizeArray.length; i++) { | 69 | for (int i = 0; i < sizeArray.length; i++) { |
70 | - sizeIds.add(Short.valueOf(sizeArray[i])); | 70 | + sizeIds.add(Integer.valueOf(sizeArray[i])); |
71 | } | 71 | } |
72 | } | 72 | } |
73 | } | 73 | } |
74 | List<Size> sizes = sizeMapper.getByIds(sizeIds); | 74 | List<Size> sizes = sizeMapper.getByIds(sizeIds); |
75 | if (CollectionUtils.isNotEmpty(sizes)) { | 75 | if (CollectionUtils.isNotEmpty(sizes)) { |
76 | - Map<Short, String> sizeMap = sizes.stream().parallel().collect(Collectors.toMap(Size::getId, Size::getSizeName)); | 76 | + Map<Integer, String> sizeMap = sizes.stream().parallel().collect(Collectors.toMap(Size::getId, Size::getSizeName)); |
77 | for (ProductSizes ps : productSizess) { | 77 | for (ProductSizes ps : productSizess) { |
78 | String sizeArray[] = ps.getSizeIds().split(","); | 78 | String sizeArray[] = ps.getSizeIds().split(","); |
79 | if (sizeArray != null) { | 79 | if (sizeArray != null) { |
80 | for (int i = 0; i < sizeArray.length; i++) { | 80 | for (int i = 0; i < sizeArray.length; i++) { |
81 | if (i == 0) { | 81 | if (i == 0) { |
82 | - ps.setSizeNames(sizeMap.get(Short.valueOf(sizeArray[i])) + ","); | 82 | + ps.setSizeNames(sizeMap.get(Integer.valueOf(sizeArray[i])) + ","); |
83 | } else { | 83 | } else { |
84 | - ps.setSizeNames(ps.getSizeNames() + sizeMap.get(Short.valueOf(sizeArray[i])) + ","); | 84 | + ps.setSizeNames(ps.getSizeNames() + sizeMap.get(Integer.valueOf(sizeArray[i])) + ","); |
85 | } | 85 | } |
86 | 86 | ||
87 | } | 87 | } |
-
Please register or login to post a comment