|
@@ -68,8 +68,10 @@ public class TmstrainLoadingResultServiceImpl implements ITmstrainLoadingResultS
|
|
//通过批次ID获得采购订单号
|
|
//通过批次ID获得采购订单号
|
|
BigDecimal batchId = tmstrainLoadingResult.getBatchId();
|
|
BigDecimal batchId = tmstrainLoadingResult.getBatchId();
|
|
//查询并插入采购订单号
|
|
//查询并插入采购订单号
|
|
- BigDecimal purchaseOrderId = tmstrainLoadingResultMapper.getPurchaseOrderId(batchId);
|
|
|
|
- tmstrainLoadingResult.setPurchaseOrderRailPlanId(purchaseOrderId);
|
|
|
|
|
|
+ if(batchId != null){
|
|
|
|
+ BigDecimal purchaseOrderId = tmstrainLoadingResultMapper.getPurchaseOrderId(batchId);
|
|
|
|
+ tmstrainLoadingResult.setPurchaseOrderRailPlanId(purchaseOrderId);
|
|
|
|
+ }
|
|
//添加常规字段
|
|
//添加常规字段
|
|
addRegularField(tmstrainLoadingResult);
|
|
addRegularField(tmstrainLoadingResult);
|
|
int count = 0;
|
|
int count = 0;
|
|
@@ -103,7 +105,7 @@ public class TmstrainLoadingResultServiceImpl implements ITmstrainLoadingResultS
|
|
//通过发站查询发站的所属港口
|
|
//通过发站查询发站的所属港口
|
|
BigDecimal portId = tmstrainLoadingResultMapper.getPortIdBySendStationId(tmstrainLoadingResult.getSendStationId());
|
|
BigDecimal portId = tmstrainLoadingResultMapper.getPortIdBySendStationId(tmstrainLoadingResult.getSendStationId());
|
|
map.put("portId", portId);
|
|
map.put("portId", portId);
|
|
-// wmshBoundFeign.addResult(map);
|
|
|
|
|
|
+// wmshBoundFeign.addResult(map);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|