| | |
| | | package com.ruoyi.project.tr.selectOldRiskInfoPage.controller; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.doublePrevention.entity.dto.req.RiskOldInfoQueryReqDTO; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.PreventRiskEventPageQueryRespDTO; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.RiskOldInfoQueryRespDTO; |
| | | import com.ruoyi.doublePrevention.service.baseService.RiskOldInfoService; |
| | | import com.ruoyi.doublePrevention.vo.ResultVO; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.page.TableDataInfo; |
| | | import com.ruoyi.project.system.company.service.ICompanyService; |
| | |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/tr/selectOldRiskInfoPage") |
| | | public class selectOldRiskInfoPageController extends BaseController { |
| | | public class selectOldRiskInfoPageController extends BaseController |
| | | { |
| | | private String prefix = "tr/selectOldRiskInfoPage"; |
| | | |
| | | @Autowired |
| | | private IHiddenDangerCheckPointService hiddenDangerCheckPointService; |
| | | |
| | | @Autowired |
| | | private RiskOldInfoService riskOldInfoService; |
| | | |
| | | @GetMapping() |
| | | public String selectOldRiskInfoPage(ModelMap mmap) |
| | |
| | | */ |
| | | @PostMapping("/list") |
| | | @ResponseBody |
| | | public TableDataInfo list(HiddenDangerCheckPoint hiddenDangerCheckPoint, String dateRangeLedger, String rectifyStatusLedger, String rectifyDeptIdLedger) { |
| | | |
| | | hiddenDangerCheckPoint.setRectifyUserIdIsNotNull("1");//隐患整改人ID 不为空 |
| | | hiddenDangerCheckPoint.setCompanyId(Long.valueOf(getSysUser().getCompanyId())); |
| | | |
| | | startPage(); |
| | | List<HiddenDangerCheckPoint> list = hiddenDangerCheckPointService.selectHiddenDangerCheckPointList(hiddenDangerCheckPoint); |
| | | |
| | | return getDataTable(list); |
| | | public TableDataInfo list(RiskOldInfoQueryReqDTO queryReqDTO) |
| | | { |
| | | ResultVO<RiskOldInfoQueryRespDTO> resultVO = riskOldInfoService.selectOldRiskInfoPage(queryReqDTO); |
| | | List<RiskOldInfoQueryRespDTO> data = (List<RiskOldInfoQueryRespDTO>) resultVO.getData(); |
| | | // hiddenDangerCheckPoint.setRectifyUserIdIsNotNull("1");//隐患整改人ID 不为空 |
| | | // hiddenDangerCheckPoint.setCompanyId(Long.valueOf(getSysUser().getCompanyId())); |
| | | // |
| | | // startPage(); |
| | | // List<HiddenDangerCheckPoint> list = hiddenDangerCheckPointService.selectHiddenDangerCheckPointList(hiddenDangerCheckPoint); |
| | | // |
| | | // return getDataTable(list); |
| | | TableDataInfo dataTable = getDataTable(data); |
| | | dataTable.setTotal(resultVO.getCount()); |
| | | return dataTable; |
| | | } |
| | | |
| | | } |