思迅同步商品名称调整

This commit is contained in:
liyj 2025-11-25 16:26:45 +08:00
parent d8aadb2d47
commit 5c6a4e985a
2 changed files with 6 additions and 6 deletions

View File

@ -5398,14 +5398,14 @@ public class ShopProductBaseServiceImpl extends BaseServiceImpl<ShopProductBaseM
Long existId = Long.valueOf(existBaseIdAndState[0]); Long existId = Long.valueOf(existBaseIdAndState[0]);
Integer product_state_id = Integer.valueOf(existBaseIdAndState[1]); Integer product_state_id = Integer.valueOf(existBaseIdAndState[1]);
base.setProduct_id(existId); base.setProduct_id(existId);
base.setProduct_name(null); //base.setProduct_name(null);
base.setProduct_src_id(existId); base.setProduct_src_id(existId);
if (!(base.getProduct_state_id() == StateCode.PRODUCT_STATE_OFF_THE_SHELF_UNCHECK)) {//重新分配 if (!(base.getProduct_state_id() == StateCode.PRODUCT_STATE_OFF_THE_SHELF_UNCHECK)) {//重新分配
base.setProduct_state_id(product_state_id); base.setProduct_state_id(product_state_id);
} }
shopProductBaseList.get(i).setProduct_id(existId); shopProductBaseList.get(i).setProduct_id(existId);
shopProductIndexList.get(i).setProduct_name(null); // shopProductIndexList.get(i).setProduct_name(null);
shopProductIndexList.get(i).setProduct_name_index(null); // shopProductIndexList.get(i).setProduct_name_index(null);
//shopProductIndexList.get(i).setProduct_id(existId); //shopProductIndexList.get(i).setProduct_id(existId);
// shopProductIndexList.get(i).setProduct_unit_points(BigDecimal.ZERO); // shopProductIndexList.get(i).setProduct_unit_points(BigDecimal.ZERO);
shopProductIndexList.get(i).setProduct_unit_price_max(base.getProduct_market_price()); shopProductIndexList.get(i).setProduct_unit_price_max(base.getProduct_market_price());

View File

@ -844,10 +844,10 @@ public abstract class SyncBaseThirdSxAbstract{
shopProductBase.setProduct_state_id(StateCode.PRODUCT_STATE_OFF_THE_SHELF);//默认是下架 shopProductBase.setProduct_state_id(StateCode.PRODUCT_STATE_OFF_THE_SHELF);//默认是下架
shopProductBase.setUnit_price(BigDecimal.valueOf(jsonObj.getDouble("retail_price"))); shopProductBase.setUnit_price(BigDecimal.valueOf(jsonObj.getDouble("retail_price")));
if(!checkProductContainUnits(productName)){ 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():"";//规格单位 String unit=StringUtils.isNotEmpty(shopProductBase.getSpecUnit())?shopProductBase.getSpecUnit():"";//规格单位
if(StringUtils.isNotEmpty(spectItem)||StringUtils.isNotEmpty(unit)){ if(StringUtils.isNotEmpty(unit)){
productName=productName+spectItem+"/"+unit; productName=productName+"/"+unit;
} }
} }