mapper.ConfigurationMapperPlus.xml Maven / Gradle / Ivy
<?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