|
@ -1683,18 +1683,20 @@ 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){
|
|
|
result.put("status",-1);
|
|
|
result.put("msg","居民不存在家庭签约");
|
|
|
}
|
|
|
if(doctor == null){
|
|
|
result.put("status",-2);
|
|
|
result.put("msg","医生不存在");
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isNotEmpty(healthDoctor)) {
|
|
|
Doctor doctor = doctorDao.findByCode(healthDoctor);
|
|
|
if(doctor == null){
|
|
|
result.put("status",-2);
|
|
|
result.put("msg","医生不存在");
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(signFamily.getDoctorHealth())) {
|
|
|
// 取消原有健康管理师的家庭签约分组,并新增分组
|
|
|
List<DoctorPatientGroupInfo> groups = doctorPatientGroupInfoDao.findGroupInfoByPatientAndDoctor(signFamily.getDoctorHealth(), patient);
|