|
@ -3,6 +3,7 @@ package com.epmet.opendata.mq.listener; |
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.epmet.commons.rocketmq.constants.MQUserPropertys; |
|
|
import com.epmet.commons.rocketmq.constants.MQUserPropertys; |
|
|
import com.epmet.commons.rocketmq.messages.StaffPatrolMQMsg; |
|
|
import com.epmet.commons.rocketmq.messages.StaffPatrolMQMsg; |
|
|
|
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.commons.tools.distributedlock.DistributedLock; |
|
|
import com.epmet.commons.tools.distributedlock.DistributedLock; |
|
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
|
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
@ -70,10 +71,10 @@ public class OpenDataPatrolChangeEventListener implements MessageListenerConcurr |
|
|
|
|
|
|
|
|
logger.info("【开放数据事件监听器】-巡查记录信息变更-收到消息内容:{}, 操作:{}", msg, tags); |
|
|
logger.info("【开放数据事件监听器】-巡查记录信息变更-收到消息内容:{}, 操作:{}", msg, tags); |
|
|
StaffPatrolMQMsg msgObj = JSON.parseObject(msg, StaffPatrolMQMsg.class); |
|
|
StaffPatrolMQMsg msgObj = JSON.parseObject(msg, StaffPatrolMQMsg.class); |
|
|
//只推送平阴数据 todo 先干掉测试
|
|
|
//只推送平阴数据
|
|
|
/*if (!StrConstant.PY_CUSTOMER.equals(msgObj.getCustomerId())) { |
|
|
if (!StrConstant.PY_CUSTOMER.equals(msgObj.getCustomerId())) { |
|
|
return; |
|
|
return; |
|
|
}*/ |
|
|
} |
|
|
if (msgObj == null) { |
|
|
if (msgObj == null) { |
|
|
log.warn("consumeMessage msg body is blank"); |
|
|
log.warn("consumeMessage msg body is blank"); |
|
|
return; |
|
|
return; |
|
|