<?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.hdkj.lt.mq.mapper.abnormal.FhzgGridOperationAbnormalityMapper">
    <resultMap id="BaseResultMap"
               type="com.hdkj.lt.core.bizms.modle.po.operationAbnormality.FhzgGridOperationAbnormality">
        <id property="id" column="id" jdbcType="BIGINT"/>
        <result property="lineId" column="line_id" jdbcType="VARCHAR"/>
        <result property="countyId" column="county_id" jdbcType="VARCHAR"/>
        <result property="alarmStartTime" column="alarm_start_time" jdbcType="TIMESTAMP"/>
        <result property="alarmEndTime" column="alarm_end_time" jdbcType="TIMESTAMP"/>
        <result property="alarmSustainedTime" column="alarm_sustained_time" jdbcType="DECIMAL"/>
        <result property="loadCondition" column="load_condition" jdbcType="VARCHAR"/>
        <result property="maxLoadFactor" column="max_load_factor" jdbcType="DECIMAL"/>
        <result property="maxLoadFactorTime" column="max_load_factor_time" jdbcType="TIMESTAMP"/>
        <result property="ratedCurrent" column="rated_current" jdbcType="DECIMAL"/>
        <result property="optimizationTime" column="optimization_time" jdbcType="TIMESTAMP"/>
        <result property="creator" column="creator" jdbcType="BIGINT"/>
        <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
        <result property="lastEditor" column="last_editor" jdbcType="BIGINT"/>
        <result property="lastTime" column="last_time" jdbcType="TIMESTAMP"/>
    </resultMap>

    <sql id="Base_Column_List">
        id
        ,line_id,county_id,
        alarm_start_time,alarm_end_time,alarm_sustained_time,
        load_condition,max_load_factor,max_load_factor_time,
        rated_current,optimization_time,creator,
        create_time,last_editor,last_time
    </sql>
    <insert id="saveScheme">
        INSERT INTO fhzg_operation_abnormality_transfer_scheme (id, oa_id)
        values (#{id}, #{oaId})
    </insert>
</mapper>
