存酒接口修改

This commit is contained in:
张松 2025-03-04 15:05:50 +08:00
parent f58e60906a
commit f4dedbbac5
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ public class ShopStorageGoodController {
*/
@SaAdminCheckPermission(value = "storageGood:del", name = "存酒商品删除")
@DeleteMapping
public CzgResult<Boolean> del(@RequestBody @Validated({UpdateGroup.class}) ShopStorageGoodDTO shopStorageGoodDTO) {
return CzgResult.success(shopStorageGoodService.remove(new QueryWrapper().eq(ShopStorageGood::getShopId, StpKit.USER.getShopId()).eq(ShopStorageGood::getId, shopStorageGoodDTO.getId())));
public CzgResult<Boolean> del(@RequestParam Integer id) {
return CzgResult.success(shopStorageGoodService.remove(new QueryWrapper().eq(ShopStorageGood::getShopId, StpKit.USER.getShopId()).eq(ShopStorageGood::getId, id)));
}
}