| | |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else { |
| | | wrapper.like(entry.getKey(), val); |
| | | if (entry.getKey().equals("loc_type2")){ |
| | | wrapper.eq(entry.getKey(), val); |
| | | }else { |
| | | wrapper.like(entry.getKey(), val); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | locMast.setBay1(b); // 列 |
| | | locMast.setLev1(l); // 层 |
| | | locMast.setCrnNo(crnNo); // 堆垛机 |
| | | locMast.setLocType1(!Cools.isEmpty(param.getLocType1()) ? param.getLocType1() : 1); |
| | | locMast.setLocType2(param.getLocType2()); |
| | | locMast.setLocType3(param.getLocType3()); |
| | | locMast.setLocType1((short)0); |
| | | locMast.setLocType2((short)0); |
| | | locMast.setLocType3((short)0); |
| | | locMast.setAppeUser(getUserId()); |
| | | locMast.setAppeTime(now); |
| | | locMast.setModiUser(getUserId()); |
| | | locMast.setModiTime(now); |
| | | if (r==equipmentRow){ |
| | | if (r==equipmentRow && b<3){ |
| | | locMast.setChannel(l+(b-2)*param.getEndLev()); |
| | | locMast.setLocType1((short)1); |
| | | int i = (locMast.getChannel() - 1) / (channelMax / equipmentCount) + 1; |
| | | locMast.setLocType2((short)i); |
| | | } |
| | | if (r==quietRow){ |
| | | if (r==quietRow && b<3){ |
| | | locMast.setLocType1((short)2); |
| | | } |
| | | list.add(locMast); |