| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import jakarta.annotation.PostConstruct; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | // } |
| | | // } |
| | | // } |
| | | //查找路径 |
| | | DeviceSite deviceSite = deviceSiteService.getOne(new LambdaQueryWrapper<DeviceSite>() |
| | | .eq(DeviceSite::getType, ioType) |
| | | .eq(DeviceSite::getSite, sourceStaNo) |
| | | .eq(DeviceSite::getChannel, channel) |
| | | ); |
| | | if (Cools.isEmpty(deviceSite)) { |
| | | channel = 0; |
| | | } else { |
| | | inTaskMsgDto.setStaNo(deviceSite.getDeviceSite()); |
| | | } |
| | | |
| | | //更新当前排 |
| | | deviceBind.setCurrentRow(curRow); |
| | |
| | | continue; |
| | | } |
| | | String shallowLoc = LocUtils.getDeepLoc(locMast1.getCode()); |
| | | if ((ioType == TaskStsType.GENERATE_IN.id && deviceBind.getBeSimilar().equals("1"))) { |
| | | if ((ioType == TaskStsType.MISSION_INITIAL.id && deviceBind.getBeSimilar().equals("1"))) { |
| | | //相似物料打开,判断深库位有没有货,没货就放深库位,有货就不操作 |
| | | Loc locMast2 = locService.getOne(new LambdaQueryWrapper<Loc>() |
| | | .eq(Loc::getCode, shallowLoc) |
| | |
| | | |
| | | |
| | | } |
| | | |