提交 02c701bd authored 作者: 艾庆国's avatar 艾庆国

线路预警

上级 fdd7116f
...@@ -6,6 +6,7 @@ import com.clx.performance.common.MqWrapper; ...@@ -6,6 +6,7 @@ import com.clx.performance.common.MqWrapper;
import com.clx.performance.constant.RabbitKeyLineWarnConstants; import com.clx.performance.constant.RabbitKeyLineWarnConstants;
import com.clx.performance.param.mq.linewarn.LineWarnLineWarnMqParam; import com.clx.performance.param.mq.linewarn.LineWarnLineWarnMqParam;
import com.clx.performance.service.linewarn.LineWarnMqHandlerService; import com.clx.performance.service.linewarn.LineWarnMqHandlerService;
import com.msl.common.exception.ServiceSystemException;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message; import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener; import org.springframework.amqp.rabbit.annotation.RabbitListener;
...@@ -31,7 +32,12 @@ public class LineWarnLineWarnListener { ...@@ -31,7 +32,12 @@ public class LineWarnLineWarnListener {
log.info("线路预警-货单预警, message:{}", new String(message.getBody())); log.info("线路预警-货单预警, message:{}", new String(message.getBody()));
process(JSON.parseObject(new String(message.getBody()), new TypeReference<MqWrapper<LineWarnLineWarnMqParam>>(){}).getData()); process(JSON.parseObject(new String(message.getBody()), new TypeReference<MqWrapper<LineWarnLineWarnMqParam>>(){}).getData());
}catch (Exception e){ }catch (Exception e){
log.info("线路预警-货单预警 失败",e); if (e instanceof ServiceSystemException){
log.info("线路预警-货单预警 失败, msg:{}", e.getMessage());
}
else {
log.info("线路预警-货单预警 失败", e);
}
} }
} }
......
...@@ -6,6 +6,7 @@ import com.clx.performance.common.MqWrapper; ...@@ -6,6 +6,7 @@ import com.clx.performance.common.MqWrapper;
import com.clx.performance.constant.RabbitKeyLineWarnConstants; import com.clx.performance.constant.RabbitKeyLineWarnConstants;
import com.clx.performance.param.mq.linewarn.LineWarnOrderChildWarnMqParam; import com.clx.performance.param.mq.linewarn.LineWarnOrderChildWarnMqParam;
import com.clx.performance.service.linewarn.LineWarnMqHandlerService; import com.clx.performance.service.linewarn.LineWarnMqHandlerService;
import com.msl.common.exception.ServiceSystemException;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message; import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener; import org.springframework.amqp.rabbit.annotation.RabbitListener;
...@@ -31,7 +32,12 @@ public class LineWarnOrderChildWarnListener { ...@@ -31,7 +32,12 @@ public class LineWarnOrderChildWarnListener {
log.info("线路预警-运单异常预警, message:{}", new String(message.getBody())); log.info("线路预警-运单异常预警, message:{}", new String(message.getBody()));
process(JSON.parseObject(new String(message.getBody()), new TypeReference<MqWrapper<LineWarnOrderChildWarnMqParam>>(){}).getData()); process(JSON.parseObject(new String(message.getBody()), new TypeReference<MqWrapper<LineWarnOrderChildWarnMqParam>>(){}).getData());
}catch (Exception e){ }catch (Exception e){
log.info("线路预警-运单异常预警 失败",e); if (e instanceof ServiceSystemException){
log.info("线路预警-运单异常预警 失败, msg:{}", e.getMessage());
}
else {
log.info("线路预警-运单异常预警 失败", e);
}
} }
} }
......
...@@ -6,6 +6,7 @@ import com.clx.performance.common.MqWrapper; ...@@ -6,6 +6,7 @@ import com.clx.performance.common.MqWrapper;
import com.clx.performance.constant.RabbitKeyLineWarnConstants; import com.clx.performance.constant.RabbitKeyLineWarnConstants;
import com.clx.performance.param.mq.linewarn.LineWarnOrderGoodsAddMqParam; import com.clx.performance.param.mq.linewarn.LineWarnOrderGoodsAddMqParam;
import com.clx.performance.service.linewarn.LineWarnMqHandlerService; import com.clx.performance.service.linewarn.LineWarnMqHandlerService;
import com.msl.common.exception.ServiceSystemException;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message; import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener; import org.springframework.amqp.rabbit.annotation.RabbitListener;
...@@ -31,7 +32,12 @@ public class LineWarnOrderGoodsAddListener { ...@@ -31,7 +32,12 @@ public class LineWarnOrderGoodsAddListener {
log.info("线路预警-货单新增, message:{}", new String(message.getBody())); log.info("线路预警-货单新增, message:{}", new String(message.getBody()));
process(JSON.parseObject(new String(message.getBody()), new TypeReference<MqWrapper<LineWarnOrderGoodsAddMqParam>>(){}).getData()); process(JSON.parseObject(new String(message.getBody()), new TypeReference<MqWrapper<LineWarnOrderGoodsAddMqParam>>(){}).getData());
}catch (Exception e){ }catch (Exception e){
log.info("线路预警-货单新增 失败",e); if (e instanceof ServiceSystemException){
log.info("线路预警-货单新增 失败, msg:{}", e.getMessage());
}
else {
log.info("线路预警-货单新增 失败", e);
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论