YgglMainEmpMapper.java 3.35 KB
Newer Older
东州 翁 committed
1 2 3 4
package cn.timer.api.dao.yggl;

import java.util.List;

5
import org.apache.ibatis.annotations.Param;
东州 翁 committed
6 7 8
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9 10
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
东州 翁 committed
11 12 13

import cn.timer.api.bean.yggl.YgglMainEmp;
import cn.timer.api.config.annotation.UserBean;
14
import cn.timer.api.dto.yggl.EmpQuery;
东州 翁 committed
15 16 17
import cn.timer.api.dto.yggl.YgQueryDto;
import cn.timer.api.dto.yggl.YgbintuDto;
import cn.timer.api.dto.yggl.YgglCartogramDto;
lal committed
18
import cn.timer.api.dto.zzgl.DepartmentStaffDto;
东州 翁 committed
19 20 21

/**
 * 员工档案+统计图查询
翁国栋 committed
22
 *
东州 翁 committed
23 24 25 26 27 28 29 30 31
 * @author dsc 2019-11-23
 */
@Repository
public interface YgglMainEmpMapper extends BaseMapper<YgglMainEmp> {
	/**
	 * 人事仪表盘
	 * @param userBean
	 * @return
	 */
32
	List<YgbintuDto> rsybp(Integer orgCode);
翁国栋 committed
33

东州 翁 committed
34
	/**
35
	 * 查询当月离职人数
翁国栋 committed
36
	 * @param userBean
37 38 39
	 * @return
	 */
	Integer benyueLz(Integer orgCode);
翁国栋 committed
40

41 42
	/**
	 * 查询当月转正人数
翁国栋 committed
43
	 * @param userBean
44 45 46 47
	 * @return
	 */
	Integer benyueZz(Integer orgCode);
	/**
东州 翁 committed
48 49 50 51
	 * 查询员工信息
	 * @param userBean
	 * @return
	 */
52
	List<YgQueryDto> queryEmpMessage(@Param("orgCode") Integer orgCode, @Param("isInsure")Integer isInsure);
翁国栋 committed
53 54


东州 翁 committed
55 56
	/**
	 * 查询在职员工(试用员工人数+正式员工人数)
翁国栋 committed
57
	 * @param userBean
东州 翁 committed
58 59 60 61 62 63
	 * @return
	 */
	YgglCartogramDto queryInservice(UserBean userBean);

	/**
	 * 查询当月入职人数
翁国栋 committed
64
	 * @param userBean
东州 翁 committed
65 66 67 68 69 70
	 * @return
	 */
	YgglCartogramDto queryInduction(UserBean userBean);

	/**
	 * 查询本月转正人数
翁国栋 committed
71
	 * @param userBean
东州 翁 committed
72 73 74 75 76 77
	 * @return
	 */
	YgglCartogramDto queryPositive(UserBean userBean);

	/**
	 * 查询员工平均年龄
翁国栋 committed
78
	 * @param userBean
东州 翁 committed
79 80 81 82 83 84
	 * @return
	 */
	YgglCartogramDto queryAvgAge(UserBean userBean);

	/**
	 * 查询部门名称及人数
翁国栋 committed
85
	 * @param userBean
东州 翁 committed
86 87 88 89 90 91
	 * @return
	 */
	List<YgglCartogramDto> queryDepartmentNum(UserBean userBean);

	/**
	 * 查询岗位名称及人数
翁国栋 committed
92
	 * @param userBean
东州 翁 committed
93 94 95 96 97 98
	 * @return
	 */
	List<YgglCartogramDto> queryJobsNum(UserBean userBean);

	/**
	 * 学历及人数查询
翁国栋 committed
99
	 * @param userBean
东州 翁 committed
100 101 102 103 104 105
	 * @return
	 */
	List<YgglCartogramDto> queryEducation(UserBean userBean);

	/**
	 * 员工年龄分布查询
翁国栋 committed
106
	 * @param userBean
东州 翁 committed
107 108 109 110 111 112
	 * @return
	 */
	List<YgglCartogramDto> queryEmpAge(UserBean userBean);

	/**
	 * 籍贯统计(省份)人数分布查询
翁国栋 committed
113
	 * @param userBean
东州 翁 committed
114 115 116 117 118 119
	 * @return
	 */
	List<YgglCartogramDto> queryNativeplace(UserBean userBean);

	/**
	 * 员工工龄分布查询
翁国栋 committed
120
	 * @param userBean
东州 翁 committed
121 122 123
	 * @return
	 */
	List<YgglCartogramDto> queryWorkingAge(UserBean userBean);
124 125 126 127 128 129 130 131

	/**
	 * 员工列表
	 * @param page
	 * @param empQuery
	 * @return
	 */
	IPage<YgglMainEmp> selectME(Page<YgglMainEmp> page,@Param("param") EmpQuery empQuery);
翁国栋 committed
132

lal committed
133
	List<DepartmentStaffDto> DepartmentStaff(Integer orgcode,Integer upid);
翁国栋 committed
134

284718418@qq.com committed
135 136 137 138 139 140 141 142
	/**
	 * 查询在职员工数
	 * @param orgCode
	 * @param status 1在职 2全职 3试用期 4正式 5待离职 6已离职
	 * @return
	 */
	Integer selectEmpCount(Integer orgCode,Integer status);

143

翁国栋 committed
144
	List<YgglMainEmp> selectListByIds(@Param("array")String[] ids);
翁国栋 committed
145 146

	List<YgglMainEmp> selectListByIZjNum(@Param("array")String[] zjNum,@Param("orgCode") Integer orgCode);
翁国栋 committed
147 148

	int updateInsure(@Param("array")Integer[] ids);
东州 翁 committed
149
}