<?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.zksy.info.mapper.EEnterprisePowerInfoMapper">

    <resultMap id="BaseResultMap" type="com.zksy.info.domain.EEnterprisePowerInfo">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="enterpriseName" column="enterprise_name" jdbcType="VARCHAR"/>
            <result property="unifiedSocialCreditCode" column="unified_social_credit_code" jdbcType="VARCHAR"/>
            <result property="powerGridAccountNumber" column="power_grid_account_number" jdbcType="VARCHAR"/>
            <result property="userAddress" column="user_address" jdbcType="VARCHAR"/>
            <result property="operatingCapacity" column="operating_capacity" jdbcType="DECIMAL"/>
            <result property="contractCapacity" column="contract_capacity" jdbcType="DECIMAL"/>
            <result property="firstPowerSupplyDate" column="first_power_supply_date" jdbcType="DATE"/>
            <result property="powerAccountStatus" column="power_account_status" jdbcType="VARCHAR"/>
            <result property="arrearsAmount" column="arrears_amount" jdbcType="DECIMAL"/>
            <result property="defaultTimesInRecentTwoYears" column="default_times_in_recent_two_years" jdbcType="INTEGER"/>
            <result property="powerConsumptionType" column="power_consumption_type" jdbcType="VARCHAR"/>
            <result property="provinceName" column="province_name" jdbcType="VARCHAR"/>
            <result property="cityName" column="city_name" jdbcType="VARCHAR"/>
            <result property="averageMonthlyPowerCostRecentThreeMonths" column="average_monthly_power_cost_recent_three_months" jdbcType="DECIMAL"/>
            <result property="averageMonthlyPowerCostRecentSixMonths" column="average_monthly_power_cost_recent_six_months" jdbcType="DECIMAL"/>
            <result property="averageMonthlyPowerCostRecentTwelveMonths" column="average_monthly_power_cost_recent_twelve_months" jdbcType="DECIMAL"/>
            <result property="isCurrentlyInArrears" column="is_currently_in_arrears" jdbcType="VARCHAR"/>
            <result property="statisticsTime" column="statistics_time" jdbcType="TIMESTAMP"/>
            <result property="statisticsBaseDate" column="statistics_base_date" jdbcType="DATE"/>
            <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
            <result property="administrativeRegionCode" column="administrative_region_code" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,enterprise_name,unified_social_credit_code,
        power_grid_account_number,user_address,operating_capacity,
        contract_capacity,first_power_supply_date,power_account_status,
        arrears_amount,default_times_in_recent_two_years,power_consumption_type,
        province_name,city_name,average_monthly_power_cost_recent_three_months,
        average_monthly_power_cost_recent_six_months,average_monthly_power_cost_recent_twelve_months,is_currently_in_arrears,
        statistics_time,statistics_base_date,remarks,
        administrative_region_code,create_time,create_by,
        update_time,update_by
    </sql>
</mapper>
