|
@@ -104,6 +104,7 @@ public class WeightCheckHandleServiceImpl implements WeightCheckHandleService { |
|
@@ -104,6 +104,7 @@ public class WeightCheckHandleServiceImpl implements WeightCheckHandleService { |
104
|
double result1= 0.00;
|
104
|
double result1= 0.00;
|
105
|
double result2= 0.00;
|
105
|
double result2= 0.00;
|
106
|
double emptyOut= 0.00;
|
106
|
double emptyOut= 0.00;
|
|
|
107
|
+ double goodCheckResult= 0.00;
|
107
|
if(Double.doubleToLongBits(grossWt)>Double.doubleToLongBits(0)){
|
108
|
if(Double.doubleToLongBits(grossWt)>Double.doubleToLongBits(0)){
|
108
|
//进场过磅重量+带货重量 = 出场过磅重量
|
109
|
//进场过磅重量+带货重量 = 出场过磅重量
|
109
|
result = Double.parseDouble(df.format(Math.abs((inWt + goodsWt - grossWt)) / grossWt));
|
110
|
result = Double.parseDouble(df.format(Math.abs((inWt + goodsWt - grossWt)) / grossWt));
|
|
@@ -116,8 +117,12 @@ public class WeightCheckHandleServiceImpl implements WeightCheckHandleService { |
|
@@ -116,8 +117,12 @@ public class WeightCheckHandleServiceImpl implements WeightCheckHandleService { |
116
|
|
117
|
|
117
|
//车辆备案重量+货物重量 = 出场过磅重量,测试用,生产关闭
|
118
|
//车辆备案重量+货物重量 = 出场过磅重量,测试用,生产关闭
|
118
|
result1 = Double.parseDouble(df.format(Math.abs((wt + goodsWt - grossWt)) / grossWt));
|
119
|
result1 = Double.parseDouble(df.format(Math.abs((wt + goodsWt - grossWt)) / grossWt));
|
|
|
120
|
+
|
|
|
121
|
+ //货重误差
|
|
|
122
|
+ goodCheckResult = Double.parseDouble(df.format(Math.abs((grossWt-inWt-goodsWt)) / goodsWt));
|
119
|
}
|
123
|
}
|
120
|
double range = valueDob();
|
124
|
double range = valueDob();
|
|
|
125
|
+ logger.info("[WEIGHT-CHECK]-实际离场拉货重量:{},申请离场拉货重量:{},货重差值:{},货重误差:{}",grossWt-inWt,goodsWt,grossWt-inWt-goodsWt,goodCheckResult);
|
121
|
logger.info("[WEIGHT-CHECK]-进出场比对差值:{},提货离场差值:{},进出场比对重量差:{}",result,result1,Math.abs(inWt - grossWt));
|
126
|
logger.info("[WEIGHT-CHECK]-进出场比对差值:{},提货离场差值:{},进出场比对重量差:{}",result,result1,Math.abs(inWt - grossWt));
|
122
|
|
127
|
|
123
|
|
128
|
|