Authored by chenchao

clean cache

... ... @@ -201,7 +201,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
//发布支付超时取消消息
pushAutoCancelEvent(context);
cacheCleaner.cleanList(uid, TabType.SELL.getValue());
// 发消息
GoodsInfo goodsInfo = context.getSoldProduct();
OrderSubmitResp resp = OrderSubmitResp.builder().orderCode(orderCode).productId(goodsInfo.getProductId()).build();
... ... @@ -224,6 +224,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
log.info("in publishPrd use publishSinglePrd, req {}", req);
resp = publishSinglePrd(req, context);
}
cacheCleaner.cleanList(req.getUid(), TabType.SELL.getValue());
return resp;
}
... ... @@ -310,11 +311,13 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
for(SellerOrder so : soList ){
totalRefundEM = totalRefundEM.add(so.getEarnestMoney());
}
merchantOrderPaymentService.refundEarnest(req.getUid(), totalRefundEM, null, 0L, SellerWalletDetail.Type.SELLER_OFF );
SellerWallet sellerWallet = merchantOrderPaymentService.refundEarnest(req.getUid(), totalRefundEM, null, 0L, SellerWalletDetail.Type.SELLER_OFF );
//2.1 划账成功
//TODO 3 修改 seller_order(状态)sell_order_goods(状态)
//TODO 4 划账记录
if (Objects.nonNull(sellerWallet)) {
//TODO 3 修改 seller_order(状态)sell_order_goods(状态)
//TODO 4 划账记录
}
cacheCleaner.cleanList(req.getUid(), TabType.SELL.getValue());
result = true;
}else {
... ... @@ -541,6 +544,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
merchantOrderPaymentService.changePriceAddWalletDetail(sellerWallet, orderList );
successCnt = skupMap.size();
cacheCleaner.cleanList(req.getUid(), TabType.SELL.getValue());
}else {
//1.2 划账失败后
failCnt = skupMap.size();
... ...