| | |
| | | import com.ruoyi.project.tr.hiddenDangerCheckPoint.domain.HiddenDangerCheckPoint; |
| | | import com.ruoyi.project.tr.hiddenDangerCheckPoint.domain.HiddenDangerCheckPointExport; |
| | | import com.ruoyi.project.tr.hiddenDangerCheckPoint.service.IHiddenDangerCheckPointService; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | |
| | | if (!StringUtils.isEmpty(rectifyDeptIdLedger)) { |
| | | hiddenDangerCheckPoint.setRectifyDeptId(Long.valueOf(rectifyDeptIdLedger)); |
| | | } |
| | | List<HiddenDangerCheckPoint> list = hiddenDangerCheckPointService.selectHiddenDangerCheckPointList(hiddenDangerCheckPoint); |
| | | List<HiddenDangerCheckPoint> list = hiddenDangerCheckPointService.selectHiddenDangerCheckPointListNew(hiddenDangerCheckPoint); |
| | | |
| | | List<HiddenDangerCheckPointExport> exportList = new ArrayList<>(); |
| | | |
| | |
| | | } else if ("3".equals(hcp.getRiskType())) { |
| | | export.setRiskPointType("工艺节点清单"); |
| | | } |
| | | // 隐患责任部门 |
| | | export.setDangerDep(hcp.getRectifyDeptName()); |
| | | |
| | | //隐患名称 |
| | | export.setDangerName(hcp.getDangerName()); |
| | | |
| | | //隐患描述 todo |
| | | export.setDangerDescription(hcp.getDangerDescription()); |
| | | |
| | | //隐患级别 |
| | | if ("0".equals(hcp.getDangerLevel())) { |
| | |
| | | export.setDangerSources(""); |
| | | } |
| | | |
| | | //整改完成期限 |
| | | if(ObjectUtils.isNotEmpty(hcp.getRectifyDeadlineTime())){ |
| | | export.setRectifyDeadlineTime(DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", hcp.getRectifyDeadlineTime())); |
| | | } |
| | | |
| | | //整改完成时间 |
| | | if(ObjectUtils.isNotEmpty(hcp.getRectifyCompleteTime())){ |
| | | export.setRectifyCompleteTime(DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", hcp.getRectifyCompleteTime())); |
| | | } |
| | | |
| | | //整改状态 |
| | | if (!StringUtils.isEmpty(hcp.getStage())) { |
| | |
| | | } else if (("超期改").equals(rectifyStatusLedger)) { |
| | | hiddenDangerCheckPoint.setStage("5"); |
| | | hiddenDangerCheckPoint.setOverdueRectify("1"); |
| | | // hiddenDangerCheckPoint.setAcceptStatus("1"); |
| | | } |
| | | } |
| | | //整改部门 |