ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCompanyController.java
@@ -36,6 +36,7 @@ return R.ok(page); } //单位添加 @PostMapping(value = "/unit/addOrUpdate") public R add(@RequestBody TCompany tCompany) { @@ -47,16 +48,7 @@ } @PostMapping(value = "/unit/delete") public R add(@RequestParam Integer id) { companyService.removeById(id); return R.ok(); } @PostMapping(value = "/unit/delete") public R<TCompany> delete(@RequestParam Integer id) { public R<TCompany> delete(@RequestParam("id") Integer id) { return R.ok( companyService.getById(id)); } }