|
@@ -230,6 +230,7 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
}
|
|
|
|
|
|
Object resultNetWeight = map.get("resultNetWeight");
|
|
|
+
|
|
|
if(resultNetWeight != null && !"".equals(resultNetWeight)) {
|
|
|
BigDecimal materialId = tmstruckWeightResultMapper.getMaterialId(map);
|
|
|
if(materialId == null){
|
|
@@ -261,6 +262,12 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
}
|
|
|
tmstruckWeightResultMapper.updateOrderMaterial(map);
|
|
|
tmstruckWeightResultMapper.updateSaleMaterialId(saleMaterialId,materialNum,newWeight);
|
|
|
+ }else{
|
|
|
+
|
|
|
+ BigDecimal materialId = tmstruckWeightResultMapper.getMaterialIdByOrderId(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
|
+ if (materialId != null) {
|
|
|
+ tmstruckWeightResult.setMaterialId(materialId);
|
|
|
+ }
|
|
|
}
|
|
|
addWeightResult(tmstruckWeightResult, map);
|
|
|
|