Authored by qinchao

发消息

... ... @@ -302,7 +302,7 @@ public class AppraiseService {
/**
* 鉴定不通过退回
* (1)记录物流
* (2)消息
* (2)消息 :寄回有三种情形: 质检不通过的而商品、瑕疵不接受的 、瑕疵不接受(超时)的
*/
public void returnBackOrderCauseOfJudgeFailure(AppraiseExpressInfoBo appraiseExpressInfoBo){
Integer expressCompanyId = appraiseExpressInfoBo.getExpressCompanyId();
... ... @@ -329,14 +329,14 @@ public class AppraiseService {
int sellerUid = buyerOrder.getSellerUid();
expressInfoService.returnBackOrderCauseOfJudgeFailure(sellerUid, expressCompanyId, orderCode, wayBillCode, depotNum,mobile);
//发消息给卖家 TODO
//inBoxFacade.sendCancelledProductToSellerByCenter(sellerUid,wayBillCode);
//清缓存
cleanCacheAfterUpdateStatus(buyerOrder.getOrderCode(),buyerOrder.getUid(),buyerOrder.getSellerUid());
SellerOrderGoods sellerOrderGoods = cleanCacheAfterUpdateStatus(buyerOrder.getOrderCode(),buyerOrder.getUid(),buyerOrder.getSellerUid());
//发消息给卖家
inBoxFacade.sellerQualityCheckNotPass(sellerOrderGoods,orderCode,wayBillCode);
}
private void cleanCacheAfterUpdateStatus(long orderCode,int uid,int sellerUid){
private SellerOrderGoods cleanCacheAfterUpdateStatus(long orderCode,int uid,int sellerUid){
BuyerOrderGoods bog = buyerOrderGoodsMapper.selectByOrderCode(uid, orderCode);
SellerOrderGoods sellerOrderGoods = sellerOrderGoodsMapper.selectByPrimaryKey(bog.getSkup());
LOGGER.info("in appraise service cleanCacheAfterUpdateStatus begin clean cache orderCode {},uid {} ,sellerUid {}", orderCode,uid,sellerUid);
... ... @@ -349,6 +349,7 @@ public class AppraiseService {
ErpBuyerOrderEvent event = new ErpBuyerOrderEvent(uid);
EventBusPublisher.publishEvent(event);
return sellerOrderGoods;
}
/**
... ...