<?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.ruoyi.web.modules.trading.mapper.BizGradeWeightConfigMapper">

    <resultMap type="com.ruoyi.web.modules.trading.domain.BizGradeWeightConfig" id="BizGradeWeightConfigResult">
        <id     property="id"         column="id"/>
        <result property="gradeCode"  column="grade_code"/>
        <result property="gradeName"  column="grade_name"/>
        <result property="minWeight"  column="min_weight"/>
        <result property="maxWeight"  column="max_weight"/>
        <result property="sortOrder"  column="sort_order"/>
    </resultMap>

    <select id="selectAllOrderBySort" resultMap="BizGradeWeightConfigResult">
        select id, grade_code, grade_name, min_weight, max_weight, sort_order
        from biz_grade_weight_config
        order by sort_order asc, id asc
    </select>

</mapper>
