|
@ -1731,6 +1731,13 @@ public class FamilyContractService extends BaseService {
|
|
|
result.put("msg", "医生不存在");
|
|
|
return result;
|
|
|
}
|
|
|
//判断患者对旧的健管师是否存在健康咨询
|
|
|
ConsultTeam consultTeam = consultTeamDao.findByParientCodeAndSignTypeAndDoctor(patient, signFamily.getDoctor(), 2);
|
|
|
if (consultTeam != null) {
|
|
|
result.put("status", -1);
|
|
|
result.put("msg", "与当前健管师有未结束的咨询");
|
|
|
return result;
|
|
|
}
|
|
|
String oldDoctorName = signFamily.getDoctorName();
|
|
|
if (StringUtils.isNotEmpty(signFamily.getDoctor())) {
|
|
|
DoctorTeamMember teamMember = doctorTeamDoctor.findMemberByTeamAndQkCode(signFamily.getTeamCode(), signFamily.getDoctor());
|