浏览代码

代码修改

liubing 4 年之前
父节点
当前提交
052441ce90

+ 1 - 1
svr/svr-wlyy-specialist/src/main/java/com/yihu/jw/controller/SpecialistController.java

@ -468,7 +468,7 @@ public class SpecialistController extends EnvelopRestEndpoint {
//            specialistPatientRelationDO.setDoctorName(getUNAME());
//            specialistPatientRelationDO.setDoctorName(getUNAME());
            List<SpecialistPatientRelationDO> list = specialistPatientRelationDao.findListByTeamAndPatient(specialistPatientRelationDO.getTeamCode(),specialistPatientRelationDO.getPatient());
            List<SpecialistPatientRelationDO> list = specialistPatientRelationDao.findListByTeamAndPatient(specialistPatientRelationDO.getTeamCode(),specialistPatientRelationDO.getPatient());
            if (list.size()>0){
            if (list.size()>0){
                return specialistService.createPatientInSpeciaRelation(list.get(0));
                return ObjEnvelop.getSuccess("success", list.get(0));
            }
            }
            return specialistService.createPatientInSpeciaRelation(specialistPatientRelationDO);
            return specialistService.createPatientInSpeciaRelation(specialistPatientRelationDO);
        }catch (Exception e){
        }catch (Exception e){