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