|
@ -39,6 +39,7 @@ import com.yihu.wlyy.service.app.sign.FamilyContractService;
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
import com.yihu.wlyy.service.common.account.PatientService;
|
|
import com.yihu.wlyy.service.common.account.PatientService;
|
|
import com.yihu.wlyy.web.WeixinBaseController;
|
|
import com.yihu.wlyy.web.WeixinBaseController;
|
|
|
|
import springfox.documentation.spring.web.json.Json;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 医生端:家庭签约控制类
|
|
* 医生端:家庭签约控制类
|
|
@ -251,7 +252,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
count += length;
|
|
count += length;
|
|
}
|
|
}
|
|
|
|
|
|
if (list.getJSONArray("未标注")!=null){
|
|
|
|
|
|
if (list.has("未标注")) {
|
|
JSONArray noGroup = list.getJSONArray("未标注");
|
|
JSONArray noGroup = list.getJSONArray("未标注");
|
|
List codes = new ArrayList();
|
|
List codes = new ArrayList();
|
|
for (int i = 0; i < noGroup.length(); i++) {
|
|
for (int i = 0; i < noGroup.length(); i++) {
|
|
@ -267,7 +268,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
int size = noGroup.length();
|
|
int size = noGroup.length();
|
|
map.put("label", "未标注");
|
|
map.put("label", "未标注");
|
|
map.put("codes", codes);
|
|
map.put("codes", codes);
|
|
map.put("number",size);
|
|
|
|
|
|
map.put("number", size);
|
|
listNum.add(map);
|
|
listNum.add(map);
|
|
count += size;
|
|
count += size;
|
|
}
|
|
}
|
|
@ -1085,7 +1086,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
Map tempmap = new HashMap();
|
|
Map tempmap = new HashMap();
|
|
JSONObject jsonObject = new JSONObject(patient.toString());
|
|
JSONObject jsonObject = new JSONObject(patient.toString());
|
|
String code = jsonObject.get("code").toString();
|
|
String code = jsonObject.get("code").toString();
|
|
tempmap.put("code",code);
|
|
|
|
|
|
tempmap.put("code", code);
|
|
codes.add(tempmap);
|
|
codes.add(tempmap);
|
|
}
|
|
}
|
|
int length = jsonArray.length();
|
|
int length = jsonArray.length();
|
|
@ -1094,6 +1095,23 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
map.put("codes", codes);
|
|
map.put("codes", codes);
|
|
listNum.add(map);
|
|
listNum.add(map);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (list.has("未标注")) {
|
|
|
|
JSONArray jsonArray = list.getJSONArray("未标注");
|
|
|
|
List codes = new ArrayList();
|
|
|
|
for (Object patient : jsonArray) {
|
|
|
|
Map tempmap = new HashMap();
|
|
|
|
JSONObject jsonObject = new JSONObject(patient.toString());
|
|
|
|
String code = jsonObject.get("code").toString();
|
|
|
|
tempmap.put("code", code);
|
|
|
|
codes.add(tempmap);
|
|
|
|
}
|
|
|
|
Map map = new HashMap();
|
|
|
|
map.put("label", "未标注");
|
|
|
|
map.put("number", jsonArray.length());
|
|
|
|
map.put("codes", codes);
|
|
|
|
listNum.add(map);
|
|
|
|
}
|
|
} else {
|
|
} else {
|
|
JSONArray jsonArray = list.getJSONArray("孕产妇");
|
|
JSONArray jsonArray = list.getJSONArray("孕产妇");
|
|
Map map = new HashMap();
|
|
Map map = new HashMap();
|
|
@ -1102,7 +1120,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
for (Object str : jsonArray) {
|
|
for (Object str : jsonArray) {
|
|
Map tempmap = new HashMap();
|
|
Map tempmap = new HashMap();
|
|
Object code = new JSONObject(str.toString()).get("code");
|
|
Object code = new JSONObject(str.toString()).get("code");
|
|
tempmap.put("code",code);
|
|
|
|
|
|
tempmap.put("code", code);
|
|
temp.add(tempmap);
|
|
temp.add(tempmap);
|
|
}
|
|
}
|
|
map.put("codes", temp);
|
|
map.put("codes", temp);
|
|
@ -1115,7 +1133,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
for (Object str : jsonArray1) {
|
|
for (Object str : jsonArray1) {
|
|
Map tempmap = new HashMap();
|
|
Map tempmap = new HashMap();
|
|
Object code = new JSONObject(str.toString()).get("code");
|
|
Object code = new JSONObject(str.toString()).get("code");
|
|
tempmap.put("code",code);
|
|
|
|
|
|
tempmap.put("code", code);
|
|
temp1.add(tempmap);
|
|
temp1.add(tempmap);
|
|
}
|
|
}
|
|
map1.put("codes", temp1);
|
|
map1.put("codes", temp1);
|
|
@ -1128,7 +1146,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
for (Object str : jsonArray2) {
|
|
for (Object str : jsonArray2) {
|
|
Map tempmap = new HashMap();
|
|
Map tempmap = new HashMap();
|
|
Object code = new JSONObject(str.toString()).get("code");
|
|
Object code = new JSONObject(str.toString()).get("code");
|
|
tempmap.put("code",code);
|
|
|
|
|
|
tempmap.put("code", code);
|
|
temp2.add(tempmap);
|
|
temp2.add(tempmap);
|
|
}
|
|
}
|
|
map2.put("codes", temp2);
|
|
map2.put("codes", temp2);
|
|
@ -1136,7 +1154,6 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
listNum.add(map2);
|
|
listNum.add(map2);
|
|
|
|
|
|
}
|
|
}
|
|
patients.put("count", list.length());
|
|
|
|
patients.put("count", signFamily.size());
|
|
patients.put("count", signFamily.size());
|
|
patients.put("patients", listNum);
|
|
patients.put("patients", listNum);
|
|
return write(200, "查询成功!", "data", patients);
|
|
return write(200, "查询成功!", "data", patients);
|