|
@ -394,14 +394,14 @@ public class DeviceService {
|
|
for (int i=0;i<errorIndex.size();i++){
|
|
for (int i=0;i<errorIndex.size();i++){
|
|
com.alibaba.fastjson.JSONObject tmp = errorIndex.getJSONObject(i);
|
|
com.alibaba.fastjson.JSONObject tmp = errorIndex.getJSONObject(i);
|
|
if (1 == tmp.getInteger("error")){
|
|
if (1 == tmp.getInteger("error")){
|
|
content_notice += tmp.getString("indexName"+"、");
|
|
|
|
|
|
content_notice += tmp.getString("indexName")+"、";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(content_notice)){
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(content_notice)){
|
|
content_notice.substring(0,content_notice.length()-2);
|
|
|
|
|
|
content_notice = content_notice.substring(0,content_notice.length()-1);
|
|
message.put("content_notice","您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
message.put("content_notice","您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
|
|
messageDO.setContent("您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
}
|
|
}
|
|
messageDO.setContent("您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
|
|
systemMessageDao.save(messageDO);
|
|
systemMessageDao.save(messageDO);
|
|
imUtil.sendPatientSystemMessage(messageDO.getReceiver(),JSON.toJSONString(message,SerializerFeature.WriteMapNullValue));
|
|
imUtil.sendPatientSystemMessage(messageDO.getReceiver(),JSON.toJSONString(message,SerializerFeature.WriteMapNullValue));
|
|
|
|
|
|
@ -474,18 +474,18 @@ public class DeviceService {
|
|
message.put("relation_code",messageDO.getRelationCode());
|
|
message.put("relation_code",messageDO.getRelationCode());
|
|
message.put("content_type",42);
|
|
message.put("content_type",42);
|
|
message.put("content_notice","");
|
|
message.put("content_notice","");
|
|
String content_notice = null;
|
|
|
|
|
|
String content_notice = "";
|
|
for (int i=0;i<errorIndex.size();i++){
|
|
for (int i=0;i<errorIndex.size();i++){
|
|
com.alibaba.fastjson.JSONObject tmp = errorIndex.getJSONObject(i);
|
|
com.alibaba.fastjson.JSONObject tmp = errorIndex.getJSONObject(i);
|
|
if (1 == tmp.getInteger("error")){
|
|
if (1 == tmp.getInteger("error")){
|
|
content_notice += tmp.getString("indexName"+"、");
|
|
|
|
|
|
content_notice += tmp.getString("indexName")+"、";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(content_notice)){
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(content_notice)){
|
|
content_notice.substring(0,content_notice.length()-2);
|
|
|
|
|
|
content_notice = content_notice.substring(0,content_notice.length()-1);
|
|
message.put("content_notice","您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
message.put("content_notice","您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
|
|
messageDO.setContent("您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
}
|
|
}
|
|
messageDO.setContent("您的key1过高,请注意饮食,尽量食用少油少盐食物".replace("key1",content_notice));
|
|
|
|
systemMessageDao.save(messageDO);
|
|
systemMessageDao.save(messageDO);
|
|
imUtil.sendPatientSystemMessage(messageDO.getReceiver(),JSON.toJSONString(message,SerializerFeature.WriteMapNullValue));
|
|
imUtil.sendPatientSystemMessage(messageDO.getReceiver(),JSON.toJSONString(message,SerializerFeature.WriteMapNullValue));
|
|
}
|
|
}
|