Browse Source

1.欧派日志打印修改

training
zhenghaoyu 1 year ago
parent
commit
c6e74c14c8
  1. 8
      blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/receiver/OpReceivingDataHandler.java

8
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);
}
}

Loading…
Cancel
Save