|
@@ -5,6 +5,7 @@ import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseMenuMapper;
|
|
|
import com.zhongzheng.modules.course.service.IMajorService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseChapterVo;
|
|
@@ -85,6 +86,9 @@ public class UserCertificateServiceImpl extends ServiceImpl<UserCertificateMappe
|
|
|
if(Validator.isEmpty(userCertificateVo)){
|
|
|
throw new CustomException("证书不存在");
|
|
|
}
|
|
|
+ if(Validator.isNotEmpty(userCertificateVo.getTenantId())){
|
|
|
+ ServletUtils.getResponse().setHeader("TenantId",userCertificateVo.getTenantId());
|
|
|
+ }
|
|
|
MajorVo majorVo = iMajorService.queryById(userCertificateVo.getMajorId());
|
|
|
if(Validator.isEmpty(majorVo)){
|
|
|
throw new CustomException("专业不存在");
|