|
@@ -310,10 +310,13 @@ public class PurchaseWarehousingServiceImpl extends ServiceImpl<PurchaseWarehous
|
|
String moDetailId=String.valueOf(itemMap.get("moDetailId"));//委外订单行id
|
|
String moDetailId=String.valueOf(itemMap.get("moDetailId"));//委外订单行id
|
|
//获取来源订单号
|
|
//获取来源订单号
|
|
Map<String,Object> omMoDetails=this.baseMapper.getOMMoDetails(moDetailId);
|
|
Map<String,Object> omMoDetails=this.baseMapper.getOMMoDetails(moDetailId);
|
|
|
|
+ if(null==omMoDetails||omMoDetails.isEmpty()){
|
|
|
|
+ throw new RuntimeException("获取委外订单行信息失败");
|
|
|
|
+ }
|
|
itemMap.put("iordercode",omMoDetails.get("csoordercode"));//来源订单号
|
|
itemMap.put("iordercode",omMoDetails.get("csoordercode"));//来源订单号
|
|
rowmId=String.valueOf(itemMap.get("moDetailId"));
|
|
rowmId=String.valueOf(itemMap.get("moDetailId"));
|
|
//获取订单行数据
|
|
//获取订单行数据
|
|
- Map<String,Object> mapOMMODetails=this.baseMapper.getOMMODetails(rowmId);
|
|
|
|
|
|
+ Map<String,Object> mapOMMODetails=this.baseMapper.getOMMoDetails(rowmId);
|
|
if(mapOMMODetails!=null){
|
|
if(mapOMMODetails!=null){
|
|
//获取订单行的价格字段
|
|
//获取订单行的价格字段
|
|
getCost(itemMap,mapOMMODetails);
|
|
getCost(itemMap,mapOMMODetails);
|
|
@@ -750,7 +753,7 @@ public class PurchaseWarehousingServiceImpl extends ServiceImpl<PurchaseWarehous
|
|
for(Map<String,Object> recordsMap:rdRecords01List){
|
|
for(Map<String,Object> recordsMap:rdRecords01List){
|
|
Map<String,Object> vouchsMap=new HashMap<>();
|
|
Map<String,Object> vouchsMap=new HashMap<>();
|
|
//获取下游委外订单行数据
|
|
//获取下游委外订单行数据
|
|
- Map<String,Object> mapOMMODetails=this.baseMapper.getOMMODetails(String.valueOf(recordsMap.get("downstreamRowId")));//1
|
|
|
|
|
|
+ Map<String,Object> mapOMMODetails=this.baseMapper.getOMMoDetails(String.valueOf(recordsMap.get("downstreamRowId")));//1
|
|
if(mapOMMODetails==null){
|
|
if(mapOMMODetails==null){
|
|
throw new RuntimeException("第"+vI+"行未找到对应下游委外订单表体行");
|
|
throw new RuntimeException("第"+vI+"行未找到对应下游委外订单表体行");
|
|
}
|
|
}
|