From c0869b3fbf71760199750cb208046692a34b3f2d Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 23 二月 2023 17:04:58 +0800 Subject: [PATCH] 1 --- src/main/resources/mapper/sys/DepMapper.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/sys/DepMapper.xml b/src/main/resources/mapper/sys/DepMapper.xml index db59005..a784c83 100644 --- a/src/main/resources/mapper/sys/DepMapper.xml +++ b/src/main/resources/mapper/sys/DepMapper.xml @@ -26,10 +26,10 @@ select * from lf.sys_dep where id = #{id} </select> - <select id="selectDepsByIds" resultType="com.lf.server.entity.ctrl.IdNameEntity"> - select id "id",fn_get_fullname(depcode, 1) "name" from lf.sys_dep where id in - <foreach item="id" collection="ids" index="index" open="(" separator="," close=")"> - #{id} + <select id="selectDepsByCodes" resultType="com.lf.server.entity.ctrl.IdNameEntity"> + select id "id",fn_get_fullname(code, 1) "name" from lf.sys_dep where code in + <foreach item="code" collection="codes" index="index" open="(" separator="," close=")"> + #{code} </foreach> </select> -- Gitblit v1.9.3