...
|
...
|
@@ -6,6 +6,7 @@ import com.yohobuy.ufo.model.order.common.EnumExpressDataType; |
|
|
import com.yohobuy.ufo.model.order.common.EnumExpressType;
|
|
|
import com.yohoufo.dal.order.BuyerOrderMapper;
|
|
|
import com.yohoufo.dal.order.ExpressInfoMapper;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.ExpressInfo;
|
|
|
import com.yohoufo.order.event.BuyerOrderSellerDeliveryCheckEvent;
|
|
|
import com.yohoufo.order.mq.TopicConstants;
|
...
|
...
|
@@ -19,7 +20,7 @@ import java.util.List; |
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* 虚假发货取消订单
|
|
|
* 虚假发货物流检查
|
|
|
*/
|
|
|
@Component
|
|
|
public class BuyerOrderSellerDeliveryCheckMsgConsumer implements YhConsumer {
|
...
|
...
|
@@ -46,6 +47,17 @@ public class BuyerOrderSellerDeliveryCheckMsgConsumer implements YhConsumer { |
|
|
//Integer sellerUid = event.getSellerUid();
|
|
|
Long orderCode = event.getOrderCode();
|
|
|
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
if(buyerOrder==null){
|
|
|
logger.warn("BuyerOrderSellerDeliveryCheckMsgConsumer buyerOrder is null topic {}, msg {} ", getMessageTopic(), o);
|
|
|
return ;
|
|
|
}
|
|
|
if(buyerOrder.getSellerDeliveryStatus()!=null&&buyerOrder.getSellerDeliveryStatus().intValue()==1){
|
|
|
//已经处理
|
|
|
logger.info("BuyerOrderSellerDeliveryCheckMsgConsumer buyerOrder SellerDeliveryStatus is deal, topic {}, msg {},buyer order {} ", getMessageTopic(), o,buyerOrder);
|
|
|
return ;
|
|
|
}
|
|
|
|
|
|
//从物流表查询,并且是物流数据
|
|
|
List<ExpressInfo> ls = expressInfoMapper.selectByOrderCodeAndExpressType(orderCode, EnumExpressType.EXPRESS_TYPE_1.getCode());
|
|
|
ls = ls.stream().filter(info->(EnumExpressDataType.erp_logistics.getCode()==info.getDataType())).collect(Collectors.toList());
|
...
|
...
|
|