fix
Hentua
2023-04-25 2ccfd486a7e82b71bbac81d121a7c5dae752db4d
src/main/resources/mapper/modules/DataDictionaryCustomMapper.xml
@@ -32,11 +32,30 @@
    <select id="getAgentLevelOption" resultType="cc.mrbird.febs.mall.vo.AdminAgentLevelOptionTreeVo">
        select a.code id,a.description name from data_dictionary_custom a
        where a.type='AGENT_LEVEL' and a.code != 'ZERO_LEVEL'
        where a.type='AGENT_LEVEL_REQUIRE'
    </select>
    <select id="getRankAwardUpdateInfoById" resultType="cc.mrbird.febs.mall.vo.AdminRankAwardUpdateInfoVo">
        select a.* from data_dictionary_custom a
        where a.id =  #{id}
    </select>
    <update id="updateDicValueByTypeAndCode">
        update data_dictionary_custom
        set value=#{value}
        <where>
            1=1
            <if test="code != null and code != ''">
                and code = #{code}
            </if>
            <if test="type != null and type != ''">
                and type = #{type}
            </if>
        </where>
    </update>
    <select id="selectScorePoolCntForUpdate" resultType="cc.mrbird.febs.mall.entity.DataDictionaryCustom">
        select a.* from data_dictionary_custom a
        where a.type = #{type} and a.code = #{code} for update
    </select>
</mapper>