修改了资源路径5
This commit is contained in:
parent
68e4c8d592
commit
7a060c442e
@ -127,7 +127,7 @@ public class ClinicalController extends BaseController {
|
|||||||
certWrapper.eq(CaseClinicalDoctorCertModel::getType, 1);
|
certWrapper.eq(CaseClinicalDoctorCertModel::getType, 1);
|
||||||
CaseClinicalDoctorCertModel caseClinicalDoctorCert = caseClinicalDoctorCertDao.selectOne(certWrapper);
|
CaseClinicalDoctorCertModel caseClinicalDoctorCert = caseClinicalDoctorCertDao.selectOne(certWrapper);
|
||||||
if (caseClinicalDoctorCert != null){
|
if (caseClinicalDoctorCert != null){
|
||||||
dto.setCertImage(Replace.addOssDomain(dto.getCertImage()));
|
dto.setCertImage(Replace.addOssDomain(caseClinicalDoctorCert.getCertImage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ public class ClinicalController extends BaseController {
|
|||||||
certWrapper.eq(CaseClinicalDoctorCertModel::getType, 2);
|
certWrapper.eq(CaseClinicalDoctorCertModel::getType, 2);
|
||||||
CaseClinicalDoctorCertModel caseClinicalDoctorCert = caseClinicalDoctorCertDao.selectOne(certWrapper);
|
CaseClinicalDoctorCertModel caseClinicalDoctorCert = caseClinicalDoctorCertDao.selectOne(certWrapper);
|
||||||
if (caseClinicalDoctorCert != null){
|
if (caseClinicalDoctorCert != null){
|
||||||
dto.setCertImage(Replace.addOssDomain(dto.getCertImage()));
|
dto.setCertImage(Replace.addOssDomain(caseClinicalDoctorCert.getCertImage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -895,7 +895,6 @@ public class CaseClinicalVideoService {
|
|||||||
throw new BusinessException("-1", "无法完成此操作");
|
throw new BusinessException("-1", "无法完成此操作");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
userService.CreateUserCert(
|
userService.CreateUserCert(
|
||||||
String.valueOf(caseClinicalVideo.getVideoId()),
|
String.valueOf(caseClinicalVideo.getVideoId()),
|
||||||
2,
|
2,
|
||||||
|
|||||||
@ -31,7 +31,8 @@ public class CertService {
|
|||||||
String certificateNo,
|
String certificateNo,
|
||||||
String name,
|
String name,
|
||||||
String content,
|
String content,
|
||||||
byte[] qrCodeByte
|
byte[] qrCodeByte,
|
||||||
|
String doctorId
|
||||||
){
|
){
|
||||||
try {
|
try {
|
||||||
// 加载背景模板图片
|
// 加载背景模板图片
|
||||||
@ -102,9 +103,9 @@ public class CertService {
|
|||||||
|
|
||||||
String fileName = "";
|
String fileName = "";
|
||||||
if (Objects.equals(envConfig.getActive(), "dev")){
|
if (Objects.equals(envConfig.getActive(), "dev")){
|
||||||
fileName = "dev/static/images/" + certificateNo + ".png";
|
fileName = "dev/static/images/" + certificateNo + doctorId + ".png";
|
||||||
}else{
|
}else{
|
||||||
fileName = "prod/static/images/" + certificateNo + ".png";
|
fileName = "prod/static/images/" + certificateNo + doctorId + ".png";
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean uploaded = Oss.putObject(fileName, imageBytes);
|
boolean uploaded = Oss.putObject(fileName, imageBytes);
|
||||||
|
|||||||
@ -637,7 +637,8 @@ public class UserService {
|
|||||||
certificateNo,
|
certificateNo,
|
||||||
caseClinicalDoctor.getDoctorName(),
|
caseClinicalDoctor.getDoctorName(),
|
||||||
"您的案例《" + title + "》经评议,被肝胆相照临床病例库收录,特发此证",
|
"您的案例《" + title + "》经评议,被肝胆相照临床病例库收录,特发此证",
|
||||||
qrCodeByte
|
qrCodeByte,
|
||||||
|
doctorId
|
||||||
);
|
);
|
||||||
|
|
||||||
// 新增证书文件
|
// 新增证书文件
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user