文档对比信息表-通过id删除bug

This commit is contained in:
caozhen
2023-09-20 11:36:20 +08:00
parent 56fff0fa45
commit 34b7a5b95b
@@ -202,29 +202,23 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "文档对比信息表-通过id删除")
@ApiOperation(value = "文档对比信息表-通过id删除", notes = "文档对比信息表-通过id删除")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
sarFileCompareInfoService.deleteById(id);
public Result<?> delete(@RequestBody JSONObject object) {
sarFileCompareInfoService.deleteById(object.getString("id"));
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "文档对比信息表-批量删除")
@ApiOperation(value = "文档对比信息表-批量删除", notes = "文档对比信息表-批量删除")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sarFileCompareInfoService.deleteByIds(Arrays.asList(ids.split(",")));
public Result<?> deleteBatch(@RequestBody JSONObject object) {
this.sarFileCompareInfoService.deleteByIds(Arrays.asList(object.getString("ids").split(",")));
return Result.OK("批量删除成功!");
}