refactor: 更新 sys_menu 和 sys_role_menu 表,添加角色分配权限功能
This commit is contained in:
@@ -45,9 +45,6 @@ public class MybatisConfig {
|
||||
String type = dbType == null ? "mysql" : dbType.toLowerCase();
|
||||
if ("postgres".equals(type) || "postgresql".equals(type)) {
|
||||
mpDbType = DbType.POSTGRE_SQL;
|
||||
} else if ("dm".equals(type) || "dameng".equals(type)) {
|
||||
// 达梦更接近 Oracle 语法,这里选择 ORACLE 方言以获得较好兼容性
|
||||
mpDbType = DbType.ORACLE;
|
||||
}
|
||||
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(mpDbType));
|
||||
|
||||
@@ -71,7 +68,6 @@ public class MybatisConfig {
|
||||
public DatabaseIdProvider databaseIdProvider() {
|
||||
DatabaseIdProvider databaseIdProvider = new VendorDatabaseIdProvider();
|
||||
Properties properties = new Properties();
|
||||
properties.setProperty("DM", "dm");
|
||||
properties.setProperty("MySQL", "mysql");
|
||||
databaseIdProvider.setProperties(properties);
|
||||
return databaseIdProvider;
|
||||
|
||||
@@ -16,7 +16,7 @@ public enum NoticePublishStatusEnum implements IBaseEnum<Integer> {
|
||||
|
||||
UNPUBLISHED(0, "未发布"),
|
||||
PUBLISHED(1, "已发布"),
|
||||
REVoKED(-1, "已撤回");
|
||||
REVOKED(-1, "已撤回");
|
||||
|
||||
|
||||
private final Integer value;
|
||||
|
||||
@@ -250,7 +250,7 @@ public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> impleme
|
||||
throw new BusinessException("通知公告未发布或已撤回");
|
||||
}
|
||||
|
||||
notice.setPublishStatus(NoticePublishStatusEnum.REVoKED.getValue());
|
||||
notice.setPublishStatus(NoticePublishStatusEnum.REVOKED.getValue());
|
||||
notice.setRevokeTime(LocalDateTime.now());
|
||||
notice.setUpdateBy(SecurityUtils.getUserId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user