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

mappers.GenDetailColumnConfigMapper.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="com.lframework.gen.mappers.GenDetailColumnConfigMapper">
    <resultMap id="GenDetailColumnConfigDto" type="com.lframework.gen.dto.dataobj.GenDetailColumnConfigDto">
        <id column="id" property="id"/>
        <result column="span" property="span"/>
        <result column="order_no" property="orderNo"/>
    </resultMap>

    <sql id="GenDetailColumnConfigDto_sql">
        SELECT
            g.id,
            g.span,
            g.order_no
        FROM gen_detail_column_config AS g
    </sql>
    <select id="getByIds" resultMap="GenDetailColumnConfigDto">
        <include refid="GenDetailColumnConfigDto_sql"/>
        WHERE g.id IN
        <foreach collection="ids" open="(" separator="," close=")" item="item">#{item}</foreach>
        ORDER BY g.order_no
    </select>
    <select id="getById" resultMap="GenDetailColumnConfigDto">
        <include refid="GenDetailColumnConfigDto_sql"/>
        WHERE g.id = #{id}
    </select>
</mapper>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy