This commit is contained in:
2025-12-30 13:47:53 +08:00
parent f1637501b2
commit a623c5673f
137 changed files with 11031 additions and 4043 deletions

View File

@@ -4,8 +4,8 @@
<resultMap id="BaseResultMap" type="com.klp.hrm.domain.HrmEmpOrgPosition">
<id column="rel_id" property="relId"/>
<result column="emp_id" property="empId"/>
<result column="org_id" property="orgId"/>
<result column="position_id" property="positionId"/>
<result column="dept_id" property="deptId"/>
<result column="post_id" property="postId"/>
<result column="is_primary" property="isPrimary"/>
<result column="start_date" property="startDate"/>
<result column="end_date" property="endDate"/>
@@ -16,4 +16,34 @@
<result column="update_time" property="updateTime"/>
<result column="del_flag" property="delFlag"/>
</resultMap>
<resultMap id="VoResultMap" type="com.klp.hrm.domain.vo.HrmEmpOrgPositionVo">
<id column="rel_id" property="relId"/>
<result column="emp_id" property="empId"/>
<result column="dept_id" property="deptId"/>
<result column="dept_name" property="deptName"/>
<result column="post_id" property="postId"/>
<result column="post_name" property="postName"/>
<result column="is_primary" property="isPrimary"/>
<result column="start_date" property="startDate"/>
<result column="end_date" property="endDate"/>
<result column="remark" property="remark"/>
<result column="create_by" property="createBy"/>
<result column="create_time" property="createTime"/>
<result column="update_by" property="updateBy"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<sql id="selectVo">
SELECT
r.rel_id, r.emp_id, r.dept_id, r.post_id, r.is_primary,
r.start_date, r.end_date, r.remark,
r.create_by, r.create_time, r.update_by, r.update_time,
d.dept_name,
p.post_name
FROM hrm_emp_org_position r
LEFT JOIN sys_dept d ON r.dept_id = d.dept_id AND d.del_flag = '0'
LEFT JOIN sys_post p ON r.post_id = p.post_id
WHERE r.del_flag = 0
</sql>
</mapper>