Authored by LUOXC

1

@@ -169,8 +169,7 @@ public class AppraiseController { @@ -169,8 +169,7 @@ public class AppraiseController {
169 } 169 }
170 170
171 /** 171 /**
172 - * TODO 手机质检: 发货  
173 - * 鉴定通过 -- 待收货 172 + * 平台发货给买家
174 */ 173 */
175 @RequestMapping(value="/deliveryGoodsToBuyer") 174 @RequestMapping(value="/deliveryGoodsToBuyer")
176 @IgnoreSession 175 @IgnoreSession
@@ -236,7 +236,7 @@ public class AppraiseService { @@ -236,7 +236,7 @@ public class AppraiseService {
236 } 236 }
237 237
238 /** 238 /**
239 - * 正常发货 239 + * 平台发货给买家
240 * 鉴定通过 -- 待收货 240 * 鉴定通过 -- 待收货
241 * 瑕疵接收 -- 待收货 241 * 瑕疵接收 -- 待收货
242 * 寄存完成 -- 待收货 242 * 寄存完成 -- 待收货
@@ -283,6 +283,10 @@ public class AppraiseService { @@ -283,6 +283,10 @@ public class AppraiseService {
283 appraiseExpressInfoBo.getWayBillCode(), 283 appraiseExpressInfoBo.getWayBillCode(),
284 appraiseExpressInfoBo.getDepotNum(), 284 appraiseExpressInfoBo.getDepotNum(),
285 appraiseExpressInfoBo.getMobile()); 285 appraiseExpressInfoBo.getMobile());
  286 + //清缓存
  287 + SellerOrderGoods sellerOrderGoods = cleanCacheAfterUpdateStatus(buyerOrder.getOrderCode(), buyerOrder.getUid(), buyerOrder.getSellerUid());
  288 + Product product = Optional.ofNullable(sellerOrderGoods).map(SellerOrderGoods::getProductId).map(productMapper::selectByPrimaryKey).orElse(null);
  289 + inBoxFacade.noticeBuyerWhenDeliveryGoodsToBuyer(buyerOrder.getUid(), buyerOrder.getOrderCode(), sellerOrderGoods, product);
286 }else { 290 }else {
287 LOGGER.warn("in deliveryGoodsToBuyer, buyer Deposit Order orderCode {}", buyerOrder.getOrderCode()); 291 LOGGER.warn("in deliveryGoodsToBuyer, buyer Deposit Order orderCode {}", buyerOrder.getOrderCode());
288 throw new ServiceException(ServiceError.ORDER_STATUS_INVALIDATE); 292 throw new ServiceException(ServiceError.ORDER_STATUS_INVALIDATE);