|
@ -8,6 +8,7 @@ import java.util.concurrent.TimeUnit;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
import com.yihu.wlyy.entity.message.Message;
|
|
import com.yihu.wlyy.entity.message.Message;
|
|
|
|
import com.yihu.wlyy.entity.patient.SignFamilyRenew;
|
|
import com.yihu.wlyy.logs.BusinessLogs;
|
|
import com.yihu.wlyy.logs.BusinessLogs;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelDao;
|
|
import com.yihu.wlyy.service.app.account.PatientInfoService;
|
|
import com.yihu.wlyy.service.app.account.PatientInfoService;
|
|
@ -211,6 +212,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject list = familyContractService.getPatientByLable(doctorcode, labelType, level, team);
|
|
JSONObject list = familyContractService.getPatientByLable(doctorcode, labelType, level, team);
|
|
return write(200, "查询成功", "data", list);
|
|
return write(200, "查询成功", "data", list);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -253,6 +255,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
map.put("patients",listNum);
|
|
map.put("patients",listNum);
|
|
return write(200, "查询成功", "data", map);
|
|
return write(200, "查询成功", "data", map);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -510,7 +513,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@ -746,7 +749,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
}
|
|
}
|
|
|
|
|
|
result = familyContractService.getSanshiSingInfoByPatientIdCard(idCard);
|
|
result = familyContractService.getSanshiSingInfoByPatientIdCard(idCard);
|
|
@ -758,6 +761,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
|
|
|
return write(200, "查询成功!", "data", result);
|
|
return write(200, "查询成功!", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败!");
|
|
return error(-1, "查询失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -796,6 +800,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
return write(-1, "不存在该患者签约");
|
|
return write(-1, "不存在该患者签约");
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "更新失败");
|
|
return error(-1, "更新失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -834,12 +839,12 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
// 设置患者联系电话
|
|
// 设置患者联系电话
|
|
json.put("phone", temp.getPhone());
|
|
json.put("phone", temp.getPhone());
|
|
// 设置患者居住省份
|
|
// 设置患者居住省份
|
|
json.put("provinceName", temp.getProvinceName());
|
|
|
|
json.put("cityName", temp.getCityName());
|
|
|
|
json.put("townName", temp.getTownName());
|
|
|
|
json.put("streetName", temp.getStreetName());
|
|
|
|
|
|
json.put("provinceName", temp.getProvinceName()==null?"":temp.getProvinceName());
|
|
|
|
json.put("cityName", temp.getCityName()==null?"":temp.getCityName());
|
|
|
|
json.put("townName", temp.getTownName()==null?"":temp.getTownName());
|
|
|
|
json.put("streetName", temp.getStreetName()==null?"":temp.getStreetName());
|
|
// 设置患者地址
|
|
// 设置患者地址
|
|
json.put("address", temp.getAddress());
|
|
|
|
|
|
json.put("address", temp.getAddress()==null?"":temp.getAddress());
|
|
//设置患者医保号
|
|
//设置患者医保号
|
|
json.put("ssc", temp.getSsc());
|
|
json.put("ssc", temp.getSsc());
|
|
|
|
|
|
@ -866,7 +871,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
return error(-1, "患者信息查询失败!");
|
|
return error(-1, "患者信息查询失败!");
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "患者信息查询失败");
|
|
return error(-1, "患者信息查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -937,7 +942,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
return error(-1, "患者信息查询失败!");
|
|
return error(-1, "患者信息查询失败!");
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "患者信息查询失败");
|
|
return error(-1, "患者信息查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -970,6 +975,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
|
|
|
return write(200, "查询成功", "data", json);
|
|
return write(200, "查询成功", "data", json);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -995,7 +1001,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
|
|
|
return write(200, "查询成功", "data", new JSONObject(signFamily));
|
|
return write(200, "查询成功", "data", new JSONObject(signFamily));
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1029,6 +1035,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
}
|
|
}
|
|
return write(200, "更新成功");
|
|
return write(200, "更新成功");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "更新失败");
|
|
return error(-1, "更新失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1112,7 +1119,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject list = familyContractService.findNoHealthSignFamilyHealth(getUID(), labelType, patientName, teamCode);
|
|
JSONObject list = familyContractService.findNoHealthSignFamilyHealth(getUID(), labelType, patientName, teamCode);
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1132,6 +1139,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject list = familyContractService.findNoHealthSignFamilyHealthByParams(getUID(), teamCode, params);
|
|
JSONObject list = familyContractService.findNoHealthSignFamilyHealthByParams(getUID(), teamCode, params);
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1151,6 +1159,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject list = familyContractService.findByParamsWithDoctor(doctor, teamCode, params, level);
|
|
JSONObject list = familyContractService.findByParamsWithDoctor(doctor, teamCode, params, level);
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
return write(200, "签约数据加载成功!", "data", list);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1175,7 +1184,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
}
|
|
}
|
|
return write(200, "查询成功", "data", jo);
|
|
return write(200, "查询成功", "data", jo);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1246,7 +1255,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
}
|
|
}
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1271,6 +1280,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = familyContractService.isPatientAndDoctorExistSign(patient, doctor);
|
|
JSONObject result = familyContractService.isPatientAndDoctorExistSign(patient, doctor);
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1295,7 +1305,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = familyContractService.isPatientAndDoctorCanSign(patient, doctor);
|
|
JSONObject result = familyContractService.isPatientAndDoctorCanSign(patient, doctor);
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1316,6 +1326,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = familyContractService.getPatientDoctors(patient, getUID());
|
|
JSONObject result = familyContractService.getPatientDoctors(patient, getUID());
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1336,6 +1347,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = familyContractService.getTeamDoctors(sessionId, getUID());
|
|
JSONObject result = familyContractService.getTeamDoctors(sessionId, getUID());
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1354,7 +1366,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = familyContractService.getPatientSignDoctors(patient);
|
|
JSONObject result = familyContractService.getPatientSignDoctors(patient);
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1372,7 +1384,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = familyContractService.getPatientSignDoctorsByTeam(sessionId);
|
|
JSONObject result = familyContractService.getPatientSignDoctorsByTeam(sessionId);
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1389,7 +1401,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = familyContractService.getPatientAndDoctorTeams(patient, getUID());
|
|
JSONObject result = familyContractService.getPatientAndDoctorTeams(patient, getUID());
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1457,7 +1469,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
}
|
|
}
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
|
|
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|