| | |
| | | private static final int STATUS_REPAIR = 3; |
| | | private static final int STATUS_WASTE = 4; |
| | | |
| | | private static final String WORK_TYPE_ASSEMBLY = "1"; |
| | | private static final String WORK_TYPE_TEST = "2"; |
| | | private static final String WORK_TYPE_INSPECTION = "3"; |
| | | private static final String WORK_TYPE_REPAIR = "4"; |
| | | |
| | | private static final String USER_PREFIX = "101"; |
| | | private static final String STATION_PREFIX = "103"; |
| | | |
| | |
| | | } |
| | | BaUser userInfo = getUserInfo(result.getUserId().toString()); |
| | | PltStation stationInfo = getStationInfo(result.getStationId().toString()); |
| | | //如果是维修work_type 没有 planId processId nodeId |
| | | if (WORK_TYPE_REPAIR.equals(result.getWorkType())) { |
| | | //校验planId processId nodeId |
| | | PrAssemblyPlan assyPlan = assemblyDao.selectByPrimaryKey(result.getPlanId()); |
| | | boolean hasNodeId = assyPlan.getProcess().getNodes().stream() |
| | |
| | | result.setDevicePrefix(devicePrefix); |
| | | } |
| | | } |
| | | } |
| | | result.setStationId(stationInfo.getId()); |
| | | result.setStationName(stationInfo.getName()); |
| | | result.setLineId(stationInfo.getLineId()); |