| | |
| | | throw new CoolException("机台未设置默认工作位!!"); |
| | | } |
| | | |
| | | Set<String> locs = binds.stream().map(LocAroundBind::getBLocNo).collect(Collectors.toSet()); |
| | | Set<String> locs = binds.stream().map(LocAroundBind::getBlocNo).collect(Collectors.toSet()); |
| | | |
| | | LocMast locMasts = locMastService.selectOne(new EntityWrapper<LocMast>() |
| | | .in("loc_no", locs) |
| | |
| | | binds = locAroundBindService.selectList(new EntityWrapper<LocAroundBind>() |
| | | .eq("dev_no", basDevice.getDevNo())); |
| | | |
| | | Set<String> nlocs = binds.stream().map(LocAroundBind::getBLocNo).collect(Collectors.toSet()); |
| | | Set<String> nlocs = binds.stream().map(LocAroundBind::getBlocNo).collect(Collectors.toSet()); |
| | | |
| | | locMasts = locMastService.selectOne(new EntityWrapper<LocMast>() |
| | | .in("loc_no", nlocs) |
| | |
| | | } |
| | | |
| | | LocAroundBind bLocNo = locAroundBindService.selectOne(new EntityWrapper<LocAroundBind>().eq("b_loc_no", locMasts.getLocNo())); |
| | | bLocNo.setLocType(LocStsType.LOC_STS_TYPE_R.type); |
| | | bLocNo.setLocType(LocStsType.LOC_STS_TYPE_S.type); |
| | | |
| | | if (!locAroundBindService.updateById(bLocNo)) { |
| | | throw new CoolException("工位预约失败!!"); |
| | |
| | | if (Objects.isNull(binds) || binds.isEmpty()) { |
| | | throw new CoolException("机台未绑定工作站台!!"); |
| | | } |
| | | Set<String> locs = binds.stream().map(LocAroundBind::getBLocNo).collect(Collectors.toSet()); |
| | | Set<String> locs = binds.stream().map(LocAroundBind::getBlocNo).collect(Collectors.toSet()); |
| | | |
| | | LocMast locMasts = locMastService.selectOne(new EntityWrapper<LocMast>() |
| | | .in("loc_no", locs) |