修改了资源路径-作者1
This commit is contained in:
parent
b9c47f8aca
commit
14856318d8
@ -863,10 +863,21 @@ public class CaseClinicalVideoService {
|
|||||||
|
|
||||||
// 新增新的作者
|
// 新增新的作者
|
||||||
for (addClinicalVideoApp.Author author : addList){
|
for (addClinicalVideoApp.Author author : addList){
|
||||||
|
GetUserInfoResponse result = new GetUserInfoResponse();
|
||||||
|
if (author.getDoctorIden() == null || Objects.equals(author.getDoctorIden(), "")){
|
||||||
|
GetUserInfoResponse.ResponsData resultData = new GetUserInfoResponse.ResponsData();
|
||||||
|
resultData.setOfficeName(author.getDoctorName());
|
||||||
|
resultData.setRealname(author.getDoctorName());
|
||||||
|
resultData.setHospitalUuid(author.getHospitalIden());
|
||||||
|
result.setData(resultData);
|
||||||
|
}else{
|
||||||
// 获取医生数据
|
// 获取医生数据
|
||||||
GetUserInfoResponse result = userInfo.getUserInfoByUuid(author.getDoctorIden());
|
result = userInfo.getUserInfoByUuid(author.getDoctorIden());
|
||||||
|
}
|
||||||
|
|
||||||
CaseClinicalDoctorModel caseClinicalDoctor = userService.GetAppCaseClinicalDoctor(result);
|
CaseClinicalDoctorModel caseClinicalDoctor = userService.GetAppCaseClinicalDoctor(result);
|
||||||
|
|
||||||
|
|
||||||
CaseClinicalVideoAuthorModel caseClinicalVideoAuthor = new CaseClinicalVideoAuthorModel();
|
CaseClinicalVideoAuthorModel caseClinicalVideoAuthor = new CaseClinicalVideoAuthorModel();
|
||||||
caseClinicalVideoAuthor.setVideoId(caseClinicalVideo.getVideoId());
|
caseClinicalVideoAuthor.setVideoId(caseClinicalVideo.getVideoId());
|
||||||
caseClinicalVideoAuthor.setDoctorId(String.valueOf(caseClinicalDoctor.getDoctorId()));
|
caseClinicalVideoAuthor.setDoctorId(String.valueOf(caseClinicalDoctor.getDoctorId()));
|
||||||
@ -889,13 +900,13 @@ public class CaseClinicalVideoService {
|
|||||||
qrCodeByte = userService.CreateUserCaseClinicalUnlimitedQrcode(String.valueOf(caseClinicalVideo.getVideoId()),2);
|
qrCodeByte = userService.CreateUserCaseClinicalUnlimitedQrcode(String.valueOf(caseClinicalVideo.getVideoId()),2);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// 不处理
|
// 不处理
|
||||||
throw new BusinessException("-1", "无法完成此操作");
|
throw new BusinessException("-1", "无法完成此操作1");
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
// 下载二维码图片
|
// 下载二维码图片
|
||||||
qrCodeByte = Oss.getObjectToByte(caseClinicalVideo.getShareQrcode().replaceFirst("^/+", ""));
|
qrCodeByte = Oss.getObjectToByte(caseClinicalVideo.getShareQrcode().replaceFirst("^/+", ""));
|
||||||
if (qrCodeByte == null) {
|
if (qrCodeByte == null) {
|
||||||
throw new BusinessException("-1", "无法完成此操作");
|
throw new BusinessException("-1", "无法完成此操作2");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -904,7 +915,7 @@ public class CaseClinicalVideoService {
|
|||||||
|
|
||||||
// 下载头像
|
// 下载头像
|
||||||
byte[] avatarByte = new byte[0];
|
byte[] avatarByte = new byte[0];
|
||||||
if (caseClinicalDoctor.getAvatar() != null) {
|
if (caseClinicalDoctor.getAvatar() != null && caseClinicalDoctor.getAvatar() != "") {
|
||||||
avatarByte = Oss.getObjectToByte(caseClinicalDoctor.getAvatar().replaceFirst("^/+", ""));
|
avatarByte = Oss.getObjectToByte(caseClinicalDoctor.getAvatar().replaceFirst("^/+", ""));
|
||||||
}else{
|
}else{
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user