inleft
2022-02-27 2782f3e576b56a9ca078055026394646d57440f8
commit | author | age
9bcb19 1 <?xml version="1.0" encoding="UTF-8"?>
I 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="vip.xiaonuo.sys.modular.dict.mapper.SysDictDataMapper">
4
5     <select id="getDictCodesByDictTypeCode" resultType="java.lang.String">
6         SELECT
7         dict.`code`
8         FROM
9         sys_dict_data dict
10         INNER JOIN sys_dict_type type ON dict.type_id = type.id
11         where type.code in
12         <foreach collection="array" index="index" item="i" open="(" separator="," close=")">
13             #{i}
14         </foreach>
15     </select>
16
17 </mapper>