|
@@ -209,11 +209,13 @@ public class TblDzbcOrderServiceImpl implements ITblDzbcOrderService {
|
|
|
JSONObject price = prices.getJSONObject(i);
|
|
JSONObject price = prices.getJSONObject(i);
|
|
|
Double min = price.getDouble("min");
|
|
Double min = price.getDouble("min");
|
|
|
Double max = price.getDouble("max");
|
|
Double max = price.getDouble("max");
|
|
|
|
|
+ Double xs = price.getDouble("xs");
|
|
|
Double p = price.getDouble("price");
|
|
Double p = price.getDouble("price");
|
|
|
if (min == null) min = 0.0;
|
|
if (min == null) min = 0.0;
|
|
|
if (max == null) max = Double.MAX_VALUE;
|
|
if (max == null) max = Double.MAX_VALUE;
|
|
|
|
|
+ if (xs == null) xs = 0.0;
|
|
|
if (distanceSite1 >= min && distanceSite1 <= max) {
|
|
if (distanceSite1 >= min && distanceSite1 <= max) {
|
|
|
- double jg = (p * 100) + (distanceSite1) * jgxs;
|
|
|
|
|
|
|
+ double jg = (p * 100) + (distanceSite1) * xs;
|
|
|
add.setPrice((int) Math.round(jg));
|
|
add.setPrice((int) Math.round(jg));
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|