Skip to content

Commit 5e12985

Browse files
committed
fix:user tenant api
1 parent 2f00e73 commit 5e12985

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

base/src/main/java/com/tinyengine/it/model/entity/User.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ public class User {
6363
@Schema(name = "private_key", description = "私钥")
6464
private String privateKey;
6565

66-
@Schema(name = "use_tenant_id", description = "当前使用的租户ID")
67-
private Integer useTenantId;
68-
6966
@TableField("enable")
7067
@Schema(name = "enable", description = "账号是否可用")
7168
private Boolean isEnable;

base/src/main/resources/mappers/UserMapper.xml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- 通用查询列 -->
88
<sql id="Base_Column_List">
99
id
10-
, username, password, email, salt, public_key, private_key, use_tenant_id,enable, created_time, last_updated_time,
10+
, username, password, email, salt, public_key, private_key,enable, created_time, last_updated_time,
1111
is_admin, is_public
1212
</sql>
1313

@@ -49,9 +49,6 @@
4949
<if test="isPublic!=null">
5050
AND is_public = #{isPublic}
5151
</if>
52-
<if test="useTenantId!=null">
53-
AND use_tenant_id = #{useTenantId}
54-
</if>
5552
</sql>
5653

5754
<!-- 通用设置列 -->
@@ -83,9 +80,7 @@
8380
<if test="isPublic!=null">
8481
is_public = #{isPublic},
8582
</if>
86-
<if test="useTenantId!=null">
87-
use_tenant_id = #{useTenantId},
88-
</if>
83+
8984
</sql>
9085

9186

@@ -102,7 +97,6 @@
10297
<result column="last_updated_time" property="lastUpdatedTime"/>
10398
<result column="is_admin" property="isAdmin"/>
10499
<result column="is_public" property="isPublic"/>
105-
<result column="use_tenant_id" property="useTenantId"/>
106100

107101
</resultMap>
108102

@@ -166,7 +160,6 @@
166160
, salt
167161
, public_key
168162
, private_key
169-
, use_tenant_id
170163
, enable
171164
, created_time
172165
, last_updated_time
@@ -179,7 +172,6 @@
179172
, #{salt}
180173
, #{publicKey}
181174
, #{privateKey}
182-
, #{useTenantId}
183175
, #{isEnable}
184176
, #{createdTime}
185177
, #{lastUpdatedTime}

0 commit comments

Comments
 (0)