Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Commits
44052473
Commit
44052473
authored
Mar 07, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:漏了select
parent
a28a0a76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
groupPower.go
domain/model/groupPower_m/groupPower.go
+1
-2
No files found.
domain/model/groupPower_m/groupPower.go
View file @
44052473
...
...
@@ -653,7 +653,7 @@ func GetUserGroupPower(model *domain.Model, userId uint64) (uint64, string, erro
func
GetGroupPowerGroups
(
model
*
domain
.
Model
,
groupPowerId
mysql
.
ID
)
([]
*
group_m
.
GroupInfo
,
error
)
{
var
res
[]
*
group_m
.
GroupInfo
var
ownerIds
[]
mysql
.
ID
if
err
:=
model
.
DB
()
.
Model
(
GroupPowerUser
{})
.
Where
(
"group_power_id = ?"
,
groupPowerId
)
.
Scan
(
&
ownerIds
)
.
Error
;
err
!=
nil
{
if
err
:=
model
.
DB
()
.
Model
(
GroupPowerUser
{})
.
Select
(
"user_id"
)
.
Where
(
"group_power_id = ?"
,
groupPowerId
)
.
Scan
(
&
ownerIds
)
.
Error
;
err
!=
nil
{
model
.
Log
.
Errorf
(
"GetGroupPowerGroups fail:%v"
,
err
)
return
nil
,
err
}
...
...
@@ -666,4 +666,3 @@ func GetGroupPowerGroups(model *domain.Model, groupPowerId mysql.ID) ([]*group_m
}
return
res
,
nil
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment