| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.utils.security.ShiroUtils; |
| | | import com.ruoyi.doublePrevention.service.RiskService; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IRoleService roleService; |
| | | |
| | | @Autowired |
| | | private RiskService riskService; |
| | | |
| | | @GetMapping() |
| | | public String hiddenDangerCheck(ModelMap mmap) { |
| | |
| | | @Log(title = "删除定时隐患排查", businessType = BusinessType.DELETE) |
| | | @PostMapping("/remove") |
| | | @ResponseBody |
| | | @Transactional |
| | | public AjaxResult remove(String ids) { |
| | | return toAjax(hiddenDangerCheckService.deleteHiddenDangerCheckByIds(ids)); |
| | | //老代码 |
| | | int result = hiddenDangerCheckService.deleteHiddenDangerCheckByIds(ids); |
| | | |
| | | // todo-2022 删除定时核查任务 新代码添加 |
| | | int result1 = riskService.deleteDangerCheck(ids); |
| | | if (result1 < 1){ |
| | | throw new RuntimeException("删除核查任务附属表失败"); |
| | | } |
| | | |
| | | return toAjax(result); |
| | | } |
| | | |
| | | |