| | |
| | | wrkSts = 21L; |
| | | ioType = 109; |
| | | } else { |
| | | List<AgvLocMast> agvLocMasts = agvLocMastService.selectList(new EntityWrapper<AgvLocMast>().eq("loc_sts", "O").eq("loc_type1", 3).eq("lev1", 1).eq("floor", 1)); |
| | | int num = 20; |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "LOC_3_NUM_RETURN")); |
| | | if (config != null && !Cools.isEmpty(config.getValue())) { |
| | | num = Integer.parseInt(config.getValue()); |
| | | } |
| | | if (agvLocMasts.size() < num) { |
| | | log.error("<库位不足>" + num + "<库位不足>"); |
| | | return FAIL; |
| | | } |
| | | //检索库位,选择合适的库位 |
| | | locMast = agvCommonService.getLocNo(3, 1, true, true); |
| | | locNo = locMast.getLocNo(); |