记得上下班打卡 | git大法好,push需谨慎

Commit 503a652c authored by jiangxiulong's avatar jiangxiulong

前端申请退款 超时退款 后台操作退款 等涉及状态变化 订单缓存要在最后生成

parent 1aa8392b
...@@ -125,8 +125,6 @@ public class KylinRefundsStatusServiceImpl { ...@@ -125,8 +125,6 @@ public class KylinRefundsStatusServiceImpl {
new FindOneAndUpdateOptions().returnDocument(ReturnDocument.AFTER) new FindOneAndUpdateOptions().returnDocument(ReturnDocument.AFTER)
); );
dataUtils.delOrderTicketRedis(orderTicketsId); dataUtils.delOrderTicketRedis(orderTicketsId);
mongoVoUtils.resetOrderListVo(orderInfo.getUserId(), 2, orderTicketsId, null);
// 订单入场人表 和 缓存 // 订单入场人表 和 缓存
for (String v : ticketEntityIds) { for (String v : ticketEntityIds) {
...@@ -149,6 +147,8 @@ public class KylinRefundsStatusServiceImpl { ...@@ -149,6 +147,8 @@ public class KylinRefundsStatusServiceImpl {
dataUtils.delOrderTicketEntitiesRedis(v); dataUtils.delOrderTicketEntitiesRedis(v);
} }
mongoVoUtils.resetOrderListVo(orderInfo.getUserId(), 2, orderTicketsId, null);
// 退款明细 // 退款明细
KylinOrderRefunds kylinOrderRefunds = new KylinOrderRefunds(); KylinOrderRefunds kylinOrderRefunds = new KylinOrderRefunds();
String orderRefundsId = IDGenerator.nextSnowId(); String orderRefundsId = IDGenerator.nextSnowId();
......
...@@ -655,7 +655,6 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -655,7 +655,6 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
Query.query(Criteria.where("orderTicketsId").is(orderTicketsId)).getQueryObject(), Query.query(Criteria.where("orderTicketsId").is(orderTicketsId)).getQueryObject(),
orderObject orderObject
); );
orderUtils.resetOrderListVo(orderTicketVo.getUserId(), 2, orderTicketsId, null);
// 入场人 // 入场人
for (KylinOrderRefundEntitiesVo item : refundEntities) { for (KylinOrderRefundEntitiesVo item : refundEntities) {
...@@ -730,6 +729,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -730,6 +729,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
dataUtils.delOrderTicketEntitiesRedis(item.getOrderTicketEntitiesId()); dataUtils.delOrderTicketEntitiesRedis(item.getOrderTicketEntitiesId());
} }
orderUtils.resetOrderListVo(orderTicketVo.getUserId(), 2, orderTicketsId, null);
// 退款细节取消 // 退款细节取消
KylinOrderRefunds kylinOrderRefunds = KylinOrderRefunds.getNew(); KylinOrderRefunds kylinOrderRefunds = KylinOrderRefunds.getNew();
kylinOrderRefunds.setStatus(KylinTableStatusConst.ORDER_REFUND_STATUS_CANCEL); kylinOrderRefunds.setStatus(KylinTableStatusConst.ORDER_REFUND_STATUS_CANCEL);
......
...@@ -79,8 +79,6 @@ public class KylinRefundsStatusServiceImpl { ...@@ -79,8 +79,6 @@ public class KylinRefundsStatusServiceImpl {
); );
dataUtils.delOrderTicketRedis(orderInfo.getOrderTicketsId()); dataUtils.delOrderTicketRedis(orderInfo.getOrderTicketsId());
log.info("orderInfo.getUserId() = "+ orderInfo.getUserId()); log.info("orderInfo.getUserId() = "+ orderInfo.getUserId());
orderUtils.resetOrderListVo(orderInfo.getUserId(), 2, orderInfo.getOrderTicketsId(), null);
// 订单入场人表 和 缓存 // 订单入场人表 和 缓存
KylinOrderTicketEntities entitiesTable = new KylinOrderTicketEntities(); KylinOrderTicketEntities entitiesTable = new KylinOrderTicketEntities();
...@@ -107,6 +105,8 @@ public class KylinRefundsStatusServiceImpl { ...@@ -107,6 +105,8 @@ public class KylinRefundsStatusServiceImpl {
); );
dataUtils.delOrderTicketEntitiesRedis(orderEntitiesId); dataUtils.delOrderTicketEntitiesRedis(orderEntitiesId);
orderUtils.resetOrderListVo(orderInfo.getUserId(), 2, orderInfo.getOrderTicketsId(), null);
// 退款明细 // 退款明细
KylinOrderRefunds kylinOrderRefunds = new KylinOrderRefunds(); KylinOrderRefunds kylinOrderRefunds = new KylinOrderRefunds();
String orderRefundsId = IDGenerator.nextSnowId(); String orderRefundsId = IDGenerator.nextSnowId();
......
...@@ -87,8 +87,6 @@ public class KylinRefundsStatusServiceImpl { ...@@ -87,8 +87,6 @@ public class KylinRefundsStatusServiceImpl {
orderObject orderObject
); );
dataUtils.delOrderTicketRedis(orderTicketsId); dataUtils.delOrderTicketRedis(orderTicketsId);
orderUtils.resetOrderListVo(orderInfo.getUserId(), 2, orderTicketsId, null);
// 订单入场人表 和 缓存 // 订单入场人表 和 缓存
KylinOrderTicketEntities entitiesTable = KylinOrderTicketEntities.getNew(); KylinOrderTicketEntities entitiesTable = KylinOrderTicketEntities.getNew();
...@@ -118,6 +116,8 @@ public class KylinRefundsStatusServiceImpl { ...@@ -118,6 +116,8 @@ public class KylinRefundsStatusServiceImpl {
dataUtils.delOrderTicketEntitiesRedis(v); dataUtils.delOrderTicketEntitiesRedis(v);
} }
orderUtils.resetOrderListVo(orderInfo.getUserId(), 2, orderTicketsId, null);
// 退款明细 // 退款明细
KylinOrderRefunds kylinOrderRefunds = KylinOrderRefunds.getNew(); KylinOrderRefunds kylinOrderRefunds = KylinOrderRefunds.getNew();
String orderRefundsId = IDGenerator.nextSnowId(); String orderRefundsId = IDGenerator.nextSnowId();
......
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