Commit bc7fa7cc authored by shiyu's avatar shiyu

开店费支付回调,更新申请单状态

parent 62b9e4c8
......@@ -555,6 +555,8 @@ public class WxPayCallbackController {
String transactionId = transaction.getTransactionId();
//支付成功时间
String payTime = transaction.getSuccessTime();
OpenShopCostRecord shopCostRecord = openShopCostRecordDao.findByOrderId(systemOrderId);
//支付成功,更新开店缴费订单状态更新为有效
OpenShopCostRecord openShopCostRecord = new OpenShopCostRecord();
openShopCostRecord.setOpenShopCostOrderId(systemOrderId);
......@@ -564,8 +566,12 @@ public class WxPayCallbackController {
openShopCostRecord.setEndValidTime(DateUtils.fromLocalDateTime(endValidTime));
openShopCostRecord.setIsValid(true);
openShopCostRecordDao.update(openShopCostRecord);
OpenShopApplyOrder openShopApplyOrder = openShopApplyOrderDao.findByUserId(shopCostRecord.getUserId());
if (openShopApplyOrder.getState() == OpenShopApplyOrderEnum.StateEnum.PRE_PAY.getCode()) {
//申请单状态修改
openShopApplyOrderDao.updateState(systemOrderId, OpenShopApplyOrderEnum.StateEnum.PRE_AUDIT.getCode());
openShopApplyOrderDao.updateState(openShopApplyOrder.getOpenShopApplyOrderId(), OpenShopApplyOrderEnum.StateEnum.PRE_AUDIT.getCode());
}
logger.info(">>>>>>>>>>>> 开店费缴纳订单,微信支付回调通知处理成功 <<<<<<<<<<<<");
return Result.success();
} catch (Exception e) {
......
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