1.默认上下架

This commit is contained in:
2024-07-26 18:05:11 +08:00
parent b02b4c236c
commit 275b781f48
2 changed files with 2 additions and 1 deletions

View File

@@ -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){

View File

@@ -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);