Browse Source

获取通知科目和班级完善

tags/正式3.14.1
雍文秀 3 months ago
parent
commit
9ea84cf8bf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sapi/src/main/resources/mapper/notice/NoticeUserMapper.xml

+ 1
- 1
sapi/src/main/resources/mapper/notice/NoticeUserMapper.xml View File

52
         select nu.gradeid,nu.classid,nu.subjectid
52
         select nu.gradeid,nu.classid,nu.subjectid
53
         ,if(nu.classid is not null,(select concat(c.classname,'_',c.classtype,'-',c.classorder) from t_class c where c.classid=nu.classid)
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
             ,(select concat(s.subjectname,'_',s.subjectorder) from t_subject s where s.subjectid=nu.subjectid))username
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
         group by nu.gradeid,nu.classid,nu.subjectid
56
         group by nu.gradeid,nu.classid,nu.subjectid
57
     </select>
57
     </select>
58
 </mapper>
58
 </mapper>

Loading…
Cancel
Save