Showing
1 changed file
with
15 additions
and
4 deletions
@@ -40,6 +40,17 @@ public class TblLogicService { | @@ -40,6 +40,17 @@ public class TblLogicService { | ||
40 | @Autowired | 40 | @Autowired |
41 | private TblImgUrlLogicService tblImgUrlLogicService; | 41 | private TblImgUrlLogicService tblImgUrlLogicService; |
42 | 42 | ||
43 | + public final static Map<Integer, String> countryFieldMap = new HashMap<Integer, String>() {{ | ||
44 | + put(374, "美国"); | ||
45 | + put(44, "英国"); | ||
46 | + put(46, "瑞典"); | ||
47 | + put(81, "日本"); | ||
48 | + put(82, "韩国"); | ||
49 | + put(852, "香港"); | ||
50 | + put(49, "德国"); | ||
51 | + put(86, "国内现货"); | ||
52 | + }}; | ||
53 | + | ||
43 | /** | 54 | /** |
44 | * 全量构建 | 55 | * 全量构建 |
45 | * | 56 | * |
@@ -227,7 +238,6 @@ public class TblLogicService { | @@ -227,7 +238,6 @@ public class TblLogicService { | ||
227 | } | 238 | } |
228 | return sortMap; | 239 | return sortMap; |
229 | } | 240 | } |
230 | - | ||
231 | /** | 241 | /** |
232 | * 处理brand | 242 | * 处理brand |
233 | * | 243 | * |
@@ -243,9 +253,7 @@ public class TblLogicService { | @@ -243,9 +253,7 @@ public class TblLogicService { | ||
243 | productIndexBO.setBrandName(tblBrand.getBrandNameEn()); | 253 | productIndexBO.setBrandName(tblBrand.getBrandNameEn()); |
244 | productIndexBO.setBrandNameEn(tblBrand.getBrandNameEn()); | 254 | productIndexBO.setBrandNameEn(tblBrand.getBrandNameEn()); |
245 | productIndexBO.setBrandNameCn(tblBrand.getBrandNameCn()); | 255 | productIndexBO.setBrandNameCn(tblBrand.getBrandNameCn()); |
246 | - if (tblBrand.getBrandId() != null) { | ||
247 | - productIndexBO.setShopId(tblBrand.getBrandId() * (-1)); | ||
248 | - } | 256 | + productIndexBO.setShopId(tblBrand.getBrandId()*(-1)); |
249 | } else { | 257 | } else { |
250 | // 增量当品牌删除的时候 | 258 | // 增量当品牌删除的时候 |
251 | productIndexBO.setBrandName(null); | 259 | productIndexBO.setBrandName(null); |
@@ -473,6 +481,9 @@ public class TblLogicService { | @@ -473,6 +481,9 @@ public class TblLogicService { | ||
473 | productIndexBO.setIsDiscount("N"); | 481 | productIndexBO.setIsDiscount("N"); |
474 | productIndexBO.setBreakingRate(0d); | 482 | productIndexBO.setBreakingRate(0d); |
475 | productIndexBO.setBasePinRatio(0); | 483 | productIndexBO.setBasePinRatio(0); |
484 | + //处理国家id和名称 | ||
485 | + productIndexBO.setTblCountryId(tblProduct.getCountryId()); | ||
486 | + productIndexBO.setTblCountryName(countryFieldMap.get(tblProduct.getCountryId())); | ||
476 | return productIndexBO; | 487 | return productIndexBO; |
477 | 488 | ||
478 | } | 489 | } |
-
Please register or login to post a comment