@@ -125,6 +125,13 @@ public class ClueController {
clueService.isRollback(ids);
return msg;
}
+ @RequestMapping("deleterDelete")
+ public Object deleterDelete(@RequestBody List<Integer> ids){
+ HttpRespMsg msg = new HttpRespMsg();
+ msg.setMsg("操作成功");
+ clueService.deleterDelete(ids);
+ return msg;
+ }
@@ -30,4 +30,6 @@ public interface ClueService extends IService<Clue> {
Clue getInfo(Clue clue);
void isRollback(List<Integer> ids);
+
+ void deleterDelete(List<Integer> ids);
@@ -132,5 +132,11 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
clueMapper.update(clue, updateWrapper);
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void deleterDelete(List<Integer> ids) {
+ clueMapper.deleteBatchIds(ids);