Commit 5965c219 authored by 5359's avatar 5359

订单结果查询接口代码调整

parent 43d19182
......@@ -264,7 +264,6 @@
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.65.01</version>
<!-- <version>1.47</version>-->
<scope>system</scope>
<systemPath>
${project.basedir}/src/main/webapp/WEB-INF/lib/bcprov-jdk15on-1.65.01.jar
......
package com.chinapay.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.chinapay.comm.Constants;
import com.chinapay.dto.HclcCupSignInfo;
import com.chinapay.dto.HlsEbankCcbTransaction;
import com.chinapay.dto.HlsWsConfig;
import com.chinapay.mapper.HclcCupSignInfoMapper;
import com.chinapay.mapper.HlsEbankCcbTransactionMapper;
import com.chinapay.mapper.HlsWsConfigMapper;
import com.chinapay.secss.SecssConstants;
import com.chinapay.secss.SecssUtil;
import com.chinapay.service.IHclcChinaPayService;
import com.chinapay.service.IHlsEbankCcbTransactionService;
import com.chinapay.util.HttpUtils;
import com.chinapay.util.StringUtil;
import com.hand.app.zhongDengWang.dto.HlsWsRequests;
import com.hand.app.zhongDengWang.mapper.HlsWsRequestsMapper;
import com.hand.hap.core.IRequest;
import com.hand.hap.intergration.service.IHapInterfaceHeaderService;
import com.hand.hap.system.service.impl.BaseServiceImpl;
import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.io.*;
......
......@@ -41,9 +41,9 @@ public class HclcCmbPolyListenController extends BaseController {
* @return
*/
@ResponseBody
@RequestMapping("core/api/public/cmb/get/qr/code/listen")
public Map<String, String> orderStatusNotify(HttpServletRequest request,
@RequestBody(required = true) JSONObject params) {
@RequestMapping("/api/public/cmb/get/qr/code/listen")
public JSONObject orderStatusNotify(HttpServletRequest request,
@RequestBody String params) {
IRequest iRequest = createRequestContext(request);
return hclcCmbPolyService.orderNotify(iRequest, params);
......
......@@ -11,7 +11,7 @@ public interface HclcCmbPolyService {
JSONObject queryOrderStatus(IRequest iRequest, JSONObject params);
Map orderNotify(IRequest iRequest, JSONObject params);
JSONObject orderNotify(IRequest iRequest, String params);
JSONObject closeOrder(IRequest iRequest, JSONObject params);
......
package com.hand.app.cmb.service;
import com.hand.app.cmb.dto.HlsEbankCmbTransqry;
import com.hand.hap.core.ProxySelf;
import com.hand.hap.system.service.IBaseService;
/**
* Created with IntelliJ IDEA.
* User: lsy
* Date: 2020/2/24
* Time: 9:08
*/
public interface IHlsEbankCmbTransqryService extends IBaseService<HlsEbankCmbTransqry>, ProxySelf<IHlsEbankCmbTransqryService> {
}
package com.hand.app.cmb.service.impl;
import com.chinapay.service.IHlsEbankCcbTransactionService;
import com.hand.app.cmb.dto.HlsEbankCmbTransqry;
import com.hand.app.cmb.service.IHlsEbankCmbTransqryService;
import com.hand.hap.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* Created with IntelliJ IDEA.
* User: lsy
* Date: 2020/2/24
* Time: 9:08
*/
@Service
public class HlsEbankCmbTransqryServiceImpl extends BaseServiceImpl<HlsEbankCmbTransqry> implements IHlsEbankCmbTransqryService {
}
\ No newline at end of file
......@@ -171,6 +171,21 @@ public class Utils {
return paramMap;
}
public static Map<String, String> str2Map(String str) {
Map<String, String> result = new HashMap<>();
String[] results = str.split("&");
if (results != null && results.length > 0) {
for (int var = 0; var < results.length; ++var) {
String pair = results[var];
String[] kv = pair.split("=", 2);
if (kv != null && kv.length == 2) {
result.put(kv[0], kv[1]);
}
}
}
return result;
}
/**
* 加载properties配置文件
* @param propPath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment