商品模块代码提交

This commit is contained in:
Tankaikai
2025-02-13 16:28:40 +08:00
parent 140f9344e0
commit 604387850e
3 changed files with 14 additions and 11 deletions

View File

@@ -102,7 +102,7 @@ public class ShopProdUnitServiceImpl extends ServiceImpl<ShopProdUnitMapper, Sho
Long shopId = StpKit.USER.getLoginIdAsLong();
return UpdateChain.of(ShopProdUnit.class)
.set(ShopProdUnit::getStatus, StatusEnum.ENABLED.value())
.where(ShopProdUnit::getId).eq(id)
.eq(ShopProdUnit::getId, id)
.eq(ShopProdUnit::getShopId, shopId)
.update();
}