浏览代码

获取通知科目和班级完善

tags/正式3.14.1
雍文秀 3 个月前
父节点
当前提交
9ea84cf8bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      sapi/src/main/resources/mapper/notice/NoticeUserMapper.xml

+ 1
- 1
sapi/src/main/resources/mapper/notice/NoticeUserMapper.xml 查看文件

@@ -52,7 +52,7 @@
52 52
         select nu.gradeid,nu.classid,nu.subjectid
53 53
         ,if(nu.classid is not null,(select concat(c.classname,'_',c.classtype,'-',c.classorder) from t_class c where c.classid=nu.classid)
54 54
             ,(select concat(s.subjectname,'_',s.subjectorder) from t_subject s where s.subjectid=nu.subjectid))username
55
-        from t_notice_user nu where noticeid=#{noticeid}
55
+        from t_notice_user nu where noticeid=#{noticeid} and (nu.classid is not null or nu.subjectid is not null)
56 56
         group by nu.gradeid,nu.classid,nu.subjectid
57 57
     </select>
58 58
 </mapper>

正在加载...
取消
保存