From 16b704d18a875d1fb63827aaa507790ba2bef5be Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 23 四月 2024 11:44:13 +0800 Subject: [PATCH] JK最终代码提交 --- guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptMapper.xml | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptMapper.xml b/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptMapper.xml index c89d952..9d60810 100644 --- a/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptMapper.xml +++ b/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptMapper.xml @@ -29,9 +29,26 @@ <select id="list" resultType="map"> select * from sys_dept <if test="condition != null and condition != ''"> - where simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%') + where fullname like CONCAT('%',#{condition},'%') </if> order by num ASC </select> + <select id="getList" resultType="com.stylefeng.guns.modular.system.model.Dept"> + select t1.* from sys_dept t1 + where 1=1 + <if test="null != req.deptName and '' != req.deptName"> + and t1.fullname like CONCAT('%', #{req.deptName}, '%') + </if> + order by t1.insertTime desc + + </select> + <select id="getList1" resultType="com.stylefeng.guns.modular.system.model.Dept"> + select t1.* from sys_dept t1 + where 1=1 + <if test="null != req.deptName and '' != req.deptName"> + and t1.fullname like CONCAT('%', #{req.deptName}, '%') + </if> + order by t1.insertTime desc + </select> </mapper> -- Gitblit v1.7.1