File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
server/api-service/lowcoder-domain/src/main/java/org/lowcoder/domain Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public boolean agencyProfile() {
132
132
public ApplicationQuery getQueryByViewModeAndQueryId (boolean isViewMode , String queryId ) {
133
133
return (isViewMode ? getLiveQueries () : getEditingQueries ())
134
134
.stream ()
135
- .filter (query -> queryId .equals (query .getId ()))
135
+ .filter (query -> queryId .equals (query .getId ()) || queryId . equals ( query . getGid ()) )
136
136
.findFirst ()
137
137
.orElseThrow (() -> new BizException (BizError .QUERY_NOT_FOUND , "LIBRARY_QUERY_NOT_FOUND" ));
138
138
}
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ public class ApplicationQuery {
17
17
18
18
private final String id ;
19
19
20
+ private final String gid ;
21
+
20
22
private final String name ;
21
23
22
24
private final BaseQuery baseQuery ;
@@ -27,13 +29,15 @@ public class ApplicationQuery {
27
29
28
30
@ JsonCreator
29
31
public ApplicationQuery (@ JsonProperty ("id" ) String id ,
32
+ @ JsonProperty ("gid" ) String gid ,
30
33
@ JsonProperty ("name" ) String name ,
31
34
@ JsonProperty ("datasourceId" ) String datasourceId ,
32
35
@ JsonProperty ("comp" ) Map <String , Object > queryConfig ,
33
36
@ JsonProperty ("triggerType" ) String triggerType ,
34
37
@ JsonProperty ("timeout" ) String timeoutStr ,
35
38
@ JsonProperty ("compType" ) String compType ) {
36
39
this .id = id ;
40
+ this .gid = gid ;
37
41
this .name = name ;
38
42
this .triggerType = triggerType ;
39
43
this .timeoutStr = timeoutStr ;
You can’t perform that action at this time.
0 commit comments