|  |  | 
 |  |  | package com.doumee.api.business; | 
 |  |  |  | 
 |  |  | import com.doumee.api.BaseController; | 
 |  |  | import com.doumee.core.annotation.excel.ExcelExporter; | 
 |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  |  | 
 |  |  | import java.util.ArrayList; | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | import com.doumee.api.BaseController; | 
 |  |  | /** | 
 |  |  |  * @author 江蹄蹄 | 
 |  |  |  * @since 2024/04/28 16:06 | 
 |  |  | 
 |  |  |     @GetMapping("/delete/{id}") | 
 |  |  |     @RequiresPermissions("business:hiddendangerparam:delete") | 
 |  |  |     public ApiResponse deleteById(@PathVariable Integer id) { | 
 |  |  |         hiddenDangerParamService.deleteById(id); | 
 |  |  |         hiddenDangerParamService.deleteById(id,this.getLoginUser(null)); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     @GetMapping("/delete/batch") | 
 |  |  |     @RequiresPermissions("business:hiddendangerparam:delete") | 
 |  |  |     public ApiResponse deleteByIdInBatch(@RequestParam String ids) { | 
 |  |  |         hiddenDangerParamService.deleteByIdInBatch(this.getIdList(ids)); | 
 |  |  |         hiddenDangerParamService.deleteByIdInBatch(this.getIdList(ids),this.getLoginUser(null)); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  |