1.默认上下架
This commit is contained in:
@@ -129,7 +129,7 @@ public class TbProductSku implements Serializable {
|
|||||||
|
|
||||||
@Column(name = "`is_grounding`")
|
@Column(name = "`is_grounding`")
|
||||||
@ApiModelProperty(value = "是否上架")
|
@ApiModelProperty(value = "是否上架")
|
||||||
private Integer isGrounding = 0;
|
private Integer isGrounding = 1;
|
||||||
|
|
||||||
public void setIsDel(Integer isDel) {
|
public void setIsDel(Integer isDel) {
|
||||||
if(isDel!=null){
|
if(isDel!=null){
|
||||||
|
|||||||
@@ -387,6 +387,7 @@ public class TbProductServiceImpl implements TbProductService {
|
|||||||
sku.setShopId(save.getShopId());
|
sku.setShopId(save.getShopId());
|
||||||
sku.setCreatedAt(Instant.now().toEpochMilli());
|
sku.setCreatedAt(Instant.now().toEpochMilli());
|
||||||
sku.setUpdatedAt(Instant.now().toEpochMilli());
|
sku.setUpdatedAt(Instant.now().toEpochMilli());
|
||||||
|
sku.setIsGrounding(1);
|
||||||
skuList.add(sku);
|
skuList.add(sku);
|
||||||
}
|
}
|
||||||
List<TbProductSku> tbProductSkus = tbProductSkuRepository.saveAll(skuList);
|
List<TbProductSku> tbProductSkus = tbProductSkuRepository.saveAll(skuList);
|
||||||
|
|||||||
Reference in New Issue
Block a user