Commit 144e44f3 authored by chenhao's avatar chenhao

隐患治理消息推送含有null的解决方案

parent d7df902d
...@@ -81,6 +81,7 @@ public class AsyncTask { ...@@ -81,6 +81,7 @@ public class AsyncTask {
if (pointName != null) { if (pointName != null) {
body += "关联检查点:" + pointName + TAB; body += "关联检查点:" + pointName + TAB;
} }
body = body.replaceAll(null, "").replaceAll("null", "");
saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, state, ""); saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, state, "");
} }
......
...@@ -184,6 +184,7 @@ public class AsyncTask { ...@@ -184,6 +184,7 @@ public class AsyncTask {
if (pointName != null) { if (pointName != null) {
body += "关联检查点:" + pointName + TAB; body += "关联检查点:" + pointName + TAB;
} }
body = body.replaceAll(null, "").replaceAll("null", "");
saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, state,""); saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, state,"");
} }
......
...@@ -155,6 +155,7 @@ public class AsyncTask { ...@@ -155,6 +155,7 @@ public class AsyncTask {
if (pointName != null) { if (pointName != null) {
body += "关联检查点:" + pointName + TAB; body += "关联检查点:" + pointName + TAB;
} }
body = body.replaceAll(null, "").replaceAll("null", "");
saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, taskId, state,""); saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, taskId, state,"");
} }
......
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