Commit ec3dbec9 authored by chenhao's avatar chenhao

修改获取匹配预案的错误日志方式

parent da0d7eeb
......@@ -407,16 +407,16 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
}
}
@Async
public void toSendCompletePoliceSituationMatch(Long id) throws Exception{
public void toSendCompletePoliceSituationMatch(Long id){
try {
Object result = toCompletePoliceSituationMatch(id);
try {
List<Object> list= (List<Object>) result;
if(list.size()>0) {
emqKeeper.getMqttClient().publish(topicMatch, result.toString().getBytes(), RuleConfig.DEFAULT_QOS, false);
}
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("报送失败,系统异常!");
logger.info(topicMatch+":警情id"+id+"获取匹配的预案失败------------"+e.getMessage());
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment