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

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

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