文档对比信息表-通过id删除bug
This commit is contained in:
+4
-10
@@ -202,29 +202,23 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id删除
|
* 通过id删除
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "文档对比信息表-通过id删除")
|
@AutoLog(value = "文档对比信息表-通过id删除")
|
||||||
@ApiOperation(value = "文档对比信息表-通过id删除", notes = "文档对比信息表-通过id删除")
|
@ApiOperation(value = "文档对比信息表-通过id删除", notes = "文档对比信息表-通过id删除")
|
||||||
@PostMapping(value = "/delete")
|
@PostMapping(value = "/delete")
|
||||||
public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
|
public Result<?> delete(@RequestBody JSONObject object) {
|
||||||
sarFileCompareInfoService.deleteById(id);
|
sarFileCompareInfoService.deleteById(object.getString("id"));
|
||||||
return Result.OK("删除成功!");
|
return Result.OK("删除成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "文档对比信息表-批量删除")
|
@AutoLog(value = "文档对比信息表-批量删除")
|
||||||
@ApiOperation(value = "文档对比信息表-批量删除", notes = "文档对比信息表-批量删除")
|
@ApiOperation(value = "文档对比信息表-批量删除", notes = "文档对比信息表-批量删除")
|
||||||
@PostMapping(value = "/deleteBatch")
|
@PostMapping(value = "/deleteBatch")
|
||||||
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
public Result<?> deleteBatch(@RequestBody JSONObject object) {
|
||||||
this.sarFileCompareInfoService.deleteByIds(Arrays.asList(ids.split(",")));
|
this.sarFileCompareInfoService.deleteByIds(Arrays.asList(object.getString("ids").split(",")));
|
||||||
return Result.OK("批量删除成功!");
|
return Result.OK("批量删除成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user