/** * Copyright (c) 2018 人人开源 All rights reserved. *

* https://www.renren.io *

* 版权所有,侵权必究! */ package com.zt.modules.sys.dao; import com.zt.common.dao.BaseDao; import com.zt.core.context.User; import com.zt.core.sys.model.SysUser; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; import java.util.Map; /** * 系统用户 * * @author hehz */ @Mapper public interface SysUserDao extends BaseDao { List getList(Map params); SysUser getById(Long id); SysUser getByUsername(String username); List checkUserArea(Long userId, String localServer); List isGetByUsernameList(@Param("username") String username, @Param("unitid") Long unitid, @Param("code") String code, @Param("password") String password); List isDomainName(String code); void updateLogin(@Param("id") Long id, @Param("loginErrorCount") Integer loginErrorCount, @Param("isLocked") Integer isLocked, @Param("lastLoginErrorTime") Date lastLoginErrorTime); User userRoleInfo(@Param("userId") Long userId, @Param("username") String username, @Param("systemId") String systemId); String getRoles(Long userId); String getRoleNames(Long userId); List getByDeptIds(@Param("deptIds") List deptIds); SysUser getEntity(Long id); List getNewConnectUser(String newShipTeam); void updatePassword(SysUser entity); Integer checkTestHome(String systemId, Long userId); }