Commit 0f98207b by 吕明尚

修改扫呗回调接口

parent 6899a11a
...@@ -59,13 +59,13 @@ public class EquityMembersOrder extends BaseEntity { ...@@ -59,13 +59,13 @@ public class EquityMembersOrder extends BaseEntity {
private Integer payType; private Integer payType;
/** /**
* 商户订单号 * 商户平台唯一订单号
*/ */
@Excel(name = "商户订单号") @Excel(name = "商户平台唯一订单号")
private String outTradeNo; private String outTradeNo;
/** /**
* 商户订单 * 终端流水
*/ */
@Excel(name = "终端流水号") @Excel(name = "终端流水号")
private String terminalTrace; private String terminalTrace;
......
...@@ -382,7 +382,7 @@ public class CallbackServiceImpl implements CallbackService { ...@@ -382,7 +382,7 @@ public class CallbackServiceImpl implements CallbackService {
break; break;
case RECHARGE: case RECHARGE:
Recharge rechargeParam = new Recharge(); Recharge rechargeParam = new Recharge();
rechargeParam.setOutTradeNo(param.getTerminal_trace()); rechargeParam.setTerminalTrace(param.getTerminal_trace());
rechargeParam.setConsumerId(attachVo.getUserId()); rechargeParam.setConsumerId(attachVo.getUserId());
Recharge recharge = rechargeService.getInfoByEntity(rechargeParam); Recharge recharge = rechargeService.getInfoByEntity(rechargeParam);
...@@ -410,7 +410,7 @@ public class CallbackServiceImpl implements CallbackService { ...@@ -410,7 +410,7 @@ public class CallbackServiceImpl implements CallbackService {
saobeiApiLogService.insertSaobeiApiLog(saobeiApiLog); saobeiApiLogService.insertSaobeiApiLog(saobeiApiLog);
return responseVo; return responseVo;
} }
WechatPayInfo wechatInfo = wechatPayInfoService.getByNo(recharge.getOutTradeNo()); WechatPayInfo wechatInfo = wechatPayInfoService.getByNo(recharge.getTerminalTrace());
if (ObjectUtil.isNull(wechatInfo)) { if (ObjectUtil.isNull(wechatInfo)) {
logger.error("saobei wechat pay error : 微信订单信息不存在==》" + param.getTerminal_trace()); logger.error("saobei wechat pay error : 微信订单信息不存在==》" + param.getTerminal_trace());
responseVo.setReturn_code(SaobeiStatusEnum.FAIL.getCode()); responseVo.setReturn_code(SaobeiStatusEnum.FAIL.getCode());
...@@ -459,7 +459,7 @@ public class CallbackServiceImpl implements CallbackService { ...@@ -459,7 +459,7 @@ public class CallbackServiceImpl implements CallbackService {
break; break;
case RIGHTS: case RIGHTS:
EquityMembersOrder equityMembersOrderParam = new EquityMembersOrder(); EquityMembersOrder equityMembersOrderParam = new EquityMembersOrder();
equityMembersOrderParam.setOutTradeNo(param.getTerminal_trace()); equityMembersOrderParam.setTerminalTrace(param.getTerminal_trace());
equityMembersOrderParam.setConsumerId(attachVo.getUserId()); equityMembersOrderParam.setConsumerId(attachVo.getUserId());
EquityMembersOrder equityMembersOrder = equityMembersOrderService.getInfoByEntity(equityMembersOrderParam); EquityMembersOrder equityMembersOrder = equityMembersOrderService.getInfoByEntity(equityMembersOrderParam);
...@@ -487,7 +487,7 @@ public class CallbackServiceImpl implements CallbackService { ...@@ -487,7 +487,7 @@ public class CallbackServiceImpl implements CallbackService {
saobeiApiLogService.insertSaobeiApiLog(saobeiApiLog); saobeiApiLogService.insertSaobeiApiLog(saobeiApiLog);
return responseVo; return responseVo;
} }
WechatPayInfo equityPayInfo = wechatPayInfoService.getByNo(equityMembersOrder.getOutTradeNo()); WechatPayInfo equityPayInfo = wechatPayInfoService.getByNo(equityMembersOrder.getTerminalTrace());
if (ObjectUtil.isNull(equityPayInfo)) { if (ObjectUtil.isNull(equityPayInfo)) {
logger.error("saobei wechat pay error : 微信订单信息不存在==》" + param.getTerminal_trace()); logger.error("saobei wechat pay error : 微信订单信息不存在==》" + param.getTerminal_trace());
responseVo.setReturn_code(SaobeiStatusEnum.FAIL.getCode()); responseVo.setReturn_code(SaobeiStatusEnum.FAIL.getCode());
......
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