<?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.nantian.cloud.jljc.mapper.EcAbnormalVolatilityInfoMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.nantian.cloud.jljc.entity.EcAbnormalVolatilityInfo">
        <id column="id" property="id" />
        <result column="abnormal_volatility_id" property="abnormalVolatilityId" />
        <result column="data_table" property="dataTable" />
        <result column="data_content" property="dataContent" />
        <result column="unit_val" property="unitVal" />
        <result column="front_year_data" property="frontYearData" />
        <result column="this_year_data" property="thisYearData" />
        <result column="change_ratio" property="changeRatio" />
        <result column="warning_range" property="warningRange" />
        <result column="userid" property="userid"/>
        <result column="update_time" property="updateTime"/>
        <result column="del_flag" property="delFlag"/>
        <result column="dept_id" property="deptId"/>
        <result column="remark" property="remark"/>
        <result column="type" property="type"/>
        <result column="add_state" property="addState"/>
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, abnormal_volatility_id, data_table, data_content, unit_val, front_year_data, this_year_data, change_ratio, userid, update_time, del_flag, dept_id, remark, type, add_state
    </sql>

    <select id="getByAid" resultType="com.nantian.cloud.jljc.entity.EcAbnormalVolatilityInfo">
        select
        <include refid="Base_Column_List"></include>
        from ec_abnormal_volatility_info
        where abnormal_volatility_id = #{aid}
    </select>

</mapper>
