All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mapper.ConfigurationMapperPlus.xml Maven / Gradle / Ivy

There is a newer version: 2.7.2
Show newest version
<?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="cn.ipokerface.admin.mapper.ConfigurationMapper">
    <select id="selectAll" resultType="cn.ipokerface.admin.model.ConfigurationModel">
    SELECT
        ID AS id,
        CODE AS code,
        NAME AS name,
        VALUE AS value,
        TYPE AS type,
        REMARK AS remark
    FROM CONFIGURATION
    </select>
    <update id="updateBatch" parameterType="list">
    <foreach collection="list" item="item">
        UPDATE CONFIGURATION SET VALUE = #{item.value} where CODE = #{item.code};
    </foreach>
    </update>
</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy