From 29a0417eb3b695df5502d1cf055f4740f1fdcd9f Mon Sep 17 00:00:00 2001
From: 于紫祥_1901 <email@yuzixiang_1910>
Date: Wed, 11 Nov 2020 16:26:46 +0800
Subject: [PATCH] update 获取沧州device sql

---
 src/main/java/com/moral/mapper/AccountMapper.java |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/moral/mapper/AccountMapper.java b/src/main/java/com/moral/mapper/AccountMapper.java
index 05581d5..c3bfbed 100644
--- a/src/main/java/com/moral/mapper/AccountMapper.java
+++ b/src/main/java/com/moral/mapper/AccountMapper.java
@@ -3,13 +3,33 @@
 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);
+    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);
+
+    List<Menu> getScreenMenuListsByAccountName(@Param("accountName") String accountName);
+
+    Integer getScreenRoleByAccountName(@Param("accountName") String accountName);
+
 }
\ No newline at end of file

--
Gitblit v1.8.0