修复订单删除问题

This commit is contained in:
hupeng
2024-01-02 09:55:18 +08:00
parent aa5f14fdf7
commit 577bc33c4b

View File

@ -268,7 +268,7 @@ public class StoreOrderController {
@ApiOperation(value = "删除")
@DeleteMapping(value = "/yxStoreOrder/{id}")
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_ALL','YXSTOREORDER_DELETE')")
public ResponseEntity delete(@PathVariable Integer id) {
public ResponseEntity delete(@PathVariable Long id) {
yxStoreOrderService.removeById(id);
return new ResponseEntity(HttpStatus.OK);
}