更新 admin-ui/admin/src/main/java/io/modules/sys/controller/OrderController.java
This commit is contained in:
parent
dc3f423cc5
commit
ceea3e3dab
@ -33,9 +33,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 订单表
|
||||
*
|
||||
* @author Mark #
|
||||
* @since 1.0.0 2025-02-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("sys/order")
|
||||
@ -113,13 +110,15 @@ public class OrderController {
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@DeleteMapping("{id}")
|
||||
@Operation(summary = "删除")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
public Result delete(@PathVariable Long id){
|
||||
Long[] ids = new Long[] { id };
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
orderService.delete(ids);
|
||||
return new Result();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user