From c6e74c14c83592104ef8a54465718ed192794c42 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Mon, 9 Oct 2023 13:37:46 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=AC=A7=E6=B4=BE=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../factory/oupai/receiver/OpReceivingDataHandler.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/receiver/OpReceivingDataHandler.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/receiver/OpReceivingDataHandler.java index 75ccbe9ed..196b2057a 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/receiver/OpReceivingDataHandler.java +++ b/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/receiver/OpReceivingDataHandler.java @@ -5,13 +5,13 @@ import com.logpm.factory.pan.service.IPanFactoryDataService; import com.rabbitmq.client.Channel; import lombok.extern.slf4j.Slf4j; import org.springblade.common.constant.RabbitConstant; +import org.springblade.common.exception.CustomerException; import org.springframework.amqp.core.Message; import org.springframework.amqp.rabbit.annotation.RabbitHandler; import org.springframework.amqp.rabbit.annotation.RabbitListener; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; -import java.io.IOException; import java.util.Map; @@ -40,9 +40,11 @@ public class OpReceivingDataHandler { try { panFactoryDataService.handleDataToPlatform(orderPackageCode, receivingTime); - } catch (Exception e) { + } catch (CustomerException e) { log.error("##################opReceivingDataHandler: 处理欧派收货数据到新系统,orderPackageCode:{},receivingTime:{},msg:{}", - orderPackageCode,receivingTime,e.getMessage()); + orderPackageCode,receivingTime,e.message); + } catch (Exception e) { + log.error("##################opReceivingDataHandler: 处理欧派收货数据到新系统",e); } }