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