Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public Rsp<RangedResultSet<AppBuilderAppMetadataDto>> list(AppQueryCondition con
if (cond == null) {
cond = new AppQueryCondition();
}
cond.setCreateBy(context.getOperator());
if (this.isEnableDomainDivision) {
cond.setUserGroupId(this.domainDivisionService.getUserGroupId());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
#{excludeName}
</foreach>
</if>
<if test="cond.userGroupId == null and cond.createBy != null">
and create_by = #{cond.createBy}
</if>
<if test='cond.userGroupId != null'>
and (user_group_id = #{cond.userGroupId} or user_group_id = '*')
</if>
Expand Down Expand Up @@ -202,6 +205,9 @@
<if test="cond.appCategory != null">
and app_category = #{cond.appCategory}
</if>
<if test="cond.userGroupId == null and cond.createBy != null">
and create_by = #{cond.createBy}
</if>
<if test='cond.userGroupId != null'>
and (user_group_id = #{cond.userGroupId} or user_group_id = '*')
</if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
<if test="cond.tenantId != null">
and tenant_id = #{cond.tenantId}
</if>
<if test="cond.userGroupId == null and cond.createBy != null">
and create_by = #{cond.createBy}
</if>
<if test='cond.userGroupId != null'>
and (user_group_id = #{cond.userGroupId} or user_group_id = '*')
</if>
Expand Down Expand Up @@ -129,6 +132,9 @@
<if test="cond.tenantId != null">
and tenant_id = #{cond.tenantId}
</if>
<if test="cond.userGroupId == null and cond.createBy != null">
and create_by = #{cond.createBy}
</if>
<if test='cond.userGroupId != null'>
and (user_group_id = #{cond.userGroupId} or user_group_id = '*')
</if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ create table if not exists app_builder_form
is_deleted int2 DEFAULT 0,
form_suite_id varchar(64) not null,
version varchar(64) not null,
user_group_id varchar(64) NULL
user_group_id varchar(64)
);

create table if not exists app_builder_form_property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ create table if not exists store_app
"app_category" varchar(16) default 'chatbot',
"tool_name" varchar(256) not null,
"tool_unique_name" varchar(36) not null,
"user_group_id" varchar(64) not null,
"user_group_id" varchar(64),
unique("tool_unique_name")
);
create index if not exists fast_query_app on store_app ("tool_unique_name");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ create table if not exists store_plugin_tool
"tool_unique_name" varchar(36) not null,
"source" varchar(16) default '' not null,
"icon" text,
"user_group_id" varchar(64) not null,
"user_group_id" varchar(64),
unique("plugin_id", "tool_unique_name")
);
comment on column store_plugin_tool.id is '插件工具的自增主键';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ create table if not exists store_plugin
"is_builtin" boolean default false not null,
"source" varchar(16) default '' not null,
"icon" text,
"user_group_id" varchar(64) not null,
"user_group_id" varchar(64),
unique ("plugin_id")
);
create index if not exists query_plugin ON store_plugin ("is_builtin");
Expand Down