Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Logical delete #3968

Draft
wants to merge 52 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d4c81c2
Spotless Apply
Zzm0809 Nov 23, 2024
c7bec87
Merge branch 'dev' of https://github.com/DataLinkDC/dinky into dev
actions-user Nov 25, 2024
3102e0c
Merge branch 'dev' of https://github.com/DataLinkDC/dinky into dev
actions-user Nov 26, 2024
f619a41
Merge branch 'dev' of https://github.com/DataLinkDC/dinky into dev
actions-user Nov 27, 2024
a7c2dac
feat: Add a logical deletion field.
Zzm0809 Nov 27, 2024
a6d8ed2
Spotless Apply
Zzm0809 Nov 27, 2024
87be271
pref: Optimized down button icon
Zzm0809 Nov 27, 2024
6daad7c
Merge remote-tracking branch 'origin/logical_delete' into logical_delete
Zzm0809 Nov 27, 2024
25199f7
[Optimize][Web]Click the Tasks tab to switch to Service Synchronizati…
gaoyan1998 Nov 27, 2024
1d08cf3
[Bug] Fix the route redirection error on the welcome page (#3966)
gaoyan1998 Nov 27, 2024
20a44c4
[Optimization][dinky-getaway] Delete the previously failed cluster wh…
Jam804 Nov 27, 2024
1ee757c
[BugFix][Flink]Fix the Flink task to submit the session mode. (#3967)
zackyoungh Nov 27, 2024
4d0ffb2
[Bug][Web]Fix web npe (#3970)
gaoyan1998 Nov 27, 2024
4bb76f9
[Bug] Fix web clear bug (#3971)
gaoyan1998 Nov 27, 2024
198bf3e
[Optimization-3959][core] Optimize submit task print error log (#3960)
aiwenmo Nov 27, 2024
9ffea05
[]Optimize][Web]Optimize flink jar form select (#3972)
zackyoungh Nov 27, 2024
c5558a7
[Optimize][Pom]Optimize app package size (#3978)
zackyoungh Nov 28, 2024
3a4aaca
[Optimize][Web] Optimize the responsive layout of the login interface…
zackyoungh Nov 28, 2024
a4719f9
[BugFix][web] Fixed an error when using the copy button in the Resour…
zackyoungh Nov 28, 2024
9f44bcc
[Feature-3973][*] Release 1.2.0-rc4 (#3981)
aiwenmo Nov 28, 2024
4ed0d19
[Optimization][Data Development] variable suggestion optimization (#3…
MactavishCui Nov 28, 2024
737af39
[Feature][web] Add resource management to the datastudio page (#3986)
zackyoungh Dec 1, 2024
d69b4a3
[Optimize][Admin] Optimized the package size of the App and the rs pr…
zackyoungh Dec 1, 2024
fed6f3c
[Bug] [dinky-web] Issue with creating a new task with a subdirectory …
Jam804 Dec 1, 2024
2b9c8b7
[Optimization][dinky-getaway] Add Deployment status monitoring. (#3989)
Jam804 Dec 2, 2024
c210fc5
[Bug] [dinky-gateway] Restrictions on task names when running in Kube…
Jam804 Dec 2, 2024
5995aef
[Bug] Fix k8s test bug (#3997)
gaoyan1998 Dec 3, 2024
fcd472d
[BugFix][Web]Fix data development and introduce LESS to cause the glo…
zackyoungh Dec 3, 2024
6bb67c1
[Feature] Provide init tools (#3999)
Zzm0809 Dec 3, 2024
7c0e38e
[BugFix][Web]Fix data development, Flink jar task toolbar display (#4…
zackyoungh Dec 4, 2024
9254e4c
[Feature] support pgsql catalog (#4000)
Zzm0809 Dec 4, 2024
8c7d450
[Bug] Fix pg bug (#4009)
Zzm0809 Dec 5, 2024
1787178
[Optimization] Optimize some script (#4006)
Zzm0809 Dec 5, 2024
14cdaa2
[Optimization] Optimization scheduler request error assert method (#4…
Zzm0809 Dec 5, 2024
bda13fd
[Optimize] [dinky-gateway] Add default jobmanager.memory.process.size…
Jam804 Dec 6, 2024
89651a1
[BugFix][Admin]Fix dolphinscheduler calls dinky tasks and concurrent …
dagenjun Dec 6, 2024
b9088e1
[BugFix][Web]Fix the issue where the submitted job name remains uncha…
zackyoungh Dec 6, 2024
37af6a4
[Refactor][UDF]Refactor udf execute (#4017)
zackyoungh Dec 6, 2024
dbb808f
[BugFix] [Alert]Fix alert serializable (#4023)
zackyoungh Dec 6, 2024
4c984aa
[Optimize][Web] Optimize blood relationship acquisition, add Savepoin…
zackyoungh Dec 6, 2024
5b642a2
[Bug] Fix login bug (#4026)
gaoyan1998 Dec 7, 2024
60f7987
[Optimization] Optimization devops page ui (#4027)
gaoyan1998 Dec 7, 2024
38f6eeb
Merge remote-tracking branch 'origin/dev' into dev
Zzm0809 Dec 7, 2024
8e10614
逻辑删除
Zzm0809 Dec 7, 2024
bd1fd72
Spotless Apply
Zzm0809 Dec 7, 2024
6734e6d
处理 postgresql 的逻辑删除字段
Zzm0809 Dec 8, 2024
609b733
Spotless Apply
Zzm0809 Dec 8, 2024
78a9b05
处理 postgresql 的逻辑删除字段
Zzm0809 Dec 8, 2024
b80beb1
Merge remote-tracking branch 'origin/logical_delete' into logical_delete
Zzm0809 Dec 8, 2024
8b1021f
Spotless Apply
Zzm0809 Dec 8, 2024
3854c82
处理 postgresql 的逻辑删除字段
Zzm0809 Dec 8, 2024
73279e3
Merge remote-tracking branch 'origin/logical_delete' into logical_delete
Zzm0809 Dec 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dinky-admin/src/main/java/org/dinky/data/model/Dashboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
Expand Down Expand Up @@ -59,6 +60,10 @@ public class Dashboard extends Model<Dashboard> {
@ApiModelProperty(value = "Layouts", dataType = "String", example = "[]", notes = "Layouts of the metrics")
private String layouts;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@TableField(fill = FieldFill.INSERT)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonSerialize(using = LocalDateTimeSerializer.class)
Expand Down
5 changes: 2 additions & 3 deletions dinky-admin/src/main/java/org/dinky/data/model/LoginLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "LoginLog", description = "Login Log Information")
@TableName("dinky_sys_login_log")
Expand Down Expand Up @@ -85,9 +87,6 @@ public class LoginLog extends DateBaseEntity<LoginLog> implements Serializable {
@ApiModelProperty(value = "Message", dataType = "String", notes = "Additional message or details about the login")
private String msg;

@ApiModelProperty(value = "Is Deleted", dataType = "Boolean", notes = "Flag indicating if the login log is deleted")
private Boolean isDeleted;

@ApiModelProperty(value = "Access Time", dataType = "String", notes = "Timestamp indicating the time of login")
private LocalDateTime accessTime;
}
5 changes: 5 additions & 0 deletions dinky-admin/src/main/java/org/dinky/data/model/Metrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
Expand Down Expand Up @@ -93,6 +94,10 @@ public class Metrics extends Model<Metrics> {
notes = "Timestamp indicating the last update time of the metrics")
private LocalDateTime updateTime;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@TableField(exist = false)
private static final long serialVersionUID = 1L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

Expand All @@ -49,6 +50,10 @@ public class OperateLog implements Serializable {
notes = "Name of the operation module")
private String moduleName;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@ApiModelProperty(
value = "Business Type",
dataType = "Integer",
Expand Down
5 changes: 5 additions & 0 deletions dinky-admin/src/main/java/org/dinky/data/model/Resources.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
Expand Down Expand Up @@ -105,6 +106,10 @@ public class Resources extends Model<Resources> {
notes = "Flag indicating if the resource is a directory")
private Boolean isDirectory;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@TableField(fill = FieldFill.INSERT)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonSerialize(using = LocalDateTimeSerializer.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
Expand Down Expand Up @@ -95,6 +96,10 @@ public class Savepoints implements Serializable {
notes = "Timestamp indicating the creation time of the savepoint")
private LocalDateTime createTime;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "Creator", dataType = "String", notes = "Creator of the savepoint")
private Integer creator;
Expand Down
2 changes: 2 additions & 0 deletions dinky-admin/src/main/java/org/dinky/data/model/SysToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
Expand Down Expand Up @@ -60,6 +61,10 @@ public class TaskVersion implements Serializable {
@TableField(value = "task_id")
private Integer taskId;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@ApiModelProperty(value = "Version ID", dataType = "Integer", notes = "ID of the version")
@TableField(value = "version_id")
private Integer versionId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand Down Expand Up @@ -85,6 +86,10 @@ public class AlertHistory implements Serializable {
@JsonSerialize(using = LocalDateTimeSerializer.class)
private LocalDateTime createTime;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@TableField(fill = FieldFill.INSERT_UPDATE)
@ApiModelProperty(value = "Update Time", example = "2022-02-24 20:12:00", dataType = "LocalDateTime")
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
Expand Down Expand Up @@ -129,6 +130,10 @@ public class History implements Serializable {
@ApiModelProperty(value = "Group by count", dataType = "Integer")
private Long count;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@ApiModelProperty(hidden = true)
public JobInstance buildJobInstance() {
JobInstance jobInstance = new JobInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand Down Expand Up @@ -81,6 +82,10 @@ public class JobHistory implements Serializable {
@TableField(typeHandler = JSONObjectHandler.class)
private FlinkJobDetailInfo jobJson;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@ApiModelProperty(
value = "Exceptions JSON",
dataType = "String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
Expand Down Expand Up @@ -103,6 +104,10 @@ public class JobInstance implements Serializable {
@ApiModelProperty(value = "Error", dataType = "String", notes = "Error message associated with the job instance")
private String error;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.INSERT)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
Expand Down
6 changes: 0 additions & 6 deletions dinky-admin/src/main/java/org/dinky/data/model/rbac/Role.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ public class Role extends DateBaseEntity<Role> implements Serializable {
@ApiModelProperty(value = "Role Name", dataType = "String", example = "Administrator", notes = "Name of the role")
private String roleName;

@ApiModelProperty(
value = "Is Delete",
dataType = "Boolean",
notes = "Flag indicating if the role is marked as deleted")
private Boolean isDelete;

@ApiModelProperty(value = "Note", dataType = "String", notes = "Additional notes or details about the role")
private String note;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,4 @@ public class Tenant extends DateBaseEntity<Tenant> implements Serializable {
/** note */
@ApiModelProperty(value = "Tenant Note", required = true, dataType = "String", example = "Default")
private String note;

/** is delete */
@ApiModelProperty(value = "Is Delete", required = true, dataType = "Boolean", example = "false")
private Boolean isDelete;
}
5 changes: 0 additions & 5 deletions dinky-admin/src/main/java/org/dinky/data/model/rbac/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
Expand Down Expand Up @@ -80,10 +79,6 @@ public class User extends DateBaseEntity<User> implements Serializable {
@ApiModelProperty(value = "Enabled", dataType = "Boolean", notes = "Whether the user is enabled")
private Boolean enabled;

@ApiModelProperty(value = "Is Delete", dataType = "Boolean", notes = "Whether the user is deleted")
@TableLogic
private Boolean isDelete;

@ApiModelProperty(value = "Super Admin Flag", dataType = "Boolean", notes = "Whether the user is a super admin")
private Boolean superAdminFlag;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@
import java.sql.Connection;
import java.util.Properties;

import lombok.extern.slf4j.Slf4j;

@Intercepts({
@Signature(
type = StatementHandler.class,
method = "prepare",
args = {Connection.class, Integer.class})
})
@Slf4j
public class PostgreSQLPrepareInterceptor implements Interceptor {
@Override
public Object intercept(final Invocation invocation) throws Throwable {
Expand All @@ -45,6 +48,10 @@ public Object intercept(final Invocation invocation) throws Throwable {
Field field = boundSql.getClass().getDeclaredField("sql");
field.setAccessible(true);
field.set(boundSql, boundSql.getSql().replace("`", "\"").toLowerCase());
field.set(boundSql, boundSql.getSql().replaceAll("is_delete = 0", "is_delete = false"));
field.set(boundSql, boundSql.getSql().replaceAll("is_delete = 1", "is_delete = true"));
field.set(boundSql, boundSql.getSql().replaceAll("set is_delete = 0", "set is_delete = false"));
field.set(boundSql, boundSql.getSql().replaceAll("set is_delete = 1", "set is_delete = true"));
return invocation.proceed();
}

Expand Down
8 changes: 0 additions & 8 deletions dinky-admin/src/main/java/org/dinky/mapper/MenuMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ public interface MenuMapper extends SuperMapper<Menu> {

List<Menu> listAllMenus();

List<Menu> selectMenuList(Menu menu);

List<String> selectMenuPerms();

List<Menu> selectMenuListByUserId(Menu menu);

List<String> selectMenuPermsByUserId(Integer userId);
Expand All @@ -45,11 +41,7 @@ public interface MenuMapper extends SuperMapper<Menu> {

List<Menu> selectMenuTreeByUserId(@Param("userId") Integer userId);

List<Integer> selectMenuListByRoleId(Integer roleId);

int hasChildByMenuId(Integer menuId);

Menu checkMenuNameUnique(@Param("name") String name, @Param("parentId") Integer parentId);

List<String> selectMenuPermsByRoleId(Integer roleId);
}
6 changes: 0 additions & 6 deletions dinky-admin/src/main/java/org/dinky/mapper/RoleMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,13 @@
import org.dinky.mybatis.mapper.SuperMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/** role mapper interface */
@Mapper
public interface RoleMapper extends SuperMapper<Role> {

List<Role> getRoleByIds(@Param("roleIds") Set<Integer> roleIds);

List<Role> getRoleByTenantIdAndIds(@Param("tenantId") String tenantId, @Param("roleIds") Set<Integer> roleIds);

/**
* Query roles by user ID.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/** MenuMapper */
@Mapper
public interface RoleMenuMapper extends SuperMapper<RoleMenu> {

int checkMenuExistRole(Integer menuId);

int deleteRoleMenuByRoleId(Integer roleId);

int batchRoleMenu(List<RoleMenu> roleMenuList);
}
6 changes: 0 additions & 6 deletions dinky-admin/src/main/java/org/dinky/mapper/TaskMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@
@Mapper
public interface TaskMapper extends SuperMapper<Task> {

List<Task> queryOnLineTaskByDoneStatus(
@Param("parentIds") List<Integer> parentIds,
@Param("stepIds") List<Integer> stepIds,
@Param("includeNull") boolean includeNull,
@Param("jobStatuses") List<String> jobStatuses);

@InterceptorIgnore(tenantLine = "true")
Task getTaskByNameAndTenantId(@Param("name") String name, @Param("tenantId") Integer tenantId);

Expand Down
9 changes: 1 addition & 8 deletions dinky-admin/src/main/java/org/dinky/mapper/TenantMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@
import org.dinky.mybatis.mapper.SuperMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/** tenant mapper interface */
@Mapper
public interface TenantMapper extends SuperMapper<Tenant> {

List<Tenant> getTenantByIds(@Param("tenantIds") Set<Integer> tenantIds);
}
public interface TenantMapper extends SuperMapper<Tenant> {}
2 changes: 0 additions & 2 deletions dinky-admin/src/main/java/org/dinky/mapper/UserMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,5 @@
@Mapper
public interface UserMapper extends SuperMapper<User> {

Integer queryAdminUserByTenant(@Param("tenantId") Integer tenantId);

Integer recoveryUser(@Param("id") Integer userId);
}
Loading
Loading