|
|
@ -45,6 +45,65 @@ public class HuiLianTongConfig { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private HighGasOrderPushMapper highGasOrderPushMapper; |
|
|
|
private HighGasOrderPushMapper highGasOrderPushMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取电子券类型列表 |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
* @throws Exception |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static JSONObject getHltFuelCoupList() throws Exception { |
|
|
|
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("serviceType", "01"); |
|
|
|
|
|
|
|
map.put("distributorId", CommonSysConst.getSysConfig().getHuiliantongDistributorId()); |
|
|
|
|
|
|
|
return HuiLianTongUnionCardConfig.request(CommonSysConst.getSysConfig().getHuiliantongSinopecUrl() + "/getHltFuelCoupList", map); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 下单购买加油券 |
|
|
|
|
|
|
|
* @param orderNo |
|
|
|
|
|
|
|
* @param distCouCount |
|
|
|
|
|
|
|
* @param couTypeCode |
|
|
|
|
|
|
|
* @param phone |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
* @throws Exception |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static JSONObject recharge(String orderNo, Integer distCouCount, String couTypeCode, String phone) throws Exception { |
|
|
|
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("orderNo", orderNo); |
|
|
|
|
|
|
|
map.put("distCouCount", distCouCount); |
|
|
|
|
|
|
|
map.put("couTypeCode", couTypeCode); |
|
|
|
|
|
|
|
map.put("phone", phone); |
|
|
|
|
|
|
|
map.put("distributorId", CommonSysConst.getSysConfig().getHuiliantongDistributorId()); |
|
|
|
|
|
|
|
return HuiLianTongUnionCardConfig.request(CommonSysConst.getSysConfig().getHuiliantongSinopecUrl()+"/recharge", map); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 购买加油券充值订单 |
|
|
|
|
|
|
|
* @param couNo 订单号 |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
* @throws Exception |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static JSONObject getPayOrderByCouNo(String couNo) throws Exception { |
|
|
|
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("couNo", couNo); |
|
|
|
|
|
|
|
map.put("distributorId", CommonSysConst.getSysConfig().getHuiliantongDistributorId()); |
|
|
|
|
|
|
|
return HuiLianTongUnionCardConfig.request(CommonSysConst.getSysConfig().getHuiliantongSinopecUrl()+"/getPayOrderByCouNo", map); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 购买加油券充值订单 |
|
|
|
|
|
|
|
* @param rechargeOrderId 订单号 |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
* @throws Exception |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static JSONObject costRechargeOrder(String rechargeOrderId) throws Exception { |
|
|
|
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("rechargeOrderId", rechargeOrderId); |
|
|
|
|
|
|
|
map.put("distributorId", CommonSysConst.getSysConfig().getHuiliantongDistributorId()); |
|
|
|
|
|
|
|
return HuiLianTongUnionCardConfig.request(CommonSysConst.getSysConfig().getHuiliantongSinopecUrl()+"/costRechargeOrder", map); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取token |
|
|
|
* 获取token |
|
|
|
* @return |
|
|
|
* @return |
|
|
|