思迅同步商品名称调整
This commit is contained in:
parent
d8aadb2d47
commit
5c6a4e985a
@ -5398,14 +5398,14 @@ public class ShopProductBaseServiceImpl extends BaseServiceImpl<ShopProductBaseM
|
||||
Long existId = Long.valueOf(existBaseIdAndState[0]);
|
||||
Integer product_state_id = Integer.valueOf(existBaseIdAndState[1]);
|
||||
base.setProduct_id(existId);
|
||||
base.setProduct_name(null);
|
||||
//base.setProduct_name(null);
|
||||
base.setProduct_src_id(existId);
|
||||
if (!(base.getProduct_state_id() == StateCode.PRODUCT_STATE_OFF_THE_SHELF_UNCHECK)) {//重新分配
|
||||
base.setProduct_state_id(product_state_id);
|
||||
}
|
||||
shopProductBaseList.get(i).setProduct_id(existId);
|
||||
shopProductIndexList.get(i).setProduct_name(null);
|
||||
shopProductIndexList.get(i).setProduct_name_index(null);
|
||||
// shopProductIndexList.get(i).setProduct_name(null);
|
||||
// shopProductIndexList.get(i).setProduct_name_index(null);
|
||||
//shopProductIndexList.get(i).setProduct_id(existId);
|
||||
// shopProductIndexList.get(i).setProduct_unit_points(BigDecimal.ZERO);
|
||||
shopProductIndexList.get(i).setProduct_unit_price_max(base.getProduct_market_price());
|
||||
|
||||
@ -844,10 +844,10 @@ public abstract class SyncBaseThirdSxAbstract{
|
||||
shopProductBase.setProduct_state_id(StateCode.PRODUCT_STATE_OFF_THE_SHELF);//默认是下架
|
||||
shopProductBase.setUnit_price(BigDecimal.valueOf(jsonObj.getDouble("retail_price")));
|
||||
if(!checkProductContainUnits(productName)){
|
||||
String spectItem=StringUtils.isNotEmpty(shopProductBase.getSpecItem())?shopProductBase.getSpecItem():"";//规格
|
||||
//String spectItem=StringUtils.isNotEmpty(shopProductBase.getSpecItem())?shopProductBase.getSpecItem():"";//规格
|
||||
String unit=StringUtils.isNotEmpty(shopProductBase.getSpecUnit())?shopProductBase.getSpecUnit():"";//规格单位
|
||||
if(StringUtils.isNotEmpty(spectItem)||StringUtils.isNotEmpty(unit)){
|
||||
productName=productName+spectItem+"/"+unit;
|
||||
if(StringUtils.isNotEmpty(unit)){
|
||||
productName=productName+"/"+unit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user