|
|
|
@ -167,13 +167,15 @@ public class FunctionServiceImpl implements FunctionService { |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public R saveSOReceiveFGTransFer(ProductionWarehouseData productionWarehouseData) throws ParseException { |
|
|
|
List<LocationData> checkLocationId= dailyPlanMapper.checkLocationId(productionWarehouseData); |
|
|
|
if(checkLocationId.size()==0){ |
|
|
|
throw new RuntimeException("该库位不存在!"); |
|
|
|
} |
|
|
|
List<LocationData> checkLocation=wareHouseDao.checkLocation(productionWarehouseData.getSite(), productionWarehouseData.getWarehouseId(),productionWarehouseData.getLocationId()); |
|
|
|
if(checkLocation.size()==0){ |
|
|
|
throw new RuntimeException("工厂 "+productionWarehouseData.getSite()+" 的所选仓库中不存在库位:"+productionWarehouseData.getLocationId()); |
|
|
|
if(productionWarehouseData.getUseLocationFlag()==null||"Y".equals(productionWarehouseData.getUseLocationFlag())){ |
|
|
|
List<LocationData> checkLocationId= dailyPlanMapper.checkLocationId(productionWarehouseData); |
|
|
|
if(checkLocationId.size()==0){ |
|
|
|
throw new RuntimeException("该库位不存在!"); |
|
|
|
} |
|
|
|
List<LocationData> checkLocation=wareHouseDao.checkLocation(productionWarehouseData.getSite(), productionWarehouseData.getWarehouseId(),productionWarehouseData.getLocationId()); |
|
|
|
if(checkLocation.size()==0){ |
|
|
|
throw new RuntimeException("工厂 "+productionWarehouseData.getSite()+" 的所选仓库中不存在库位:"+productionWarehouseData.getLocationId()); |
|
|
|
} |
|
|
|
} |
|
|
|
List<Object> params = new ArrayList<>(); |
|
|
|
params.add(productionWarehouseData.getSite()); |
|
|
|
@ -201,13 +203,15 @@ public class FunctionServiceImpl implements FunctionService { |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public R saveSOReceiveFGTransFerHunlian(ProductionWarehouseData productionWarehouseData) throws ParseException { |
|
|
|
List<LocationData> checkLocationId= dailyPlanMapper.checkLocationId(productionWarehouseData); |
|
|
|
if(checkLocationId.size()==0){ |
|
|
|
throw new RuntimeException("该库位不存在!"); |
|
|
|
} |
|
|
|
List<LocationData> checkLocation=wareHouseDao.checkLocation(productionWarehouseData.getSite(), productionWarehouseData.getWarehouseId(),productionWarehouseData.getLocationId()); |
|
|
|
if(checkLocation.size()==0){ |
|
|
|
throw new RuntimeException("工厂 "+productionWarehouseData.getSite()+" 的所选仓库中不存在库位:"+productionWarehouseData.getLocationId()); |
|
|
|
if(productionWarehouseData.getUseLocationFlag()==null||"Y".equals(productionWarehouseData.getUseLocationFlag())){ |
|
|
|
List<LocationData> checkLocationId= dailyPlanMapper.checkLocationId(productionWarehouseData); |
|
|
|
if(checkLocationId.size()==0){ |
|
|
|
throw new RuntimeException("该库位不存在!"); |
|
|
|
} |
|
|
|
List<LocationData> checkLocation=wareHouseDao.checkLocation(productionWarehouseData.getSite(), productionWarehouseData.getWarehouseId(),productionWarehouseData.getLocationId()); |
|
|
|
if(checkLocation.size()==0){ |
|
|
|
throw new RuntimeException("工厂 "+productionWarehouseData.getSite()+" 的所选仓库中不存在库位:"+productionWarehouseData.getLocationId()); |
|
|
|
} |
|
|
|
} |
|
|
|
String taskNo=productionWarehouseData.getOrderNo(); |
|
|
|
HunlianData inData=new HunlianData(); |
|
|
|
|