| | |
| | | <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> |