From dd296baf6463522b0a534b2eb2bc920a3928cd54 Mon Sep 17 00:00:00 2001 From: 唐耀东 <18861537@qq.com> Date: 星期一, 23 五月 2022 15:27:26 +0800 Subject: [PATCH] 提交代码 --- ruoyi-oa/src/main/resources/mapper/oa/BsSchoolMapper.xml | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/ruoyi-oa/src/main/resources/mapper/oa/BsSchoolMapper.xml b/ruoyi-oa/src/main/resources/mapper/oa/BsSchoolMapper.xml index c5b1e9a..2ed663d 100644 --- a/ruoyi-oa/src/main/resources/mapper/oa/BsSchoolMapper.xml +++ b/ruoyi-oa/src/main/resources/mapper/oa/BsSchoolMapper.xml @@ -22,5 +22,26 @@ <result property="version" column="version"/> </resultMap> + <select id="exportList" resultType="com.ruoyi.oa.domain.vo.BsSchoolVo"> + select + a.id, + a.code, + a.name, + (select b.PROVINCE_NAME from bs_province b where a.province_code = b.PROVINCE_CODE) as provinceCode, + (select c.CITY_NAME from bs_city c where a.city_code = c.CITY_CODE) as cityCode, + a.school_run_level as schoolRunLevel, + a.discipline_scope as disciplineScope + from bs_school a + where + 1=1 + <if test="p.code != null and p.code != null"> + and a.code like concat('%', #{p.code}, '%') + </if> + <if test="p.name != null and p.name != null"> + and a.name like concat('%', #{p.name}, '%') + </if> + order by a.update_time desc + </select> + </mapper> -- Gitblit v1.9.1