xiaoyong931011
2021-12-22 6c920885a9bc407f2f05e204ae9769631c4c80e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cc.mrbird.febs.video.mapper.DataDictionaryCustomMapper">
 
    <select id="selectApiVipCostByType" resultType="cc.mrbird.febs.video.vo.ApiVipCostVo">
        select
               a.code code,
               a.value value,
               a.description description
        from data_dictionary_custom a
        where a.type = #{type}
    </select>
 
    <select id="selectDataByTypeAndCode" resultType="cc.mrbird.febs.video.entity.DataDictionaryCustom">
        select * from data_dictionary_custom
        where type=#{type} and code=#{code}
    </select>
 
    <select id="selectByType" resultType="cc.mrbird.febs.video.entity.DataDictionaryCustom">
        select * from data_dictionary_custom
        where type=#{type}
    </select>
</mapper>