| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.safe.pojo.SafeCertification; |
| | | import com.ruoyi.safe.pojo.SafeHazard; |
| | | import com.ruoyi.safe.service.SafeCertificationService; |
| | | import com.ruoyi.safe.service.SafeHazardService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | |
| | | @RestController |
| | | @RequestMapping("/safeHazard") |
| | | @Api(tags = "安全生产--危险源台账") |
| | | @AllArgsConstructor |
| | | public class SafeHazardController { |
| | | |
| | | @Autowired |
| | | private SafeHazardService safeHazardService; |
| | | |
| | | @GetMapping("/page") |
| | |
| | | @ApiOperation("删除危险源台账") |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeHazard(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeHazardService.removeBatchByIds(ids)); |
| | | return R.ok(safeHazardService.delSafeHazard(ids)); |
| | | } |
| | | |
| | | } |