| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- package com.dgtly.system.mapper;
- import java.util.List;
- import java.util.Map;
- import java.util.Set;
- import com.dgtly.system.domain.SysUser;
- import com.dgtly.system.domain.UserVO;
- import org.apache.ibatis.annotations.MapKey;
- import org.apache.ibatis.annotations.Param;
- /**
- * 用户表 数据层
- *
- * @author dgtly
- */
- public interface SysUserMapper
- {
- /**
- * 查询所有用户LoginName
- *
- * @return 用户信息集合信息
- */
- public Set<String> selectAllUserLoginName();
- public Set<String> selectDiyUserLoginName();
- /**
- * 根据条件分页查询用户列表
- *
- * @param sysUser 用户信息
- * @return 用户信息集合信息
- */
- public List<SysUser> selectUserList(SysUser sysUser);
- /**
- * 根据条件分页查询未已配用户角色列表
- *
- * @param user 用户信息
- * @return 用户信息集合信息
- */
- public List<SysUser> selectAllocatedList(SysUser user);
- /**
- * 根据条件分页查询未分配用户角色列表
- *
- * @param user 用户信息
- * @return 用户信息集合信息
- */
- public List<SysUser> selectUnallocatedList(SysUser user);
- /**
- * 通过用户名查询用户
- *
- * @param userName 用户名
- * @return 用户对象信息
- */
- public SysUser selectUserByLoginName(String userName);
- /**
- * 通过用户名与用户类型查询用户-立邦员工
- *
- * @param userName 用户名
- * @return 用户对象信息
- */
- public SysUser selectUserByTypeOne(String userName);
- /**
- * 通过用户名与用户类型查询用户-经销商
- *
- * @param userName 用户名
- * @return 用户对象信息
- */
- public SysUser selectUserByTypeTwo(String userName);
- public List<String> selectUserByIsManager(@Param("isCustomerManager") Integer isCustomerManager);
- /**
- *
- * 查询有道接口的经销商用户
- * @return 用户对象信息
- */
- public List<SysUser> selectAllUser();
- /**
- * 通过手机号码查询用户
- *
- * @param phoneNumber 手机号码
- * @return 用户对象信息
- */
- public SysUser selectUserByPhoneNumber(String phoneNumber);
- /**
- * 通过邮箱查询用户
- *
- * @param email 邮箱
- * @return 用户对象信息
- */
- public SysUser selectUserByEmail(String email);
- /**
- * 通过用户ID查询用户
- *
- * @param userId 用户ID
- * @return 用户对象信息
- */
- public SysUser selectUserById(Long userId);
- /**
- * 通过用户ID删除用户
- *
- * @param userId 用户ID
- * @return 结果
- */
- public int deleteUserById(Long userId);
- /**
- * 批量删除用户信息
- *
- * @param ids 需要删除的数据ID
- * @return 结果
- */
- public int deleteUserByIds(Long[] ids);
- /**
- * 修改用户信息
- *
- * @param user 用户信息
- * @return 结果
- */
- public int updateUser(SysUser user);
- /**
- * 根据用户登录名修改用户信息
- *
- * @param user 用户信息
- * @return 结果
- */
- public int updateUserByLoginName(SysUser user);
- //修改认证状态
- public int updateIsAuthentication(@Param("isAuthentication") String isAuthentication,@Param("accountId") String accountId);
- /**
- * 修改全公司的状态
- *
- * @param companyId 公司编号
- * @param status 人员状态:0正常 2删除
- * @return 结果
- */
- public int changeStatus(@Param("companyId") Long companyId,@Param("status")Integer status);
- /**
- * 新增用户信息
- *
- * @param user 用户信息
- * @return 结果
- */
- public int insertUser(SysUser user);
- /**
- * 新增用户信息
- *
- * @param user 用户信息
- * @return 结果
- */
- public int insertUserNoKey(SysUser user);
- /**
- * 校验用户名称是否唯一
- *
- * @param loginName 登录名称
- * @return 结果
- */
- public int checkLoginNameUnique(@Param("loginName") String loginName);
- /**
- * 校验手机号码是否唯一
- *
- * @param phonenumber 手机号码
- * @return 结果
- */
- public SysUser checkPhoneUnique(@Param("phonenumber") String phonenumber,@Param("companyId") Long companyId);
- /**
- * 校验email是否唯一
- *
- * @param email 用户邮箱
- * @return 结果
- */
- public SysUser checkEmailUnique(@Param("email")String email,@Param("companyId") Long companyId);
- /**
- * 根据立邦员工id查找用户
- *
- * @param emplyeeId 立邦员工id
- * @return 结果
- */
- public SysUser selectUserByEmplyeeId(String emplyeeId);
- /**
- * 根据销售组织代码 获取所属的用户登陆名称
- *
- * @param customerCodes 经销商列表
- * @return 结果
- */
- @MapKey("customer_code")
- Map<String,Map<String,Object>> selectLoginNamesByCostumerCode(String[] customerCodes);
- /**
- * @description: 自提专用根据经销编码查询销售员,老板,财务,仓管等登录名
- * @param: [customerCodes]
- * @return: java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>
- * @author: njs
- * @date: 2023/5/15 14:30
- */
- @MapKey("customer_code")
- Map<String,Map<String,Object>> selectLoginNamesByOrgCodeSelf(String customerCode);
- String selectLoginNameByCustomerCode(String customerId);
- @MapKey("customer_code")
- Map<String,Map<String,Object>> selectLoginNamesByCustomerModelVO(@Param("customerCode") String customerCode,@Param("customerType") String customerType);
- /**
- * 根据销售组织代码 获取所属的用户登陆名称
- *
- * @param employeeCode 经销商列表
- * @return 结果
- */
- @MapKey("employee_code")
- Map<String,Map<String,Object>> selectLoginNamesByEmployeeCode(String[] employeeCode);
- /**
- * @description: 根据经销商code查询经销人员列表
- * @param: [orgCode]
- * @return: void
- * @author: qxm
- * @date: 2020/10/19 14:36
- */
- List<SysUser> selectUserByOrgCode(String orgCode);
- Map<String,Object> selectLoginNamesByCostumerCode1(String[] customerCodes);
- String getCustomNameByCode(String code);
- String selectSyncDateUser(@Param("type") Integer type);
- int insertUserRole(@Param("userId") Long userId, @Param("roleId") Long roleId);
- int deleteByLoginName(@Param("loginName") String loginName);
- List<SysUser> selectUser();
- List<UserVO> sendmailUnionUser();
- int deleteUserByLoginName(@Param("loginName") String loginName);
- public SysUser selectAllUserByUserId(@Param("userId")Long userId);
- }
|