移除ProductSku相关的status属性,修改Property

This commit is contained in:
puhui999
2023-04-30 17:34:56 +08:00
parent f56d394830
commit 24a56bb45f
6 changed files with 48 additions and 37 deletions

View File

@@ -68,11 +68,9 @@ public class ProductSkuServiceTest extends BaseDbUnitTest {
List<ProductSkuCreateOrUpdateReqVO> skus = Arrays.asList(
randomPojo(ProductSkuCreateOrUpdateReqVO.class, o -> { // 测试更新
o.setProperties(singletonList(new ProductSkuCreateOrUpdateReqVO.Property(10L, 20L)));
o.setStatus(CommonStatusEnum.ENABLE.getStatus());
}),
randomPojo(ProductSkuCreateOrUpdateReqVO.class, o -> { // 测试新增
o.setProperties(singletonList(new ProductSkuCreateOrUpdateReqVO.Property(10L, 40L)));
o.setStatus(CommonStatusEnum.ENABLE.getStatus());
})
);