Browse Source

厦门疑难病例显示调试

rengb 4 years ago
parent
commit
10ce6781c8

+ 13 - 0
trans/src/main/java/com/lantone/qc/trans/xiamen/XiamenDifficultCaseDiscussDocTrans.java

@@ -4,6 +4,7 @@ import com.google.common.collect.Lists;
 import com.lantone.qc.pub.model.doc.DifficultCaseDiscussDoc;
 import com.lantone.qc.pub.model.vo.MedrecVo;
 import com.lantone.qc.pub.util.FastJsonUtils;
+import com.lantone.qc.pub.util.StringUtil;
 import com.lantone.qc.trans.ModelDocTrans;
 import com.lantone.qc.trans.comsis.ModelDocGenerate;
 import com.lantone.qc.trans.comsis.OrdinaryAssistant;
@@ -46,6 +47,18 @@ public class XiamenDifficultCaseDiscussDocTrans extends ModelDocTrans {
             structureMap = OrdinaryAssistant.mapKeyContrast(structureMap, keyContrasts, "19");
         }
         if (MapUtils.isNotEmpty(structureMap)) {
+            String speakMsg = "";
+            String speakKey = null,speakVal = null;
+            for (int i = 1; i < 20; i++) {
+                speakKey = "讨论发言|" + i;
+                speakVal = structureMap.get(speakKey);
+                if (StringUtil.isBlank(speakVal)) {
+                    break;
+                }
+                speakMsg += i + "、" + speakVal;
+            }
+            structureMap.put("讨论发言", speakMsg);
+
             DifficultCaseDiscussDoc difficultCaseDiscussDoc = ModelDocGenerate.difficultCaseDiscussDocGen(structureMap);
             difficultCaseDiscussDoc.setPageData((Map) structureMap);
             return difficultCaseDiscussDoc;