提交代码

dev-discount
胡锐 3 years ago
parent cfe9ed31e6
commit 046a942cde
  1. 2
      hai-cweb/src/main/java/com/cweb/controller/HighTestController.java
  2. 47
      hai-service/src/main/java/com/hai/config/UnionStagingPayConfig.java

File diff suppressed because one or more lines are too long

@ -56,7 +56,7 @@ public class UnionStagingPayConfig {
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<>();
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId());
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode());
@ -66,8 +66,8 @@ public class UnionStagingPayConfig {
paramMap.put("signType", "RSA");
Map<String, Object> bizDataMap = new HashMap<>();
bizDataMap.put("oriOrgTrace", null);
bizDataMap.put("oriBizDate", null);
bizDataMap.put("oriOrgTrace", oriOrgTrace);
bizDataMap.put("oriBizDate", DateUtil.date2String(oriBizDate, "yyyyMMdd"));
paramMap.put("bizData", bizDataMap);
paramMap.put("sign", generateSign(bizDataMap));
@ -75,7 +75,7 @@ public class UnionStagingPayConfig {
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<>();
paramMap.put("orgId", CommonSysConst.getSysConfig().getUnionStagingPayOrgId());
paramMap.put("orgMerCode", CommonSysConst.getSysConfig().getUnionStagingPayOrgMerCode());
@ -85,7 +85,7 @@ public class UnionStagingPayConfig {
paramMap.put("signType", "RSA");
Map<String, Object> bizDataMap = new HashMap<>();
bizDataMap.put("oriOrgTrace", orgTrace);
bizDataMap.put("oriOrgTrace", oriOrgTrace);
bizDataMap.put("oriBizDate", DateUtil.date2String(oriBizDate, "yyyyMMdd"));
paramMap.put("bizData", bizDataMap);
paramMap.put("sign", generateSign(bizDataMap));
@ -94,6 +94,43 @@ public class UnionStagingPayConfig {
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

Loading…
Cancel
Save