From c9e784140d837cb27a4f93935b08bbb739d47c8e Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期三, 13 八月 2025 17:08:14 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/pim_yys' --- src/main/resources/mapper/lavorissue/LavorIssueMapper.xml | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/lavorissue/LavorIssueMapper.xml b/src/main/resources/mapper/lavorissue/LavorIssueMapper.xml new file mode 100644 index 0000000..88cf9aa --- /dev/null +++ b/src/main/resources/mapper/lavorissue/LavorIssueMapper.xml @@ -0,0 +1,30 @@ +<?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.lavorissue.mapper.LavorIssueMapper"> + + <select id="listPage" resultType="com.ruoyi.lavorissue.pojo.LaborIssue"> + select + t1.*, + t2.staff_name as staffName, + t2.staff_no as staffNo, + t3.dict_label as dictName + from labor_issue t1 + left join staff_join_leave_record t2 on t1.staff_id = t2.id + left join sys_dict_data t3 on t1.dict_id = t3.dict_value + <where> + <if test="req.staffName != null and req.staffName != ''"> + and t2.staff_name like ('%',#{req.staffName},'%') + </if> + </where> + </select> + <select id="list" resultType="com.ruoyi.lavorissue.pojo.LaborIssue"> + select + t1.*, + t2.staff_name as staffName, + t2.staff_no as staffNo, + t3.dict_label as dictName + from labor_issue t1 + left join staff_join_leave_record t2 on t1.staff_id = t2.id + left join sys_dict_data t3 on t1.dict_id = t3.dict_value + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.3