Commit 2972cc9d by houseme

添加UserService

parent 818e8ee1
......@@ -16,6 +16,7 @@ import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
/**
* @author houseme
......@@ -216,6 +217,10 @@ public class UserManager {
return parentAgent;
}
public List<PartnerAccount> getPartnerAccountArrayList(Integer userId){
return partnerAccountService.getChildrenByUserId(userId);
}
/**
* 根据输入的用户id, 刷新这个用户以及他邀请关系的所有下级的邀请关系
* @param userId
......
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
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 */@Servicepublic class UserServiceImpl implements UserService { @Autowired private UserAgentMapper userAgentMapper; @Autowired private PartnerAccountMapper partnerAccountMapper;}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment