| | |
| | | } |
| | | |
| | | //获取站点对应的库类型 |
| | | public static Long getAreaType(Integer sourceStaNo) { |
| | | public static Long getAreaType(String sourceStaNo) { |
| | | DeviceBindService rowLastnoService = SpringUtils.getBean(DeviceBindService.class); |
| | | List<DeviceBind> deviceBinds = rowLastnoService.list(new LambdaQueryWrapper<DeviceBind>()); |
| | | for (DeviceBind deviceBind : deviceBinds) { |
| | | String[] staNoList = deviceBind.getStaList().split(";"); |
| | | for (String staNo : staNoList) { |
| | | if (staNo.equals(sourceStaNo.toString())) { |
| | | if (staNo.equals(sourceStaNo)) { |
| | | return deviceBind.getId(); |
| | | } |
| | | } |
| | |
| | | * @param ioType 作业类型(*必传参数) |
| | | * @return |
| | | */ |
| | | public static InTaskMsgDto getLocNoCrn(DeviceBind deviceBind, Long area, Integer sourceStaNo, String matnr, String batch, LocTypeDto locTypeDto, int times, Integer ioType) { |
| | | public static InTaskMsgDto getLocNoCrn(DeviceBind deviceBind, Long area, String sourceStaNo, String matnr, String batch, LocTypeDto locTypeDto, int times, Integer ioType) { |
| | | DeviceBindService deviceBindService = SpringUtils.getBean(DeviceBindService.class); |
| | | DeviceSiteService deviceSiteService = SpringUtils.getBean(DeviceSiteService.class); |
| | | LocService locService = SpringUtils.getBean(LocService.class); |