|
|
@@ -132,7 +132,7 @@ public class NoticeServiceImpl implements NoticeService{
|
|
|
List<SchoolNoticer> noticers = noticeMapper.selectNoticer(BaseContextHolder.getSchoolId());
|
|
|
//模板信息
|
|
|
SchoolTemplate template = schoolTemplateMapper.selectByCode(NoticeTemplate.HOMEWORK_NOTICE.getCode(), school.getSchool_id());
|
|
|
- if (org.springframework.util.StringUtils.isEmpty(template.getSt_templateid())) {
|
|
|
+ if (StringUtils.isEmpty(template) || StringUtils.isEmpty(template.getSt_templateid())) {
|
|
|
throw new BizException(BizExceptionCode.NULL_TEMPLATE);
|
|
|
}
|
|
|
noticers.forEach(noticer -> {
|