|
@@ -341,6 +341,9 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
String flId = codeMap.get("FLID").toString();
|
|
|
codeMap.put("flId",flId);
|
|
|
BigDecimal orderIdByFLID = omstruckOrderMapper.selectOrderIdByFLID(codeMap.get("FLID"));
|
|
|
+ if(orderIdByFLID == null) {
|
|
|
+ throw new Exception("该分录没有对应的运输订单");
|
|
|
+ }
|
|
|
saleMaterialId = tmstruckWeightResultMapper.getSaleMaterialId(codeMap);
|
|
|
codeMap.put("saleMaterialId",saleMaterialId);
|
|
|
//首先判断该分录有没有净重
|