inleft
2022-03-02 34223b096cf6ad9d92c3702bb9529e764f523b11
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>