|
|
@ -56,7 +56,7 @@ public class UnionStagingPayConfig { |
|
|
|
return responseParam; |
|
|
|
return responseParam; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject query(String orgTrace, String prodCode) throws Exception { |
|
|
|
public static JSONObject query(String orgTrace, String oriOrgTrace,String prodCode,Date oriBizDate) throws Exception { |
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId()); |
|
|
|
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId()); |
|
|
|
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode()); |
|
|
|
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode()); |
|
|
@ -66,8 +66,8 @@ public class UnionStagingPayConfig { |
|
|
|
paramMap.put("signType", "RSA"); |
|
|
|
paramMap.put("signType", "RSA"); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> bizDataMap = new HashMap<>(); |
|
|
|
Map<String, Object> bizDataMap = new HashMap<>(); |
|
|
|
bizDataMap.put("oriOrgTrace", null); |
|
|
|
bizDataMap.put("oriOrgTrace", oriOrgTrace); |
|
|
|
bizDataMap.put("oriBizDate", null); |
|
|
|
bizDataMap.put("oriBizDate", DateUtil.date2String(oriBizDate, "yyyyMMdd")); |
|
|
|
paramMap.put("bizData", bizDataMap); |
|
|
|
paramMap.put("bizData", bizDataMap); |
|
|
|
paramMap.put("sign", generateSign(bizDataMap)); |
|
|
|
paramMap.put("sign", generateSign(bizDataMap)); |
|
|
|
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ public class UnionStagingPayConfig { |
|
|
|
return responseParam; |
|
|
|
return responseParam; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject queryStaging(String orgTrace, String prodCode,Date oriBizDate) throws Exception { |
|
|
|
public static JSONObject queryStaging(String orgTrace, String oriOrgTrace, String prodCode,Date oriBizDate) throws Exception { |
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId()); |
|
|
|
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId()); |
|
|
|
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode()); |
|
|
|
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode()); |
|
|
@ -85,7 +85,7 @@ public class UnionStagingPayConfig { |
|
|
|
paramMap.put("signType", "RSA"); |
|
|
|
paramMap.put("signType", "RSA"); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> bizDataMap = new HashMap<>(); |
|
|
|
Map<String, Object> bizDataMap = new HashMap<>(); |
|
|
|
bizDataMap.put("oriOrgTrace", orgTrace); |
|
|
|
bizDataMap.put("oriOrgTrace", oriOrgTrace); |
|
|
|
bizDataMap.put("oriBizDate", DateUtil.date2String(oriBizDate, "yyyyMMdd")); |
|
|
|
bizDataMap.put("oriBizDate", DateUtil.date2String(oriBizDate, "yyyyMMdd")); |
|
|
|
paramMap.put("bizData", bizDataMap); |
|
|
|
paramMap.put("bizData", bizDataMap); |
|
|
|
paramMap.put("sign", generateSign(bizDataMap)); |
|
|
|
paramMap.put("sign", generateSign(bizDataMap)); |
|
|
@ -94,6 +94,43 @@ public class UnionStagingPayConfig { |
|
|
|
return responseParam; |
|
|
|
return responseParam; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject mposrefund(String orgTrace, String oriOrgTrace, BigDecimal transAmt,String prodCode,Date oriBizDate) throws Exception { |
|
|
|
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
|
|
|
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId()); |
|
|
|
|
|
|
|
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode()); |
|
|
|
|
|
|
|
paramMap.put("orgTermNo", CommonSysConst.getSysConfig().getUnionStagingPayOrgTermNo()); |
|
|
|
|
|
|
|
paramMap.put("orgTrace", orgTrace); |
|
|
|
|
|
|
|
paramMap.put("prodCode", "ISYH"); |
|
|
|
|
|
|
|
paramMap.put("signType", "RSA"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> bizDataMap = new HashMap<>(); |
|
|
|
|
|
|
|
bizDataMap.put("oriOrgTrace", oriOrgTrace); |
|
|
|
|
|
|
|
bizDataMap.put("oriBizDate", DateUtil.date2String(oriBizDate, "yyyyMMdd")); |
|
|
|
|
|
|
|
bizDataMap.put("transAmt", transAmt.multiply(new BigDecimal("100")).intValue()); |
|
|
|
|
|
|
|
paramMap.put("bizData", bizDataMap); |
|
|
|
|
|
|
|
paramMap.put("sign", generateSign(bizDataMap)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject responseParam = HttpsUtils.doPost(CommonSysConst.getSysConfig().getUnionStagingPayUrl()+"ledger/mposrefund", paramMap, new HashMap<>()); |
|
|
|
|
|
|
|
return responseParam; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject mposfindrefund(String orgTrace, String oriOrgTrace,String prodCode,Date oriBizDate) throws Exception { |
|
|
|
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
|
|
|
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId()); |
|
|
|
|
|
|
|
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode()); |
|
|
|
|
|
|
|
paramMap.put("orgTermNo", CommonSysConst.getSysConfig().getUnionStagingPayOrgTermNo()); |
|
|
|
|
|
|
|
paramMap.put("orgTrace", orgTrace); |
|
|
|
|
|
|
|
paramMap.put("prodCode", "ISYH"); |
|
|
|
|
|
|
|
paramMap.put("signType", "RSA"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> bizDataMap = new HashMap<>(); |
|
|
|
|
|
|
|
bizDataMap.put("oriOrgTrace", oriOrgTrace); |
|
|
|
|
|
|
|
paramMap.put("bizData", bizDataMap); |
|
|
|
|
|
|
|
paramMap.put("sign", generateSign(bizDataMap)); |
|
|
|
|
|
|
|
JSONObject responseParam = HttpsUtils.doPost(CommonSysConst.getSysConfig().getUnionStagingPayUrl()+"ledger/mposfindrefund", paramMap, new HashMap<>()); |
|
|
|
|
|
|
|
return responseParam; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 参数排序 |
|
|
|
* 参数排序 |
|
|
|
* @param param |
|
|
|
* @param param |
|
|
|