Authored by sailing-PC\sailing

fix confirmby platform

@@ -307,9 +307,20 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { @@ -307,9 +307,20 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
307 OrderStatus expectStatus = OrderStatus.SELLER_SEND_OUT; 307 OrderStatus expectStatus = OrderStatus.SELLER_SEND_OUT;
308 OrderStatus targetStatus = OrderStatus.PLATFORM_CHECKING; 308 OrderStatus targetStatus = OrderStatus.PLATFORM_CHECKING;
309 BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode); 309 BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
  310 +
310 if (buyerOrder != null && buyerOrder.getStatus() == expectStatus.getCode()){ 311 if (buyerOrder != null && buyerOrder.getStatus() == expectStatus.getCode()){
311 - buyerOrderMapper.updateStatusByOrderCode(orderCode, buyerOrder.getUid(), expectStatus.getCode(), 312 + int uid = buyerOrder.getUid();
  313 + int sellerUid = buyerOrder.getSellerUid();
  314 + buyerOrderMapper.updateStatusByOrderCode(orderCode, uid, expectStatus.getCode(),
312 targetStatus.getCode(), DateUtil.getCurrentTimeSecond()); 315 targetStatus.getCode(), DateUtil.getCurrentTimeSecond());
  316 +
  317 +
  318 + cacheCleaner.delete(Arrays.asList(CacheKeyBuilder.orderListKey(sellerUid, TabType.SELL.getValue()),
  319 + CacheKeyBuilder.orderListKey(uid, TabType.BUY.getValue()),
  320 + CacheKeyBuilder.orderDetailKey(sellerUid, TabType.SELL.getValue(), orderCode),
  321 + CacheKeyBuilder.orderDetailKey(uid, TabType.BUY.getValue(), orderCode)));
313 } 322 }
  323 +
  324 +
314 } 325 }
315 } 326 }