This commit is contained in:
@jyuhsin
2026-03-06 15:09:05 +08:00
parent 33bcdc42e7
commit cfe5002d8d
@@ -83,6 +83,9 @@ public class SysMsgController {
$condition
""");
Cnd cnd = Cnd.NEW();
if(!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
cnd.and("msg.createdBy", "=", SecurityUtil.getUserId());
}
cnd.groupBy("msg.id");
if (Strings.isNotBlank(searchType) && !"all".equals(searchType)) {
cnd.and("msg.type", "=", searchType);