| | |
| | | return null; |
| | | } |
| | | |
| | | private final Object locLock = new Object(); |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public StartupDto getLocNoNew(Integer staDescId, Integer sourceStaNo, FindLocNoAttributeVo findLocNoAttributeVo, int locArea) { |
| | | |
| | | // 目标库位 |
| | | LocMast locMast; |
| | | |
| | | synchronized (locLock) { |
| | | // 入空桶库 |
| | | if (staDescId == 1 && locArea == 2) { |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "emptyBucketInCacheCount").eq("status", 1)); |
| | |
| | | startupDto.setSourceStaNo(sourceStaNo); |
| | | startupDto.setLocNo(locMast.getLocNo()); |
| | | return startupDto; |
| | | } |
| | | } |
| | | |
| | | // 辅助方法:定义 crn_no 的排序优先级 |