commit
This commit is contained in:
@@ -83,6 +83,9 @@ public class SysMsgController {
|
|||||||
$condition
|
$condition
|
||||||
""");
|
""");
|
||||||
Cnd cnd = Cnd.NEW();
|
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");
|
cnd.groupBy("msg.id");
|
||||||
if (Strings.isNotBlank(searchType) && !"all".equals(searchType)) {
|
if (Strings.isNotBlank(searchType) && !"all".equals(searchType)) {
|
||||||
cnd.and("msg.type", "=", searchType);
|
cnd.and("msg.type", "=", searchType);
|
||||||
|
|||||||
Reference in New Issue
Block a user