|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
package com.cweb.config; |
|
|
|
|
package com.hai.config; |
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
@ -27,12 +27,12 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject queryGasInfoListByPage(Integer pageIndex,Integer pageSize) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
paramMap.put("pageIndex", pageIndex); |
|
|
|
|
paramMap.put("pageSize", pageSize); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryGasInfoListByPage", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryGasInfoListByPage", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -43,11 +43,11 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject queryGasInfoByGasId(String gasId) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
paramMap.put("gasId", gasId); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryGasInfoByGasId", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryGasInfoByGasId", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -59,12 +59,12 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject queryCompanyPriceDetail(String gasId,String oilNo) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
paramMap.put("gasId", gasId); |
|
|
|
|
paramMap.put("oilNo", oilNo); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryCompanyPriceDetail", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryCompanyPriceDetail", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -75,13 +75,13 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject refuelingOrderPush(Map<String,Object> map) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
for (Map.Entry<String, Object> entry : map.entrySet()) { |
|
|
|
|
paramMap.put(entry.getKey(), entry.getValue().toString()); |
|
|
|
|
} |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/refuelingOrderPush", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/refuelingOrderPush", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -94,13 +94,13 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject refuelingOrderRefund(String driverPhone,String thirdSerialNo,String refundReason) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
paramMap.put("driverPhone", driverPhone); |
|
|
|
|
paramMap.put("thirdSerialNo", thirdSerialNo); |
|
|
|
|
paramMap.put("refundReason", refundReason); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/refuelingOrderRefund", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/refuelingOrderRefund", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -111,11 +111,11 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject queryThirdOrderDretail(String thirdSerialNo) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
paramMap.put("thirdSerialNo", thirdSerialNo); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryThirdOrderDetail", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryThirdOrderDetail", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -131,7 +131,7 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject queryOrderInfoList(String companyCode,String startTime,String endTime,Integer page,Integer rows,Integer orderPayFlag) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
paramMap.put("companyCode", companyCode); |
|
|
|
|
paramMap.put("startTime", startTime); |
|
|
|
@ -145,8 +145,8 @@ public class TuanYouConfig { |
|
|
|
|
if (orderPayFlag != null) { |
|
|
|
|
paramMap.put("orderPayFlag", orderPayFlag); |
|
|
|
|
} |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryOrderInfoList", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/queryOrderInfoList", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -157,11 +157,11 @@ public class TuanYouConfig { |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject loopShangQiOrder(String thirdSerialNo) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("app_key", SysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("app_key", CommonSysConst.getSysConfig().getTuanYouAppKey()); |
|
|
|
|
paramMap.put("timestamp", new Date().getTime()); |
|
|
|
|
paramMap.put("thirdSerialNo", thirdSerialNo); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,SysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(SysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/loopShangQiOrder", JSON.toJSONString(paramMap)); |
|
|
|
|
paramMap.put("sign", MD5Util.encode(generateTuanYouSignature(paramMap,CommonSysConst.getSysConfig().getTuanYouAppSecret()).getBytes()).toLowerCase()); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getTuanYouUrl()+"/services/vp/openapi/loopShangQiOrder", JSON.toJSONString(paramMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |