|
@ -1683,7 +1683,6 @@ public class FamilyContractService extends BaseService {
|
|
|
*/
|
|
|
public JSONObject updateSignInfo(String patient, String healthDoctor, String expensesType) {
|
|
|
JSONObject result = new JSONObject();
|
|
|
Doctor doctor = doctorDao.findByCode(healthDoctor);
|
|
|
SignFamily signFamily = signFamilyDao.findByjiatingPatientYes(patient);
|
|
|
|
|
|
if (signFamily == null) {
|
|
@ -1691,14 +1690,15 @@ public class FamilyContractService extends BaseService {
|
|
|
result.put("msg", "居民不存在家庭签约");
|
|
|
return result;
|
|
|
}
|
|
|
if (doctor == null) {
|
|
|
result.put("status", -2);
|
|
|
result.put("msg", "医生不存在");
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
// 健管师更新
|
|
|
if (StringUtils.isNotEmpty(healthDoctor)) {
|
|
|
Doctor doctor = doctorDao.findByCode(healthDoctor);
|
|
|
if (doctor == null) {
|
|
|
result.put("status", -2);
|
|
|
result.put("msg", "医生不存在");
|
|
|
return result;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(signFamily.getDoctorHealth())) {
|
|
|
// 取消原有健康管理师的家庭签约分组,并新增分组
|
|
|
List<DoctorPatientGroupInfo> groups = doctorPatientGroupInfoDao.findGroupInfoByPatientAndDoctor(signFamily.getDoctorHealth(), patient);
|