liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.basic.x01.system.mapper;
 
import java.util.List;
import java.util.Map;
 
import org.apache.ibatis.annotations.Param;
 
import com.basic.x01.system.model.TRegion;
import com.basic.x01.system.model.TSysOrg;
import com.basic.x01.system.model.TSysRole;
import com.basic.x01.system.model.TSysRoleFixed;
import com.basic.x01.system.model.TSysUser;
 
public interface SystemMapper {
    
    TSysUser getUserByLogin(String loginName, String password);
 
    List<String> getUserRoleActionList(String userId);
 
    TSysOrg getOrgByOrgId(String orgId);
 
    TSysRole getRoleByRoleId(String roleId);
    
    void updateUser(TSysUser user);
    
    /**
     * orgId => orgId<br/>
     * all =>Boolean false:只查询status='1'的;true:查询全部
     * @param  
     * @return
     */
    List<TSysUser> getUserListByOrgId(Map<String,Object> map);//String orgId, boolean all);
    
    /**
     * orgIdList => List &lt;String> orgIdList <br/>
     * all =>Boolean false:只查询status='1'的;true:查询全部
     * @param
     * @return
     */
    List<TSysUser> getUserListByOrgIdList(Map<String, Object> map);
    
    TSysUser getUserByLoginName(String loginName);
    
    void createUser(TSysUser user);
 
    List<TSysRole> getRoleListByOrgId(String orgId, boolean all);
 
    TSysUser getUserByUserId(String userId);
    
    List<TSysOrg> getOrgListByParOrgList(
            @Param("parOrgList") List<TSysOrg> parOrgList,
            @Param("orgType") String orgType);
    
    List<TRegion> getAllRegions(Map<String,Object> param);
 
    List<TSysOrg> getAllSchoolByOrgId(@Param("orgId") String orgId);
    
    List<TSysRoleFixed> getFixedRoleListByActionFor(
            @Param("actionFor") String actionFor,
            @Param("orgType") String orgType);
}