Commit 461ea36e authored by 胡建龙's avatar 胡建龙

[fix]修复通知接口接收参数异常及增加日志

parent ad1f4ec7
......@@ -46,10 +46,9 @@ public class PingAnController extends BaseController {
@ApiModelProperty("明细通知接口(BEDL_ZNA001)")
@RequestMapping("/api/public/pingAn/notify")
@ResponseBody
public String DetailsNotify(HttpServletRequest request, JSONObject data){
public JSONObject DetailsNotify(HttpServletRequest request,@RequestBody(required = true) JSONObject data){
IRequest iRequest = createRequestContext(request);
pingAnService.detailNotify(iRequest,data);
return "A001010101009010800000099910000000001939ZNA001123450120120620151810201206180000011037 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
return pingAnService.detailNotify(iRequest,data);
}
@ApiModelProperty("清分台账明细下载(BEDL_F0P101)")
......
......@@ -10,7 +10,7 @@ public interface PingAnService {
JSONObject invoke(String interfaceName, JSONObject params);
ResponseData detailNotify(IRequest iRequest, JSONObject data);
JSONObject detailNotify(IRequest iRequest, JSONObject data);
public JSONObject preInvoke(IRequest iRequest, String interfaceName, JSONObject params);
}
......@@ -146,18 +146,19 @@ public class PingAnServiceImpl implements PingAnService {
}
public ResponseData detailNotify(IRequest iRequest, JSONObject data) {
ResponseData responseData = new ResponseData();
public JSONObject detailNotify(IRequest iRequest, JSONObject data) {
JSONObject responseData = new JSONObject();
logger.info("接收推送消息,推送参数: {}", data.toString());
if (Objects.nonNull(data) && data.size() > 0) {
// 存表
HlsEbankCcbTransaction hlsEbankCcbTransaction = saveTransaction(iRequest, data);
// 调用系统的接口服务,推送通知数据
postNotify(JSONObject.toJSONString(hlsEbankCcbTransaction));
responseData.setSuccess(true);
responseData.setMessage("接收成功");
responseData.put("TxnReturnCode ","000000");
responseData.put("TxnReturnMsg ","接收成功");
} else {
responseData.setSuccess(false);
responseData.setMessage("接收失败");
responseData.put("TxnReturnCode ","111111");
responseData.put("TxnReturnMsg ","接收失败");
}
return responseData;
}
......
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