From 06f622b85d24927adb499eb562b89f376e7dc752 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 19 一月 2026 17:52:01 +0800
Subject: [PATCH] 删除StaffJoinLeaveRecord相关代码
---
src/main/resources/mapper/staff/StaffLeaveMapper.xml | 64 ++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/staff/StaffLeaveMapper.xml b/src/main/resources/mapper/staff/StaffLeaveMapper.xml
new file mode 100644
index 0000000..c3faf41
--- /dev/null
+++ b/src/main/resources/mapper/staff/StaffLeaveMapper.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ruoyi.staff.mapper.StaffLeaveMapper">
+ <select id="staffLeaveListPage" resultType="com.ruoyi.staff.dto.StaffLeaveDto">
+ SELECT
+ staff_leave.*,
+ soj.staff_name as staffName,
+ soj.staff_state as staffState,
+ soj.staff_no as staffNo,
+ soj.sex as sex,
+ soj.native_place as nativePlace,
+ soj.adress as adress,
+ soj.first_study as firstStudy,
+ soj.profession as profession,
+ soj.identity_card as identityCard,
+ soj.age as age,
+ soj.phone as phone,
+ soj.emergency_contact as emergencyContact,
+ soj.emergency_contact_phone as emergencyContactPhone,
+ sp.post_name as postName,
+ sd.dept_name as deptName
+ FROM staff_leave
+ LEFT JOIN
+ staff_on_job soj ON soj.id = staff_leave.staff_on_job_id
+ LEFT JOIN
+ sys_post sp ON sp.post_id = soj.sys_post_id
+ LEFT JOIN
+ sys_dept sd ON sd.dept_id = soj.sys_dept_id
+ where 1=1
+ <if test="c.staffName != null and c.staffName != '' ">
+ AND soj.staff_name LIKE CONCAT('%',#{c.staffName},'%')
+ </if>
+ </select>
+ <select id="staffLeaveList" resultType="com.ruoyi.staff.dto.StaffLeaveDto">
+ SELECT
+ staff_leave.*,
+ soj.staff_name as staffName,
+ soj.staff_state as staffState,
+ soj.staff_no as staffNo,
+ soj.sex as sex,
+ soj.native_place as nativePlace,
+ soj.adress as adress,
+ soj.first_study as firstStudy,
+ soj.profession as profession,
+ soj.identity_card as identityCard,
+ soj.age as age,
+ soj.phone as phone,
+ soj.emergency_contact as emergencyContact,
+ soj.emergency_contact_phone as emergencyContactPhone,
+ sp.post_name as postName,
+ sd.dept_name as deptName
+ FROM staff_leave
+ LEFT JOIN
+ staff_on_job soj ON soj.id = staff_leave.staff_on_job_id
+ LEFT JOIN
+ sys_post sp ON sp.post_id = soj.sys_post_id
+ LEFT JOIN
+ sys_dept sd ON sd.dept_id = soj.sys_dept_id
+ where 1=1
+ <if test="c.staffName != null and c.staffName != '' ">
+ AND soj.staff_name LIKE CONCAT('%',#{c.staffName},'%')
+ </if>
+ </select>
+</mapper>
--
Gitblit v1.9.3