|
@ -212,6 +212,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject list = familyContractService.getPatientByLable(doctorcode, labelType, level, team);
|
|
|
return write(200, "查询成功", "data", list);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -254,6 +255,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
map.put("patients",listNum);
|
|
|
return write(200, "查询成功", "data", map);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -511,7 +513,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -747,7 +749,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
// }
|
|
|
// }
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
}
|
|
|
|
|
|
result = familyContractService.getSanshiSingInfoByPatientIdCard(idCard);
|
|
@ -759,6 +761,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
|
|
|
return write(200, "查询成功!", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
@ -797,6 +800,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
return write(-1, "不存在该患者签约");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "更新失败");
|
|
|
}
|
|
|
}
|
|
@ -867,7 +871,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
return error(-1, "患者信息查询失败!");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "患者信息查询失败");
|
|
|
}
|
|
|
}
|
|
@ -938,7 +942,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
return error(-1, "患者信息查询失败!");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "患者信息查询失败");
|
|
|
}
|
|
|
}
|
|
@ -971,6 +975,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
|
|
|
return write(200, "查询成功", "data", json);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -996,7 +1001,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
|
|
|
return write(200, "查询成功", "data", new JSONObject(signFamily));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1030,6 +1035,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
}
|
|
|
return write(200, "更新成功");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "更新失败");
|
|
|
}
|
|
|
}
|
|
@ -1113,7 +1119,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject list = familyContractService.findNoHealthSignFamilyHealth(getUID(), labelType, patientName, teamCode);
|
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1133,6 +1139,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject list = familyContractService.findNoHealthSignFamilyHealthByParams(getUID(), teamCode, params);
|
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1152,6 +1159,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject list = familyContractService.findByParamsWithDoctor(doctor, teamCode, params, level);
|
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1176,7 +1184,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
}
|
|
|
return write(200, "查询成功", "data", jo);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1247,7 +1255,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
}
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1272,6 +1280,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject result = familyContractService.isPatientAndDoctorExistSign(patient, doctor);
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1296,7 +1305,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject result = familyContractService.isPatientAndDoctorCanSign(patient, doctor);
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1317,6 +1326,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject result = familyContractService.getPatientDoctors(patient, getUID());
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1337,6 +1347,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject result = familyContractService.getTeamDoctors(sessionId, getUID());
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1355,7 +1366,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject result = familyContractService.getPatientSignDoctors(patient);
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1373,7 +1384,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject result = familyContractService.getPatientSignDoctorsByTeam(sessionId);
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1390,7 +1401,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
JSONObject result = familyContractService.getPatientAndDoctorTeams(patient, getUID());
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -1458,7 +1469,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
}
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|