| | |
| | | throw new RuntimeException("非运维单位暂时无法报备"); |
| | | } |
| | | form.setUnitId(unitId); |
| | | Long userId = SecurityUtils.getLoginUser().getUserId(); |
| | | form.setPeopleId(Integer.parseInt(userId+"")); |
| | | if ("事前报备".equals(form.getReportType())) { |
| | | // 如果是事前报备需要检验是否已经生成下发工单 |
| | | YwPointVO point = ywpointMapper.countNotFinishedWorkOrderByGb(form.getPointId()); |
| | |
| | | item.setResultStr(records.get(0).getResult() ? "通过" : "未通过"); |
| | | item.setResultRemark(records.get(0).getResultRemark()); |
| | | item.setAuditingTime(records.get(0).getCreateTime()); |
| | | |
| | | } else { |
| | | item.setResultStr("审核中"); |
| | | } |