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