cjl
2025-01-06 27e6bc3df3e39e0d0b147b155a89ad6837ea972b
screen-api/src/main/resources/mapper/SysDictTypeMapper.xml
@@ -18,4 +18,22 @@
        where t.is_delete = 0 and t.name = #{code} and t1.dataKey = #{id} and t1.is_delete = 0
        order by t1.create_time desc
    </select>
    <select id="selectIdList" resultType="com.moral.api.entity.SysDictData">
        select DISTINCT t1.id,t1.dict_type_id,t1.dataKey,t1.dataValue from sys_dict_type t
        left join sys_dict_data t1 on t1.dict_type_id = t.id
        where t.is_delete = 0 and t.name = #{code} and
        t1.dataKey in
        <foreach collection="ids" item="id" index="index" open="(" close=")" separator=",">
            #{id}
        </foreach>
         and t1.is_delete = 0
        order by t1.create_time desc
    </select>
    <select id="selectFind" resultType="com.moral.api.entity.SysDictType">
        select * from sys_dict_type
        where sys_dict_type.name= #{name} AND  is_delete = 0
    </select>
</mapper>