同步数据不更新商品名称
This commit is contained in:
parent
975f438137
commit
7810340cde
@ -10,6 +10,8 @@ import lombok.experimental.Accessors;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import static com.baomidou.mybatisplus.annotation.FieldStrategy.NOT_EMPTY;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 产品索引表-不读取数据只读主键
|
||||
@ -33,10 +35,11 @@ public class ShopProductIndex implements Serializable {
|
||||
private Long product_id;
|
||||
|
||||
@ApiModelProperty(value = "产品名称:店铺平台先在对用表中检索后通过id检索,检索使用")
|
||||
|
||||
@TableField(updateStrategy=NOT_EMPTY)
|
||||
private String product_name;
|
||||
|
||||
@ApiModelProperty(value = "名称索引关键字(DOT)")
|
||||
@TableField(updateStrategy=NOT_EMPTY)
|
||||
private String product_name_index;
|
||||
|
||||
@ApiModelProperty(value = "店铺编号")
|
||||
|
||||
@ -5364,11 +5364,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_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_id(existId);
|
||||
// shopProductIndexList.get(i).setProduct_unit_points(BigDecimal.ZERO);
|
||||
shopProductIndexList.get(i).setProduct_unit_price_max(base.getProduct_market_price());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user