存酒接口修改
This commit is contained in:
parent
f58e60906a
commit
f4dedbbac5
|
|
@ -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)));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue