|
@ -195,6 +195,7 @@ public class UserEndPoint extends EnvelopRestEndPoint {
|
|
|
doctors.setPyCode(PinyinUtil.getPinYinHeadChar(user.getRealName(), false));
|
|
|
doctors.setSex(user.getGender());
|
|
|
doctors.setPhone(user.getTelephone());
|
|
|
doctors.setPhoto(user.getImgRemotePath());
|
|
|
doctorService.save(doctors);
|
|
|
}
|
|
|
DemographicInfo demographicInfo = demographicService.getDemographicInfoByIdCardNo(user.getIdCardNo());
|
|
@ -539,6 +540,16 @@ public class UserEndPoint extends EnvelopRestEndPoint {
|
|
|
}
|
|
|
}
|
|
|
userService.saveUser(user);
|
|
|
//将基础信息同步到医生表
|
|
|
Doctors doctors = doctorService.getByIdCardNo(user.getIdCardNo());
|
|
|
if (!StringUtils.isEmpty(doctors)) {
|
|
|
doctors.setName(user.getRealName());
|
|
|
doctors.setPyCode(PinyinUtil.getPinYinHeadChar(user.getRealName(), false));
|
|
|
doctors.setSex(user.getGender());
|
|
|
doctors.setPhone(user.getTelephone());
|
|
|
doctors.setPhoto(user.getImgRemotePath());
|
|
|
doctorService.save(doctors);
|
|
|
}
|
|
|
return convertToModel(user, MUser.class);
|
|
|
}
|
|
|
|
|
@ -688,6 +699,7 @@ public class UserEndPoint extends EnvelopRestEndPoint {
|
|
|
doctor.setPyCode(PinyinUtil.getPinYinHeadChar(detailModel.getRealName(), false));
|
|
|
doctor.setSex(detailModel.getGender());
|
|
|
doctor.setPhone(detailModel.getTelephone());
|
|
|
doctor.setPhoto(detailModel.getImgRemotePath());
|
|
|
}
|
|
|
DemographicInfo demographicInfo = demographicService.getDemographicInfoByIdCardNo(detailModel.getIdCardNo());
|
|
|
if (demographicInfo != null) {
|
|
@ -1200,6 +1212,7 @@ public class UserEndPoint extends EnvelopRestEndPoint {
|
|
|
doctors.setPyCode(PinyinUtil.getPinYinHeadChar(user.getRealName(), false));
|
|
|
doctors.setSex(user.getGender());
|
|
|
doctors.setPhone(user.getTelephone());
|
|
|
doctors.setPhoto(user.getImgRemotePath());
|
|
|
doctorService.save(doctors);
|
|
|
}
|
|
|
DemographicInfo demographicInfo = demographicService.getDemographicInfoByIdCardNo(user.getIdCardNo());
|
|
@ -1228,7 +1241,7 @@ public class UserEndPoint extends EnvelopRestEndPoint {
|
|
|
//获取groupName
|
|
|
String[] str = path.split("/");
|
|
|
String groupName = str[3];
|
|
|
String remoteFileName = path.substring(path.indexOf(groupName) + groupName.length());
|
|
|
String remoteFileName = path.substring(path.indexOf(groupName)+ groupName.length()+1);
|
|
|
//保存到resource表中
|
|
|
fileResource.setStoragePath(groupName + ":" + remoteFileName);
|
|
|
fileResource.setCreateDate(new Date());
|