|
|
@ -52,6 +52,17 @@ public class WareHouseServiceImpl implements WareHouseService { |
|
|
@Override |
|
|
@Override |
|
|
@Transactional |
|
|
@Transactional |
|
|
public void saveChangeLocationId(List<ChangeLocationData> inList){ |
|
|
public void saveChangeLocationId(List<ChangeLocationData> inList){ |
|
|
|
|
|
// 袋贴重复扫描校验,写单之前拦截 - rqrq |
|
|
|
|
|
Set<String> printLabelIdSet = new HashSet<String>(); |
|
|
|
|
|
for (int i = 0; i < inList.size(); i++) { |
|
|
|
|
|
String printLabelId = inList.get(i).getPrintLabelId(); |
|
|
|
|
|
if (printLabelId == null || "".equals(printLabelId.trim())) { |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
if (!printLabelIdSet.add(printLabelId.trim())) { |
|
|
|
|
|
throw new RuntimeException("袋贴有重复扫描 请退出功能重新进入操作"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
String site=inList.get(0).getSite(); |
|
|
String site=inList.get(0).getSite(); |
|
|
//查询 新的库位在不在新的仓库里面 |
|
|
//查询 新的库位在不在新的仓库里面 |
|
|
List<LocationData> checkLocation=wareHouseDao.checkLocation(inList.get(0).getSite(),inList.get(0).getNewWareHouseId(),inList.get(0).getNewLocationId()); |
|
|
List<LocationData> checkLocation=wareHouseDao.checkLocation(inList.get(0).getSite(),inList.get(0).getNewWareHouseId(),inList.get(0).getNewLocationId()); |
|
|
|