|
@@ -88,7 +88,7 @@ public class TransMoney {
|
|
|
* @param endTime
|
|
* @param endTime
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public Map<String,BigDecimal> compute(int port, BillingModel billingModel, Long startTime, Long endTime, OrderStatus orderStatus) throws Exception{
|
|
|
|
|
|
|
+ public Map<String,BigDecimal> compute(int port, BillingModel billingModel, Long startTime, Long endTime, OrderStatus orderStatus,int endElec) throws Exception{
|
|
|
|
|
|
|
|
// Map<String, BigDecimal> transData = getTransData();
|
|
// Map<String, BigDecimal> transData = getTransData();
|
|
|
Map<String, BigDecimal> transData = new ConcurrentHashMap<>();
|
|
Map<String, BigDecimal> transData = new ConcurrentHashMap<>();
|
|
@@ -112,11 +112,13 @@ public class TransMoney {
|
|
|
HashMap<String, Object> bparam = new HashMap<>();
|
|
HashMap<String, Object> bparam = new HashMap<>();
|
|
|
BillingModelDTO billingModelDTO = billingModelMapping.billingModelToBillingModelDto(billingModel);
|
|
BillingModelDTO billingModelDTO = billingModelMapping.billingModelToBillingModelDto(billingModel);
|
|
|
bparam.put("port",port);
|
|
bparam.put("port",port);
|
|
|
|
|
+ bparam.put("imei",billingModel.getDeviceImei());
|
|
|
bparam.put("billingModel",billingModelDTO);
|
|
bparam.put("billingModel",billingModelDTO);
|
|
|
//为了防止落库时间差
|
|
//为了防止落库时间差
|
|
|
bparam.put("startTime",(startTime-5*1000)/1000);
|
|
bparam.put("startTime",(startTime-5*1000)/1000);
|
|
|
bparam.put("endTime",(endTime+5*1000)/1000);
|
|
bparam.put("endTime",(endTime+5*1000)/1000);
|
|
|
bparam.put("order_id",orderStatus.getId());
|
|
bparam.put("order_id",orderStatus.getId());
|
|
|
|
|
+ bparam.put("end_elec",endElec);
|
|
|
JSONObject jsonObject = new JSONObject(bparam);
|
|
JSONObject jsonObject = new JSONObject(bparam);
|
|
|
String s = jsonObject.toString();
|
|
String s = jsonObject.toString();
|
|
|
// String billUrl = "http://wetiandi.com/app/index.php?i=1&j=1&c=auth&a=calculate_cost_new&do=compute_elec_all";
|
|
// String billUrl = "http://wetiandi.com/app/index.php?i=1&j=1&c=auth&a=calculate_cost_new&do=compute_elec_all";
|