|
@@ -12,6 +12,7 @@ import thyyxxk.webserver.utils.DateUtil;
|
|
|
import thyyxxk.webserver.utils.ResultVoUtil;
|
|
|
import thyyxxk.webserver.utils.StringUtil;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -47,21 +48,28 @@ public class DashboardService {
|
|
|
return ResultVoUtil.success(list);
|
|
|
}
|
|
|
|
|
|
+ public static class HuLi {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
public ResultVo<JSONObject> selectInpatientBriefsV2(String deptCode) {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("data", selectInpatientBriefs(deptCode).getData());
|
|
|
jsonObject.put("bedCount", dao.bedCount(deptCode));
|
|
|
|
|
|
- jsonObject.put("huli", new JSONObject() {{
|
|
|
- put("病危", dao.criticallyIllCount(deptCode));
|
|
|
- put("病重", dao.seriouslyIllCount(deptCode));
|
|
|
- put("一级护理", dao.primaryCare(deptCode));
|
|
|
- put("二级护理", dao.secondaryCare(deptCode));
|
|
|
- put("入院人数", dao.admissCount(deptCode));
|
|
|
- put("出院人数", dao.dischargeCount(deptCode));
|
|
|
- put("转出人数", dao.outCount(deptCode));
|
|
|
- put("转入人数", dao.inCount(deptCode));
|
|
|
- }});
|
|
|
+
|
|
|
+ List<String[]> list = new ArrayList<>();
|
|
|
+
|
|
|
+ list.add(new String[]{"病危", dao.criticallyIllCount(deptCode).toString()});
|
|
|
+ list.add(new String[]{"病重", dao.seriouslyIllCount(deptCode).toString()});
|
|
|
+ list.add(new String[]{"一级护理", dao.primaryCare(deptCode).toString()});
|
|
|
+ list.add(new String[]{"二级护理", dao.secondaryCare(deptCode).toString()});
|
|
|
+ list.add(new String[]{"入院人数", dao.admissCount(deptCode).toString()});
|
|
|
+ list.add(new String[]{"出院人数", dao.dischargeCount(deptCode).toString()});
|
|
|
+ list.add(new String[]{"转出人数", dao.outCount(deptCode).toString()});
|
|
|
+ list.add(new String[]{"转入人数", dao.inCount(deptCode).toString()});
|
|
|
+
|
|
|
+ jsonObject.put("huli", list);
|
|
|
|
|
|
return ResultVoUtil.success(jsonObject);
|
|
|
}
|