Helius
2022-05-19 54852835a9b1f9fe3574264fa9e2611f1d20e621
src/main/resources/mapper/modules/DataDictionaryCustomMapper.xml
@@ -39,4 +39,18 @@
        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>
</mapper>