Commit dfb44892 by 吕明尚

修改次卡,月卡支付回调

parent d44ebe21
...@@ -637,7 +637,7 @@ public class CallbackServiceImpl implements CallbackService { ...@@ -637,7 +637,7 @@ public class CallbackServiceImpl implements CallbackService {
logger.error("微信支付回调出错"); logger.error("微信支付回调出错");
logger.error(e.toString()); logger.error(e.toString());
} }
logger.debug("结束权益会员订单回调"); logger.debug("结束次卡订单回调");
if (!secondaryCardBoolean) { if (!secondaryCardBoolean) {
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());
...@@ -715,7 +715,7 @@ public class CallbackServiceImpl implements CallbackService { ...@@ -715,7 +715,7 @@ public class CallbackServiceImpl implements CallbackService {
logger.error("微信支付回调出错"); logger.error("微信支付回调出错");
logger.error(e.toString()); logger.error(e.toString());
} }
logger.debug("结束权益会员订单回调"); logger.debug("结束月卡订单回调");
if (!monthlyCardBoolean) { if (!monthlyCardBoolean) {
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());
......
...@@ -159,6 +159,7 @@ public class MonthlyCardOrderServiceImpl extends ServiceImpl<MonthlyCardOrderMap ...@@ -159,6 +159,7 @@ public class MonthlyCardOrderServiceImpl extends ServiceImpl<MonthlyCardOrderMap
@Override @Override
public void paymentSuccessful(MonthlyCardOrder monthlyCardOrder) { public void paymentSuccessful(MonthlyCardOrder monthlyCardOrder) {
updateById(monthlyCardOrder);
ConsumerMonthlyCard consumerMonthlyCard = new ConsumerMonthlyCard(); ConsumerMonthlyCard consumerMonthlyCard = new ConsumerMonthlyCard();
MonthlyCardConf byId = monthlyCardConfService.getById(monthlyCardOrder.getMonthlyCardConfId()); MonthlyCardConf byId = monthlyCardConfService.getById(monthlyCardOrder.getMonthlyCardConfId());
consumerMonthlyCard.setMonthlyCardConfId(byId.getId()); consumerMonthlyCard.setMonthlyCardConfId(byId.getId());
......
...@@ -149,6 +149,7 @@ public class SecondaryCardOrderServiceImpl extends ServiceImpl<SecondaryCardOrde ...@@ -149,6 +149,7 @@ public class SecondaryCardOrderServiceImpl extends ServiceImpl<SecondaryCardOrde
@Override @Override
public void paymentSuccessful(SecondaryCardOrder secondaryCardOrder) { public void paymentSuccessful(SecondaryCardOrder secondaryCardOrder) {
updateById(secondaryCardOrder);
ConsumerSecondaryCard consumerSecondaryCard = new ConsumerSecondaryCard(); ConsumerSecondaryCard consumerSecondaryCard = new ConsumerSecondaryCard();
SecondaryCardConf secondaryCardConf = secondaryCardConfService.getById(secondaryCardOrder.getSecondaryCardConfId()); SecondaryCardConf secondaryCardConf = secondaryCardConfService.getById(secondaryCardOrder.getSecondaryCardConfId());
consumerSecondaryCard.setSecondaryCardConfId(secondaryCardOrder.getSecondaryCardConfId()); consumerSecondaryCard.setSecondaryCardConfId(secondaryCardOrder.getSecondaryCardConfId());
......
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