|
|
@ -146,6 +146,10 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
cereShopProduct.setIfCredit(param.getIfCredit()); |
|
|
|
cereShopProduct.setCreditLimit(param.getCreditLimit()); |
|
|
|
cereShopProduct.setBrandId(param.getBrandId()); |
|
|
|
cereShopProduct.setIfNew(param.getIfNew()); |
|
|
|
cereShopProduct.setIfFirst(param.getIfFirst()); |
|
|
|
cereShopProduct.setIfLowPrice(param.getIfLowPrice()); |
|
|
|
|
|
|
|
|
|
|
|
if(IntegerEnum.PRODUCT_EXAMINE_YES.getCode().equals(Integer.parseInt(param.getShelveState()))){ |
|
|
|
//如果是已上架,修改状态为审核中 |
|
|
@ -159,7 +163,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
cereShopProduct.setShopId(param.getShopId()); |
|
|
|
|
|
|
|
cereShopProduct.setLangInfoMap(param.getLangInfoMap()); |
|
|
|
cereShopProduct.initData(); |
|
|
|
cereShopProduct.initData(ContextUtil.getLanguage()); |
|
|
|
|
|
|
|
cereShopProductDAO.insert(cereShopProduct); |
|
|
|
|
|
|
@ -275,7 +279,9 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
cereShopProduct.setIfCredit(param.getIfCredit()); |
|
|
|
cereShopProduct.setCreditLimit(param.getCreditLimit()); |
|
|
|
cereShopProduct.setBrandId(param.getBrandId()); |
|
|
|
|
|
|
|
cereShopProduct.setIfNew(param.getIfNew()); |
|
|
|
cereShopProduct.setIfFirst(param.getIfFirst()); |
|
|
|
cereShopProduct.setIfLowPrice(param.getIfLowPrice()); |
|
|
|
|
|
|
|
boolean isNeedReExam = false; |
|
|
|
if(!StringUtils.equals(cereShopProduct.getProductName(), dbCereShopProduct.getProductName())){ |
|
|
@ -321,7 +327,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
cereShopProduct.setShopId(param.getShopId()); |
|
|
|
|
|
|
|
cereShopProduct.setLangInfoMap(param.getLangInfoMap()); |
|
|
|
cereShopProduct.initData(); |
|
|
|
cereShopProduct.initData(ContextUtil.getLanguage()); |
|
|
|
|
|
|
|
cereShopProductDAO.updateByPrimaryKeySelective(cereShopProduct); |
|
|
|
|
|
|
@ -527,7 +533,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
List<CereShopProductLangInfo> cereProductClassifyLangInfoList = shopProductLangInfoService.list(Wrappers.<CereShopProductLangInfo>lambdaQuery().in(CereShopProductLangInfo::getProductId,classifyIdList)); |
|
|
|
if(ObjectUtils.isNotNull(shopProduct)){ |
|
|
|
shopProduct.initMap(cereProductClassifyLangInfoList); |
|
|
|
shopProduct.initData(); |
|
|
|
shopProduct.initData(ContextUtil.getLanguage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -619,7 +625,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|
for (ShopProduct classify : list) { |
|
|
|
classify.initMap(cereProductClassifyLangInfoList); |
|
|
|
classify.initData(); |
|
|
|
classify.initData(ContextUtil.getLanguage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -691,7 +697,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|
for (ShopProduct classify : list) { |
|
|
|
classify.initMap(cereProductClassifyLangInfoList); |
|
|
|
classify.initData(); |
|
|
|
classify.initData(ContextUtil.getLanguage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -780,7 +786,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|
for (CanvasProduct classify : list) { |
|
|
|
classify.initMap(cereProductClassifyLangInfoList); |
|
|
|
classify.initData(); |
|
|
|
classify.initData(ContextUtil.getLanguage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -824,7 +830,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|
for (CereShopProduct classify : list) { |
|
|
|
classify.initMap(cereProductClassifyLangInfoList); |
|
|
|
classify.initData(); |
|
|
|
classify.initData(ContextUtil.getLanguage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -843,7 +849,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|
for (CereShopProduct classify : list) { |
|
|
|
classify.initMap(cereProductClassifyLangInfoList); |
|
|
|
classify.initData(); |
|
|
|
classify.initData(ContextUtil.getLanguage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|