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
2972cc9d
Commit
2972cc9d
authored
Jun 28, 2019
by
houseme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加UserService
parent
818e8ee1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
UserManager.java
...ain/java/com/lanren/huhu/partner/manager/UserManager.java
+5
-0
UserService.java
...ain/java/com/lanren/huhu/partner/service/UserService.java
+2
-0
UserServiceImpl.java
...com/lanren/huhu/partner/service/impl/UserServiceImpl.java
+2
-0
No files found.
src/main/java/com/lanren/huhu/partner/manager/UserManager.java
View file @
2972cc9d
...
@@ -16,6 +16,7 @@ import org.springframework.cache.annotation.Cacheable;
...
@@ -16,6 +16,7 @@ import org.springframework.cache.annotation.Cacheable;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* @author houseme
* @author houseme
...
@@ -216,6 +217,10 @@ public class UserManager {
...
@@ -216,6 +217,10 @@ public class UserManager {
return
parentAgent
;
return
parentAgent
;
}
}
public
List
<
PartnerAccount
>
getPartnerAccountArrayList
(
Integer
userId
){
return
partnerAccountService
.
getChildrenByUserId
(
userId
);
}
/**
/**
* 根据输入的用户id, 刷新这个用户以及他邀请关系的所有下级的邀请关系
* 根据输入的用户id, 刷新这个用户以及他邀请关系的所有下级的邀请关系
* @param userId
* @param userId
...
...
src/main/java/com/lanren/huhu/partner/service/UserService.java
0 → 100644
View file @
2972cc9d
package
com
.
lanren
.
huhu
.
partner
.
service
;
/** * @author houseme * @date 2019-06-28 18:35 * @Project partner * @Package com.lanren.huhu.partner.service * @File: UserService */
public
interface
UserService
{
}
\ No newline at end of file
src/main/java/com/lanren/huhu/partner/service/impl/UserServiceImpl.java
0 → 100644
View file @
2972cc9d
package
com
.
lanren
.
huhu
.
partner
.
service
.
impl
;
import
com.lanren.huhu.partner.dao.PartnerAccountMapper
;
import
com.lanren.huhu.partner.dao.UserAgentMapper
;
import
com.lanren.huhu.partner.service.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/** * @author houseme * @date 2019-06-28 18:36 * @Project partner * @Package com.lanren.huhu.partner.service.impl * @File: UserServiceImpl */
@Service
public
class
UserServiceImpl
implements
UserService
{
@Autowired
private
UserAgentMapper
userAgentMapper
;
@Autowired
private
PartnerAccountMapper
partnerAccountMapper
;
}
\ No newline at end of file
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