| | |
| | | |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskControlMeasure; |
| | | import com.ruoyi.doublePrevention.entity.dto.req.*; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.PreventRiskControlMeasurePageQueryRespDTO; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.PreventRiskControlMeasureRespDTO; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.PreventRiskEventRespDTO; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.PreventRiskMeasureTemplatesListQueryRespDTO; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.*; |
| | | import com.ruoyi.doublePrevention.service.RiskService; |
| | | import com.ruoyi.doublePrevention.vo.ResultVO; |
| | | import org.apache.tomcat.util.net.openssl.ciphers.Authentication; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @RequestMapping("/prevent/riskControlMeasure") |
| | | @RequestMapping("/riskControlMeasure") |
| | | public class PreventRiskControlMeasureController { |
| | | |
| | | @Autowired |
| | |
| | | /** |
| | | * 管控措施- 获取管控措施模板 |
| | | */ |
| | | @PostMapping("/select/listMeasureTemplates") |
| | | @GetMapping("/select/listMeasureTemplates") |
| | | public ResultVO<List<PreventRiskMeasureTemplatesListQueryRespDTO>> listMeasures() { |
| | | return riskService.listMeasureTemplates(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 管控措施-不分页查询 |
| | | */ |
| | | @PostMapping("/select/listRiskControlMeasure") |
| | | public ResultVO<List<PreventRiskControlMeasureListQueryRespDTO>> listRiskControlMeasure() { |
| | | return riskService.listRiskControlMeasure(); |
| | | } |
| | | |
| | | } |