#
LSH
2023-11-16 d051d72b3c8c91ce415b33efc9ee560c6aa29e5d
src/main/resources/mapper/ConfigMapper.xml
@@ -13,4 +13,17 @@
    </resultMap>
    <select id="selectByCode" resultMap="BaseResultMap">
        select top 1 * from sys_config
        where code = #{code}
    </select>
    <select id="selectByCodes" resultMap="BaseResultMap">
        select * from sys_config
        where code in
        <foreach item="item" collection="codes" index="index"  separator="," open="(" close=")">
            #{item}
        </foreach>
    </select>
</mapper>