| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.utils.poi.ExcelUtilByDangerLedger; |
| | | import com.ruoyi.common.utils.security.ShiroUtils; |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskDangerInfo; |
| | | 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; |
| | |
| | | |
| | | @Autowired |
| | | private ICompanyService companyService; |
| | | @Autowired |
| | | private RiskService riskService; |
| | | |
| | | |
| | | @PostMapping("/export") |
| | |
| | | |
| | | startPage(); |
| | | List<HiddenDangerCheckPoint> list = hiddenDangerCheckPointService.selectHiddenDangerCheckPointList(hiddenDangerCheckPoint); |
| | | |
| | | for (HiddenDangerCheckPoint dangerCheckPoint : list) { |
| | | PreventRiskDangerInfo dangerInfo = riskService.getDangerInfoByDangerCheckPointId(dangerCheckPoint.getId()); |
| | | if (ObjectUtils.isNotEmpty(dangerInfo)){ |
| | | if (ObjectUtils.isNotEmpty(dangerInfo.getReportTime())){ |
| | | dangerCheckPoint.setReportTime(dangerInfo.getReportTime()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return getDataTable(list); |
| | | } |