java批量删除操作

id="del">
   DELETE FROM tb_test WHERE id IN
   collection="array" item="item" index="index" open="(" separator="," close=")">
      #{item}
   

@RequestMapping("/del")
@ResponseBody
@ApiOperation(value = "批量删除错题", httpMethod = "POST")
public Dto del(@ApiParam("错题id") @RequestParam String[] ids) {
    return customService.del(ids);
}

你可能感兴趣的:(java)