Commit 3f38e33f by 郑云飞

首页接口修改

parent d4b6018d
...@@ -85,9 +85,9 @@ public class DbOrderController extends BaseController { ...@@ -85,9 +85,9 @@ public class DbOrderController extends BaseController {
* @param id 主键 * @param id 主键
*/ */
@SaCheckPermission("xinrenli:order:query") @SaCheckPermission("xinrenli:order:query")
@GetMapping("/{id}") @GetMapping("/")
public R<DbOrderVo> getInfo(@NotNull(message = "主键不能为空") public R<DbOrderVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) { @RequestParam Long id) {
return R.ok(iDbOrderService.queryById(id)); return R.ok(iDbOrderService.queryById(id));
} }
...@@ -120,9 +120,9 @@ public class DbOrderController extends BaseController { ...@@ -120,9 +120,9 @@ public class DbOrderController extends BaseController {
*/ */
@SaCheckPermission("xinrenli:order:remove") @SaCheckPermission("xinrenli:order:remove")
@Log(title = "订单", businessType = BusinessType.DELETE) @Log(title = "订单", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/")
public R<Void> remove(@NotEmpty(message = "主键不能为空") public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) { @RequestParam Long[] ids) {
return toAjax(iDbOrderService.deleteWithValidByIds(Arrays.asList(ids), true)); return toAjax(iDbOrderService.deleteWithValidByIds(Arrays.asList(ids), true));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment