|
@@ -242,7 +242,6 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
tmstruckWeightResult.setResultTarePlaceId(new BigDecimal(tareId));
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
//设置毛重汽车衡
|
|
|
String resultCrossCalculateNumber = (String) map.get("resultCrossCalculateNumber");
|
|
|
if(resultCrossCalculateNumber != null){
|
|
@@ -256,11 +255,15 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
}
|
|
|
//毛重
|
|
|
if(map.get("resultCrossWeight") != null){
|
|
|
- tmstruckWeightResult.setResultGrossWeight(DataChange.dataToBigDecimal(map.get("resultCrossWeight")));
|
|
|
+ String resultCrossWeight = (String) map.get("resultCrossWeight");
|
|
|
+ if(!"".equals(resultCrossWeight))
|
|
|
+ tmstruckWeightResult.setResultGrossWeight(DataChange.dataToBigDecimal(resultCrossWeight));
|
|
|
}
|
|
|
//皮重
|
|
|
if(map.get("resultTareWeight") != null){
|
|
|
- tmstruckWeightResult.setResultTareWeight(DataChange.dataToBigDecimal(map.get("resultTareWeight")));
|
|
|
+ String resultTareWeight = (String) map.get("resultTareWeight");
|
|
|
+ if(!"".equals(resultTareWeight))
|
|
|
+ tmstruckWeightResult.setResultTareWeight(DataChange.dataToBigDecimal(resultTareWeight));
|
|
|
}
|
|
|
//净重
|
|
|
if(map.get("resultNetWeight") != null){
|