소스 검색

Merge branch 'dev' of lincl/patient-co-management into dev

chenweida 8 년 전
부모
커밋
a5ccdef651
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      src/main/java/com/yihu/wlyy/service/app/sign/FamilyContractService.java

+ 7 - 5
src/main/java/com/yihu/wlyy/service/app/sign/FamilyContractService.java

@ -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);