select schoolId,
case
when isRead = 1 then 1
else 0 end as haveReadNum
from notice_read
where noticeId = #{noticeId}
group by schoolId
select schoolId,
case
when isRead = 1 then 1
else 0 end as haveReadNum
from notice_read
where noticeId = #{noticeId}
group by schoolId
默認的:最高權限用戶:system 密碼:manager(我自己system) 管理員權限用戶:sys 密碼:change_on_install 普通用戶:scott