Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
huhu-partner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanchen
huhu-partner
Commits
a6271abd
Commit
a6271abd
authored
Jul 10, 2019
by
guanchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
0e42deca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UserAgentSqlProvider.java
...ava/com/lanren/huhu/partner/dao/UserAgentSqlProvider.java
+2
-2
No files found.
src/main/java/com/lanren/huhu/partner/dao/UserAgentSqlProvider.java
View file @
a6271abd
...
...
@@ -18,9 +18,9 @@ public class UserAgentSqlProvider {
"WHERE a.agent_id=#{agentId} and b.agent_level<=4"
;
}
public
String
getChildListByUserId
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"parentColumnName"
)
String
parentColumnName
)
{
return
"SELECT
b
.* "
+
return
"SELECT
a
.* "
+
"FROM user_agent a "
+
"JOIN user_agent b on a."
+
parentColumnName
+
"=b.agent_id "
+
"WHERE
a
.user_id=#{userId} and b.agent_level<=4"
;
"WHERE
b
.user_id=#{userId} and b.agent_level<=4"
;
}
}
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