Browse Source

推送危急值,detail里的名字修改

kongwz 5 năm trước cách đây
mục cha
commit
fbaac8fa85

+ 4 - 2
push-web/src/main/java/org/diagbot/push/convert/PreProcess.java

@@ -199,7 +199,8 @@ public class PreProcess {
                         List<MedicalIndicationDetail> k = new ArrayList<>();
                         MedicalIndicationDetail mid = new MedicalIndicationDetail();
                         JSONObject jsonObject = new JSONObject();
-                        jsonObject.put("name",detailname + ": " + otherval+ ", " +rule.getRemind());
+//                        jsonObject.put("name",detailname + ": " + otherval+ ", " +rule.getRemind());
+                        jsonObject.put("name",otherval);
                         jsonObject.put("controlType",2);
                         mid.setType(4);
                         mid.setContent(jsonObject);
@@ -248,7 +249,8 @@ public class PreProcess {
                         List<MedicalIndicationDetail> k = new ArrayList<>();
                         MedicalIndicationDetail mid = new MedicalIndicationDetail();
                         JSONObject jsonObject = new JSONObject();
-                        jsonObject.put("name",detailname + ": " + numval + " " + unit+ "," +rule.getRemind());
+//                        jsonObject.put("name",detailname + ": " + numval + " " + unit+ "," +rule.getRemind());
+                        jsonObject.put("name", numval + " " + unit);
                         jsonObject.put("controlType",2);
                         mid.setType(4);
                         mid.setContent(jsonObject);