From baa11d154e41d24a790596899b329faaa19b24be Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Wed, 13 Nov 2019 09:31:40 +0800 Subject: [PATCH] update污染溯源 --- src/main/java/com/moral/mapper/AccountMapper.java | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/moral/mapper/AccountMapper.java b/src/main/java/com/moral/mapper/AccountMapper.java index 6d2c135..bdd0b89 100644 --- a/src/main/java/com/moral/mapper/AccountMapper.java +++ b/src/main/java/com/moral/mapper/AccountMapper.java @@ -3,14 +3,29 @@ import java.util.List; import java.util.Map; -import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import com.moral.common.mapper.BaseMapper; import com.moral.entity.Account; -import com.moral.entity.AccountExample; +import com.moral.entity.Menu; +import com.moral.entity.Role; -@Mapper -public interface AccountMapper extends BaseMapper<Account, AccountExample, Integer> { +public interface AccountMapper extends BaseMapper<Account> { List<Map<String, Object>> getRoleNameByAccountId(Integer accountId); + + Account getByAccountName(String name); + + Map<String, Object> getOrganizationIdByAccountId(Integer accountId); + + List<Account> getAccountList(@Param("accountName") String accountName); + + List<Role> getRolesByAccountName(@Param("accountName") String accountName); + + List<Menu> getParentMenuListsByAccountName(@Param("accountName") String accountName); + + String getEmailByAccountName(@Param("accountName") String accountName); + + List<Menu> getChildMenuIdsByAccountName(@Param("accountName") String accountName, @Param("id") Integer id); + } \ No newline at end of file -- Gitblit v1.8.0