| | |
| | | Map<String, Object> data = price.getData(); |
| | | Double ordinary = Double.valueOf(data.get("ordinary").toString()); |
| | | Double precious = Double.valueOf(data.get("precious").toString()); |
| | | Double discount = Double.valueOf(data.get("discount").toString()); |
| | | Double discountMoney = Double.valueOf(data.get("discountMoney").toString()); |
| | | Integer activityId = Integer.valueOf(data.get("activityId").toString()); |
| | | data.put("ordinary", ordinary * number); |
| | | data.put("precious", precious * number); |
| | | } |
| | |
| | | Map<String, Object> data = price.getData(); |
| | | Double ordinary = Double.valueOf(data.get("ordinary").toString()); |
| | | Double precious = Double.valueOf(data.get("precious").toString()); |
| | | Double discount = Double.valueOf(data.get("discount").toString()); |
| | | Double discountMoney = Double.valueOf(data.get("discountMoney").toString()); |
| | | Integer activityId = Integer.valueOf(data.get("activityId").toString()); |
| | | data.put("ordinary", ordinary - discountMoney); |
| | | data.put("precious", precious - discountMoney); |
| | | } |
| | |
| | | Map<String, Object> data = price.getData(); |
| | | Double ordinary = Double.valueOf(data.get("ordinary").toString()); |
| | | Double precious = Double.valueOf(data.get("precious").toString()); |
| | | Double discount = Double.valueOf(data.get("discount").toString()); |
| | | Double discount = null; |
| | | if(null != data.get("discount")){ |
| | | discount = Double.valueOf(data.get("discount").toString()); |
| | | } |
| | | Double discountMoney = Double.valueOf(data.get("discountMoney").toString()); |
| | | Integer activityId = Integer.valueOf(data.get("activityId").toString()); |
| | | Integer activityId = null; |
| | | if(null != data.get("activityId")){ |
| | | activityId = Integer.valueOf(data.get("activityId").toString()); |
| | | } |
| | | orderLogistics.setOrderMoney((cargoType == 1 ? ordinary : precious) + tipMoney); |
| | | orderLogistics.setTravelMoney((cargoType == 1 ? ordinary : precious)); |
| | | if(type == 5){ |