|
@@ -19,17 +19,18 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
* @Date: 2019/9/17
|
|
* @Date: 2019/9/17
|
|
* 根据部门获取下面的员工
|
|
* 根据部门获取下面的员工
|
|
*/
|
|
*/
|
|
- List<EmployeeDto> queryEmployByOrganId(Map<String,Object> params);
|
|
|
|
|
|
+ List<EmployeeDto> queryEmployByOrganId(Map<String, Object> params);
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Author: Joburgess
|
|
* @Author: Joburgess
|
|
* @Date: 2019/9/17
|
|
* @Date: 2019/9/17
|
|
* 部门员工统计
|
|
* 部门员工统计
|
|
*/
|
|
*/
|
|
- int queryEmployByOrganIdCount(Map<String,Object> params);
|
|
|
|
|
|
+ int queryEmployByOrganIdCount(Map<String, Object> params);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改密码
|
|
* 修改密码
|
|
|
|
+ *
|
|
* @param userID
|
|
* @param userID
|
|
* @param password
|
|
* @param password
|
|
*/
|
|
*/
|
|
@@ -51,8 +52,10 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
* 修改用户离职日期
|
|
* 修改用户离职日期
|
|
*/
|
|
*/
|
|
int updateUserDemissionDate(@Param("userID") Integer userID);
|
|
int updateUserDemissionDate(@Param("userID") Integer userID);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 根据手机号查询对象
|
|
* 根据手机号查询对象
|
|
|
|
+ *
|
|
* @param phone
|
|
* @param phone
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -60,46 +63,50 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 删除用户角色
|
|
* 删除用户角色
|
|
|
|
+ *
|
|
* @param userId
|
|
* @param userId
|
|
*/
|
|
*/
|
|
void delEmployeeRole(Integer userId);
|
|
void delEmployeeRole(Integer userId);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 批量新增用户角色
|
|
* 批量新增用户角色
|
|
|
|
+ *
|
|
* @param id
|
|
* @param id
|
|
* @param roleIds
|
|
* @param roleIds
|
|
*/
|
|
*/
|
|
- void batchAddEmployeeRole(@Param("userId") Integer id, @Param("roleIds")List<Integer> roleIds);
|
|
|
|
|
|
+ void batchAddEmployeeRole(@Param("userId") Integer id, @Param("roleIds") List<Integer> roleIds);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取用户权限列表
|
|
* 获取用户权限列表
|
|
|
|
+ *
|
|
* @param userId
|
|
* @param userId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
List<Integer> queryUserRole(Integer userId);
|
|
List<Integer> queryUserRole(Integer userId);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param roleIds: 角色编号列表
|
|
|
|
+ * @param organIds: 部门编号列表
|
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.SimpleUserDto>
|
|
* @describe 根据角色和用户查找用户
|
|
* @describe 根据角色和用户查找用户
|
|
* @author Joburgess
|
|
* @author Joburgess
|
|
* @date 2020/3/12
|
|
* @date 2020/3/12
|
|
- * @param roleIds: 角色编号列表
|
|
|
|
- * @param organIds: 部门编号列表
|
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.SimpleUserDto>
|
|
|
|
*/
|
|
*/
|
|
List<SimpleUserDto> findByRole(@Param("roleIds") String roleIds,
|
|
List<SimpleUserDto> findByRole(@Param("roleIds") String roleIds,
|
|
@Param("organIds") String organIds);
|
|
@Param("organIds") String organIds);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param userIds:
|
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.SimpleUserDto>
|
|
* @describe 根据用户编号获取用户
|
|
* @describe 根据用户编号获取用户
|
|
* @author Joburgess
|
|
* @author Joburgess
|
|
* @date 2020/3/12
|
|
* @date 2020/3/12
|
|
- * @param userIds:
|
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.SimpleUserDto>
|
|
|
|
*/
|
|
*/
|
|
List<SimpleUserDto> findByIds(@Param("userIds") List<Integer> userIds);
|
|
List<SimpleUserDto> findByIds(@Param("userIds") List<Integer> userIds);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 是否有课程组关联的教务老师
|
|
* 是否有课程组关联的教务老师
|
|
|
|
+ *
|
|
* @param employeeId
|
|
* @param employeeId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -107,13 +114,15 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改知道老师的教务老师关联
|
|
* 修改知道老师的教务老师关联
|
|
|
|
+ *
|
|
* @param currentUserId
|
|
* @param currentUserId
|
|
* @param targetUserId
|
|
* @param targetUserId
|
|
*/
|
|
*/
|
|
void updateEducationTeacherId(@Param("currentUserId") Integer currentUserId, @Param("targetUserId") Integer targetUserId);
|
|
void updateEducationTeacherId(@Param("currentUserId") Integer currentUserId, @Param("targetUserId") Integer targetUserId);
|
|
|
|
|
|
/**
|
|
/**
|
|
- *是否有未上的课
|
|
|
|
|
|
+ * 是否有未上的课
|
|
|
|
+ *
|
|
* @param employeeId
|
|
* @param employeeId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -121,6 +130,7 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取维修技师所在分部
|
|
* 获取维修技师所在分部
|
|
|
|
+ *
|
|
* @param userId
|
|
* @param userId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -128,6 +138,7 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 教务老师所在分部列表
|
|
* 教务老师所在分部列表
|
|
|
|
+ *
|
|
* @param userId
|
|
* @param userId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -135,6 +146,7 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 运营主管所在分部列表
|
|
* 运营主管所在分部列表
|
|
|
|
+ *
|
|
* @param userId
|
|
* @param userId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -142,6 +154,7 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 乐队指导所在分部列表
|
|
* 乐队指导所在分部列表
|
|
|
|
+ *
|
|
* @param userId
|
|
* @param userId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -149,7 +162,8 @@ public interface EmployeeDao extends BaseDAO<Integer, Employee> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 员工离职
|
|
* 员工离职
|
|
|
|
+ *
|
|
* @param employeeLevelDtos
|
|
* @param employeeLevelDtos
|
|
*/
|
|
*/
|
|
- void employeeLevel(List<EmployeeLevelDto> employeeLevelDtos);
|
|
|
|
|
|
+ void employeeLevel(@Param("employeeLevelDtos") List<EmployeeLevelDto> employeeLevelDtos);
|
|
}
|
|
}
|