<?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.powerdistribution.mapper.PdmStopRecordsMapper">

    <resultMap type="PdmStopRecords" id="PdmStopRecordsResult">
        <result property="id"    column="id"    />
        <result property="feedServSysId"    column="feed_serv_sys_id"    />
        <result property="eventSn"    column="event_sn"    />
        <result property="dutyDeptNo"    column="duty_dept_no"    />
        <result property="dutyDeptNm"    column="duty_dept_nm"    />
        <result property="dutyDeptRespRatio"    column="duty_dept_resp_ratio"    />
        <result property="poweroffStartTm"    column="poweroff_start_tm"    />
        <result property="poweroffTermTm"    column="poweroff_term_tm"    />
        <result property="poweroffDurationTm"    column="poweroff_duration_tm"    />
        <result property="mgmtAttr"    column="mgmt_attr"    />
        <result property="regionFeatCd"    column="region_feat_cd"    />
        <result property="regionFeatDsc"    column="region_feat_dsc"    />
        <result property="orgNo"    column="org_no"    />
        <result property="orgNm"    column="org_nm"    />
        <result property="orgNatureCd"    column="org_nature_cd"    />
        <result property="orgNatureDsc"    column="org_nature_dsc"    />
        <result property="poweroffNatureCd"    column="poweroff_nature_cd"    />
        <result property="poweroffNatureDsc"    column="poweroff_nature_dsc"    />
        <result property="judgePoweroffNatureCd"    column="judge_poweroff_nature_cd"    />
        <result property="judgePoweroffNatureDsc"    column="judge_poweroff_nature_dsc"    />
        <result property="poweroffDutyCausNo"    column="poweroff_duty_caus_no"    />
        <result property="poweroffDutyCausNm"    column="poweroff_duty_caus_nm"    />
        <result property="poweroffEqpNo"    column="poweroff_eqp_no"    />
        <result property="poweroffEqpNm"    column="poweroff_eqp_nm"    />
        <result property="poweroffTechCausNo"    column="poweroff_tech_caus_no"    />
        <result property="poweroffTechCausNm"    column="poweroff_tech_caus_nm"    />
        <result property="specEventAnalCd"    column="spec_event_anal_cd"    />
        <result property="specEventAnalDsc"    column="spec_event_anal_dsc"    />
        <result property="isMajorEventDay"    column="is_major_event_day"    />
        <result property="excpStCd"    column="excp_st_cd"    />
        <result property="excpStDsc"    column="excp_st_dsc"    />
        <result property="excpDataCausCd"    column="excp_data_caus_cd"    />
        <result property="excpDataCausDsc"    column="excp_data_caus_dsc"    />
        <result property="programmeFeat"    column="programme_feat"    />
        <result property="operaFlgCd"    column="opera_flg_cd"    />
        <result property="operaFlgDsc"    column="opera_flg_dsc"    />
        <result property="createTm"    column="create_tm"    />
        <result property="affirmTm"    column="affirm_tm"    />
        <result property="enterTm"    column="enter_tm"    />
        <result property="updateTm"    column="update_tm"    />
        <result property="pushFlgCd"    column="push_flg_cd"    />
        <result property="pushFlgDsc"    column="push_flg_dsc"    />
        <result property="subsNm"    column="subs_nm"    />
        <result property="lineId"    column="line_id"    />
        <result property="lineNm"    column="line_nm"    />
        <result property="remarkInfo"    column="remark_info"    />
        <result property="operator"    column="operator"    />
        <result property="operaTm"    column="opera_tm"    />
        <result property="lockingFlgCd"    column="locking_flg_cd"    />
        <result property="lockingFlgDsc"    column="locking_flg_dsc"    />
        <result property="parOrg"    column="par_org"    />
        <result property="entryModeCd"    column="entry_mode_cd"    />
        <result property="entryModeDsc"    column="entry_mode_dsc"    />
        <result property="pushStCd"    column="push_st_cd"    />
        <result property="pushStDsc"    column="push_st_dsc"    />
        <result property="isRptHeaddept"    column="is_rpt_headdept"    />
        <result property="rptRejectCaus"    column="rpt_reject_caus"    />
        <result property="dataTypCd"    column="data_typ_cd"    />
        <result property="dataTypDsc"    column="data_typ_dsc"    />
        <result property="isErrorCd"    column="is_error_cd"    />
        <result property="isErrorDsc"    column="is_error_dsc"    />
        <result property="dataSrcCd"    column="data_src_cd"    />
        <result property="dataSrcDsc"    column="data_src_dsc"    />
        <result property="isEdit"    column="is_edit"    />
        <result property="isCmpl"    column="is_cmpl"    />
        <result property="isAffirm"    column="is_affirm"    />
        <result property="isNeglect"    column="is_neglect"    />
        <result property="isEndData"    column="is_end_data"    />
        <result property="endEventTypCd"    column="end_event_typ_cd"    />
        <result property="endEventTypDsc"    column="end_event_typ_dsc"    />
        <result property="eventSpecHandlFlg"    column="event_spec_handl_flg"    />
        <result property="isSplitEvent"    column="is_split_event"    />
        <result property="eventDemotionCd"    column="event_demotion_cd"    />
        <result property="eventDemotionDsc"    column="event_demotion_dsc"    />
        <result property="thirdStageEventId"    column="third_stage_event_id"    />
        <result property="dataVer"    column="data_ver"    />
        <result property="poweroffCapHour"    column="poweroff_cap_hour"    />
        <result property="poweroffCap"    column="poweroff_cap"    />
        <result property="lineNum"    column="line_num"    />
        <result property="hourNum"    column="hour_num"    />
        <result property="deficiencyKwh"    column="deficiency_kwh"    />
        <result property="householdNum"    column="household_num"    />
        <result property="householdNum1"    column="household_num1"    />
        <result property="hourNum1"    column="hour_num1"    />
        <result property="householdNum2"    column="household_num2"    />
        <result property="hourNum2"    column="hour_num2"    />
        <result property="householdNum3"    column="household_num3"    />
        <result property="hourNum3"    column="hour_num3"    />
        <result property="householdNum4"    column="household_num4"    />
        <result property="hourNum4"    column="hour_num4"    />
        <result property="cityCenterPoweroffCap"    column="city_center_poweroff_cap"    />
        <result property="cityPoweroffCap"    column="city_poweroff_cap"    />
        <result property="citiesTownsPoweroffCap"    column="cities_towns_poweroff_cap"    />
        <result property="cysidePoweroffCap"    column="cyside_poweroff_cap"    />
        <result property="reentryPoweroffCapHour"    column="reentry_poweroff_cap_hour"    />
        <result property="reentryPoweroffCap"    column="reentry_poweroff_cap"    />
        <result property="reentryLineCount"    column="reentry_line_count"    />
        <result property="reentryHourNum"    column="reentry_hour_num"    />
        <result property="reentryDeficiencyKwh"    column="reentry_deficiency_kwh"    />
        <result property="reentryHouseholdNum"    column="reentry_household_num"    />
        <result property="totalPoweroffCapHour"    column="total_poweroff_cap_hour"    />
        <result property="totalPoweroffCap"    column="total_poweroff_cap"    />
        <result property="totalLimitNum"    column="total_limit_num"    />
        <result property="totalHourNum"    column="total_hour_num"    />
        <result property="totalDeficiencyKwh"    column="total_deficiency_kwh"    />
        <result property="totalHouseholdNum"    column="total_household_num"    />
        <result property="stdOrgNo"    column="std_org_no"    />
        <result property="stdOrgNm"    column="std_org_nm"    />
        <result property="stdCountyOrgNo"    column="std_county_org_no"    />
        <result property="stdCountyOrgNm"    column="std_county_org_nm"    />
        <result property="stdCityOrgNm"    column="std_city_org_nm"    />
        <result property="dataDt"    column="data_dt"    />
        <result property="etlTm"    column="etl_tm"    />
        <result property="judgingCausCd"    column="judging_caus_cd"    />
        <result property="judgingCausDsc"    column="judging_caus_dsc"    />
        <result property="eventTypCd"    column="event_typ_cd"    />
        <result property="eventTypDsc"    column="event_typ_dsc"    />
        <result property="isHaveAnalRpt"    column="is_have_anal_rpt"    />
        <result property="isPrivEvent"    column="is_priv_event"    />
        <result property="poweroffCaus"    column="poweroff_caus"    />
        <result property="demotionId"    column="demotion_id"    />
        <result property="isPssData"    column="is_pss_data"    />
        <result property="isFormalityData"    column="is_formality_data"    />
        <result property="dataSrc"    column="data_src"    />
        <result property="parYear"    column="par_year"    />
        <result property="stdCityOrgNo"    column="std_city_org_no"    />
        <result property="createBy"    column="create_by"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateBy"    column="update_by"    />
        <result property="updateTime"    column="update_time"    />
    </resultMap>

    <sql id="selectPdmStopRecordsVo">
        select id, feed_serv_sys_id, event_sn, duty_dept_no, duty_dept_nm, duty_dept_resp_ratio, poweroff_start_tm, poweroff_term_tm, poweroff_duration_tm, mgmt_attr, region_feat_cd, region_feat_dsc, org_no, org_nm, org_nature_cd, org_nature_dsc, poweroff_nature_cd, poweroff_nature_dsc, judge_poweroff_nature_cd, judge_poweroff_nature_dsc, poweroff_duty_caus_no, poweroff_duty_caus_nm, poweroff_eqp_no, poweroff_eqp_nm, poweroff_tech_caus_no, poweroff_tech_caus_nm, spec_event_anal_cd, spec_event_anal_dsc, is_major_event_day, excp_st_cd, excp_st_dsc, excp_data_caus_cd, excp_data_caus_dsc, programme_feat, opera_flg_cd, opera_flg_dsc, create_tm, affirm_tm, enter_tm, update_tm, push_flg_cd, push_flg_dsc, subs_nm, line_id, line_nm, remark_info, operator, opera_tm, locking_flg_cd, locking_flg_dsc, par_org, entry_mode_cd, entry_mode_dsc, push_st_cd, push_st_dsc, is_rpt_headdept, rpt_reject_caus, data_typ_cd, data_typ_dsc, is_error_cd, is_error_dsc, data_src_cd, data_src_dsc, is_edit, is_cmpl, is_affirm, is_neglect, is_end_data, end_event_typ_cd, end_event_typ_dsc, event_spec_handl_flg, is_split_event, event_demotion_cd, event_demotion_dsc, third_stage_event_id, data_ver, poweroff_cap_hour, poweroff_cap, line_num, hour_num, deficiency_kwh, household_num, household_num1, hour_num1, household_num2, hour_num2, household_num3, hour_num3, household_num4, hour_num4, city_center_poweroff_cap, city_poweroff_cap, cities_towns_poweroff_cap, cyside_poweroff_cap, reentry_poweroff_cap_hour, reentry_poweroff_cap, reentry_line_count, reentry_hour_num, reentry_deficiency_kwh, reentry_household_num, total_poweroff_cap_hour, total_poweroff_cap, total_limit_num, total_hour_num, total_deficiency_kwh, total_household_num, std_org_no, std_org_nm, std_county_org_no, std_county_org_nm, std_city_org_nm, data_dt, etl_tm, judging_caus_cd, judging_caus_dsc, event_typ_cd, event_typ_dsc, is_have_anal_rpt, is_priv_event, poweroff_caus, demotion_id, is_pss_data, is_formality_data, data_src, par_year, std_city_org_no, create_by, create_time, update_by, update_time from pdm_stop_records
    </sql>

    <select id="selectPdmStopRecordsList" parameterType="PdmStopRecords" resultMap="PdmStopRecordsResult">
        <include refid="selectPdmStopRecordsVo"/>
        <where>
            <if test="feedServSysId != null  and feedServSysId != ''"> and feed_serv_sys_id = #{feedServSysId}</if>
            <if test="eventSn != null  and eventSn != ''"> and event_sn = #{eventSn}</if>
            <if test="dutyDeptNo != null  and dutyDeptNo != ''"> and duty_dept_no = #{dutyDeptNo}</if>
            <if test="dutyDeptNm != null  and dutyDeptNm != ''"> and duty_dept_nm = #{dutyDeptNm}</if>
            <if test="dutyDeptRespRatio != null "> and duty_dept_resp_ratio = #{dutyDeptRespRatio}</if>
            <if test="poweroffStartTm != null "> and poweroff_start_tm = #{poweroffStartTm}</if>
            <if test="poweroffTermTm != null "> and poweroff_term_tm = #{poweroffTermTm}</if>
            <if test="poweroffDurationTm != null "> and poweroff_duration_tm = #{poweroffDurationTm}</if>
            <if test="mgmtAttr != null  and mgmtAttr != ''"> and mgmt_attr = #{mgmtAttr}</if>
            <if test="regionFeatCd != null  and regionFeatCd != ''"> and region_feat_cd = #{regionFeatCd}</if>
            <if test="regionFeatDsc != null  and regionFeatDsc != ''"> and region_feat_dsc = #{regionFeatDsc}</if>
            <if test="orgNo != null  and orgNo != ''"> and org_no = #{orgNo}</if>
            <if test="orgNm != null  and orgNm != ''"> and org_nm = #{orgNm}</if>
            <if test="orgNatureCd != null  and orgNatureCd != ''"> and org_nature_cd = #{orgNatureCd}</if>
            <if test="orgNatureDsc != null  and orgNatureDsc != ''"> and org_nature_dsc = #{orgNatureDsc}</if>
            <if test="poweroffNatureCd != null  and poweroffNatureCd != ''"> and poweroff_nature_cd = #{poweroffNatureCd}</if>
            <if test="poweroffNatureDsc != null  and poweroffNatureDsc != ''"> and poweroff_nature_dsc = #{poweroffNatureDsc}</if>
            <if test="judgePoweroffNatureCd != null  and judgePoweroffNatureCd != ''"> and judge_poweroff_nature_cd = #{judgePoweroffNatureCd}</if>
            <if test="judgePoweroffNatureDsc != null  and judgePoweroffNatureDsc != ''"> and judge_poweroff_nature_dsc = #{judgePoweroffNatureDsc}</if>
            <if test="poweroffDutyCausNo != null  and poweroffDutyCausNo != ''"> and poweroff_duty_caus_no = #{poweroffDutyCausNo}</if>
            <if test="poweroffDutyCausNm != null  and poweroffDutyCausNm != ''"> and poweroff_duty_caus_nm = #{poweroffDutyCausNm}</if>
            <if test="poweroffEqpNo != null  and poweroffEqpNo != ''"> and poweroff_eqp_no = #{poweroffEqpNo}</if>
            <if test="poweroffEqpNm != null  and poweroffEqpNm != ''"> and poweroff_eqp_nm = #{poweroffEqpNm}</if>
            <if test="poweroffTechCausNo != null  and poweroffTechCausNo != ''"> and poweroff_tech_caus_no = #{poweroffTechCausNo}</if>
            <if test="poweroffTechCausNm != null  and poweroffTechCausNm != ''"> and poweroff_tech_caus_nm = #{poweroffTechCausNm}</if>
            <if test="specEventAnalCd != null  and specEventAnalCd != ''"> and spec_event_anal_cd = #{specEventAnalCd}</if>
            <if test="specEventAnalDsc != null  and specEventAnalDsc != ''"> and spec_event_anal_dsc = #{specEventAnalDsc}</if>
            <if test="isMajorEventDay != null  and isMajorEventDay != ''"> and is_major_event_day = #{isMajorEventDay}</if>
            <if test="excpStCd != null  and excpStCd != ''"> and excp_st_cd = #{excpStCd}</if>
            <if test="excpStDsc != null  and excpStDsc != ''"> and excp_st_dsc = #{excpStDsc}</if>
            <if test="excpDataCausCd != null  and excpDataCausCd != ''"> and excp_data_caus_cd = #{excpDataCausCd}</if>
            <if test="excpDataCausDsc != null  and excpDataCausDsc != ''"> and excp_data_caus_dsc = #{excpDataCausDsc}</if>
            <if test="programmeFeat != null  and programmeFeat != ''"> and programme_feat = #{programmeFeat}</if>
            <if test="operaFlgCd != null  and operaFlgCd != ''"> and opera_flg_cd = #{operaFlgCd}</if>
            <if test="operaFlgDsc != null  and operaFlgDsc != ''"> and opera_flg_dsc = #{operaFlgDsc}</if>
            <if test="createTm != null "> and create_tm = #{createTm}</if>
            <if test="affirmTm != null "> and affirm_tm = #{affirmTm}</if>
            <if test="enterTm != null "> and enter_tm = #{enterTm}</if>
            <if test="updateTm != null "> and update_tm = #{updateTm}</if>
            <if test="pushFlgCd != null  and pushFlgCd != ''"> and push_flg_cd = #{pushFlgCd}</if>
            <if test="pushFlgDsc != null  and pushFlgDsc != ''"> and push_flg_dsc = #{pushFlgDsc}</if>
            <if test="subsNm != null  and subsNm != ''"> and subs_nm = #{subsNm}</if>
            <if test="lineId != null  and lineId != ''"> and line_id = #{lineId}</if>
            <if test="lineNm != null  and lineNm != ''"> and line_nm = #{lineNm}</if>
            <if test="remarkInfo != null  and remarkInfo != ''"> and remark_info = #{remarkInfo}</if>
            <if test="operator != null  and operator != ''"> and operator = #{operator}</if>
            <if test="operaTm != null "> and opera_tm = #{operaTm}</if>
            <if test="lockingFlgCd != null  and lockingFlgCd != ''"> and locking_flg_cd = #{lockingFlgCd}</if>
            <if test="lockingFlgDsc != null  and lockingFlgDsc != ''"> and locking_flg_dsc = #{lockingFlgDsc}</if>
            <if test="parOrg != null  and parOrg != ''"> and par_org = #{parOrg}</if>
            <if test="entryModeCd != null  and entryModeCd != ''"> and entry_mode_cd = #{entryModeCd}</if>
            <if test="entryModeDsc != null  and entryModeDsc != ''"> and entry_mode_dsc = #{entryModeDsc}</if>
            <if test="pushStCd != null  and pushStCd != ''"> and push_st_cd = #{pushStCd}</if>
            <if test="pushStDsc != null  and pushStDsc != ''"> and push_st_dsc = #{pushStDsc}</if>
            <if test="isRptHeaddept != null  and isRptHeaddept != ''"> and is_rpt_headdept = #{isRptHeaddept}</if>
            <if test="rptRejectCaus != null  and rptRejectCaus != ''"> and rpt_reject_caus = #{rptRejectCaus}</if>
            <if test="dataTypCd != null  and dataTypCd != ''"> and data_typ_cd = #{dataTypCd}</if>
            <if test="dataTypDsc != null  and dataTypDsc != ''"> and data_typ_dsc = #{dataTypDsc}</if>
            <if test="isErrorCd != null  and isErrorCd != ''"> and is_error_cd = #{isErrorCd}</if>
            <if test="isErrorDsc != null  and isErrorDsc != ''"> and is_error_dsc = #{isErrorDsc}</if>
            <if test="dataSrcCd != null  and dataSrcCd != ''"> and data_src_cd = #{dataSrcCd}</if>
            <if test="dataSrcDsc != null  and dataSrcDsc != ''"> and data_src_dsc = #{dataSrcDsc}</if>
            <if test="isEdit != null  and isEdit != ''"> and is_edit = #{isEdit}</if>
            <if test="isCmpl != null  and isCmpl != ''"> and is_cmpl = #{isCmpl}</if>
            <if test="isAffirm != null  and isAffirm != ''"> and is_affirm = #{isAffirm}</if>
            <if test="isNeglect != null  and isNeglect != ''"> and is_neglect = #{isNeglect}</if>
            <if test="isEndData != null  and isEndData != ''"> and is_end_data = #{isEndData}</if>
            <if test="endEventTypCd != null  and endEventTypCd != ''"> and end_event_typ_cd = #{endEventTypCd}</if>
            <if test="endEventTypDsc != null  and endEventTypDsc != ''"> and end_event_typ_dsc = #{endEventTypDsc}</if>
            <if test="eventSpecHandlFlg != null  and eventSpecHandlFlg != ''"> and event_spec_handl_flg = #{eventSpecHandlFlg}</if>
            <if test="isSplitEvent != null  and isSplitEvent != ''"> and is_split_event = #{isSplitEvent}</if>
            <if test="eventDemotionCd != null  and eventDemotionCd != ''"> and event_demotion_cd = #{eventDemotionCd}</if>
            <if test="eventDemotionDsc != null  and eventDemotionDsc != ''"> and event_demotion_dsc = #{eventDemotionDsc}</if>
            <if test="thirdStageEventId != null  and thirdStageEventId != ''"> and third_stage_event_id = #{thirdStageEventId}</if>
            <if test="dataVer != null  and dataVer != ''"> and data_ver = #{dataVer}</if>
            <if test="poweroffCapHour != null "> and poweroff_cap_hour = #{poweroffCapHour}</if>
            <if test="poweroffCap != null "> and poweroff_cap = #{poweroffCap}</if>
            <if test="lineNum != null "> and line_num = #{lineNum}</if>
            <if test="hourNum != null "> and hour_num = #{hourNum}</if>
            <if test="deficiencyKwh != null "> and deficiency_kwh = #{deficiencyKwh}</if>
            <if test="householdNum != null "> and household_num = #{householdNum}</if>
            <if test="householdNum1 != null "> and household_num1 = #{householdNum1}</if>
            <if test="hourNum1 != null "> and hour_num1 = #{hourNum1}</if>
            <if test="householdNum2 != null "> and household_num2 = #{householdNum2}</if>
            <if test="hourNum2 != null "> and hour_num2 = #{hourNum2}</if>
            <if test="householdNum3 != null "> and household_num3 = #{householdNum3}</if>
            <if test="hourNum3 != null "> and hour_num3 = #{hourNum3}</if>
            <if test="householdNum4 != null "> and household_num4 = #{householdNum4}</if>
            <if test="hourNum4 != null "> and hour_num4 = #{hourNum4}</if>
            <if test="cityCenterPoweroffCap != null "> and city_center_poweroff_cap = #{cityCenterPoweroffCap}</if>
            <if test="cityPoweroffCap != null "> and city_poweroff_cap = #{cityPoweroffCap}</if>
            <if test="citiesTownsPoweroffCap != null "> and cities_towns_poweroff_cap = #{citiesTownsPoweroffCap}</if>
            <if test="cysidePoweroffCap != null "> and cyside_poweroff_cap = #{cysidePoweroffCap}</if>
            <if test="reentryPoweroffCapHour != null "> and reentry_poweroff_cap_hour = #{reentryPoweroffCapHour}</if>
            <if test="reentryPoweroffCap != null "> and reentry_poweroff_cap = #{reentryPoweroffCap}</if>
            <if test="reentryLineCount != null "> and reentry_line_count = #{reentryLineCount}</if>
            <if test="reentryHourNum != null "> and reentry_hour_num = #{reentryHourNum}</if>
            <if test="reentryDeficiencyKwh != null "> and reentry_deficiency_kwh = #{reentryDeficiencyKwh}</if>
            <if test="reentryHouseholdNum != null "> and reentry_household_num = #{reentryHouseholdNum}</if>
            <if test="totalPoweroffCapHour != null "> and total_poweroff_cap_hour = #{totalPoweroffCapHour}</if>
            <if test="totalPoweroffCap != null "> and total_poweroff_cap = #{totalPoweroffCap}</if>
            <if test="totalLimitNum != null "> and total_limit_num = #{totalLimitNum}</if>
            <if test="totalHourNum != null "> and total_hour_num = #{totalHourNum}</if>
            <if test="totalDeficiencyKwh != null "> and total_deficiency_kwh = #{totalDeficiencyKwh}</if>
            <if test="totalHouseholdNum != null "> and total_household_num = #{totalHouseholdNum}</if>
            <if test="stdOrgNo != null  and stdOrgNo != ''"> and std_org_no = #{stdOrgNo}</if>
            <if test="stdOrgNm != null  and stdOrgNm != ''"> and std_org_nm = #{stdOrgNm}</if>
            <if test="stdCountyOrgNo != null  and stdCountyOrgNo != ''"> and std_county_org_no = #{stdCountyOrgNo}</if>
            <if test="stdCountyOrgNm != null  and stdCountyOrgNm != ''"> and std_county_org_nm = #{stdCountyOrgNm}</if>
            <if test="stdCityOrgNm != null  and stdCityOrgNm != ''"> and std_city_org_nm = #{stdCityOrgNm}</if>
            <if test="dataDt != null  and dataDt != ''"> and data_dt = #{dataDt}</if>
            <if test="etlTm != null "> and etl_tm = #{etlTm}</if>
            <if test="judgingCausCd != null  and judgingCausCd != ''"> and judging_caus_cd = #{judgingCausCd}</if>
            <if test="judgingCausDsc != null  and judgingCausDsc != ''"> and judging_caus_dsc = #{judgingCausDsc}</if>
            <if test="eventTypCd != null  and eventTypCd != ''"> and event_typ_cd = #{eventTypCd}</if>
            <if test="eventTypDsc != null  and eventTypDsc != ''"> and event_typ_dsc = #{eventTypDsc}</if>
            <if test="isHaveAnalRpt != null  and isHaveAnalRpt != ''"> and is_have_anal_rpt = #{isHaveAnalRpt}</if>
            <if test="isPrivEvent != null  and isPrivEvent != ''"> and is_priv_event = #{isPrivEvent}</if>
            <if test="poweroffCaus != null  and poweroffCaus != ''"> and poweroff_caus = #{poweroffCaus}</if>
            <if test="demotionId != null  and demotionId != ''"> and demotion_id = #{demotionId}</if>
            <if test="isPssData != null  and isPssData != ''"> and is_pss_data = #{isPssData}</if>
            <if test="isFormalityData != null  and isFormalityData != ''"> and is_formality_data = #{isFormalityData}</if>
            <if test="dataSrc != null  and dataSrc != ''"> and data_src = #{dataSrc}</if>
            <if test="parYear != null  and parYear != ''"> and par_year = #{parYear}</if>
            <if test="stdCityOrgNo != null  and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
        </where>
    </select>

    <select id="selectPdmStopRecordsById" parameterType="Long" resultMap="PdmStopRecordsResult">
        <include refid="selectPdmStopRecordsVo"/>
        where id = #{id}
    </select>

    <insert id="insertPdmStopRecords" parameterType="PdmStopRecords" useGeneratedKeys="true" keyProperty="id">
        insert into pdm_stop_records
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="feedServSysId != null">feed_serv_sys_id,</if>
            <if test="eventSn != null">event_sn,</if>
            <if test="dutyDeptNo != null">duty_dept_no,</if>
            <if test="dutyDeptNm != null">duty_dept_nm,</if>
            <if test="dutyDeptRespRatio != null">duty_dept_resp_ratio,</if>
            <if test="poweroffStartTm != null">poweroff_start_tm,</if>
            <if test="poweroffTermTm != null">poweroff_term_tm,</if>
            <if test="poweroffDurationTm != null">poweroff_duration_tm,</if>
            <if test="mgmtAttr != null">mgmt_attr,</if>
            <if test="regionFeatCd != null">region_feat_cd,</if>
            <if test="regionFeatDsc != null">region_feat_dsc,</if>
            <if test="orgNo != null">org_no,</if>
            <if test="orgNm != null">org_nm,</if>
            <if test="orgNatureCd != null">org_nature_cd,</if>
            <if test="orgNatureDsc != null">org_nature_dsc,</if>
            <if test="poweroffNatureCd != null">poweroff_nature_cd,</if>
            <if test="poweroffNatureDsc != null">poweroff_nature_dsc,</if>
            <if test="judgePoweroffNatureCd != null">judge_poweroff_nature_cd,</if>
            <if test="judgePoweroffNatureDsc != null">judge_poweroff_nature_dsc,</if>
            <if test="poweroffDutyCausNo != null">poweroff_duty_caus_no,</if>
            <if test="poweroffDutyCausNm != null">poweroff_duty_caus_nm,</if>
            <if test="poweroffEqpNo != null">poweroff_eqp_no,</if>
            <if test="poweroffEqpNm != null">poweroff_eqp_nm,</if>
            <if test="poweroffTechCausNo != null">poweroff_tech_caus_no,</if>
            <if test="poweroffTechCausNm != null">poweroff_tech_caus_nm,</if>
            <if test="specEventAnalCd != null">spec_event_anal_cd,</if>
            <if test="specEventAnalDsc != null">spec_event_anal_dsc,</if>
            <if test="isMajorEventDay != null">is_major_event_day,</if>
            <if test="excpStCd != null">excp_st_cd,</if>
            <if test="excpStDsc != null">excp_st_dsc,</if>
            <if test="excpDataCausCd != null">excp_data_caus_cd,</if>
            <if test="excpDataCausDsc != null">excp_data_caus_dsc,</if>
            <if test="programmeFeat != null">programme_feat,</if>
            <if test="operaFlgCd != null">opera_flg_cd,</if>
            <if test="operaFlgDsc != null">opera_flg_dsc,</if>
            <if test="createTm != null">create_tm,</if>
            <if test="affirmTm != null">affirm_tm,</if>
            <if test="enterTm != null">enter_tm,</if>
            <if test="updateTm != null">update_tm,</if>
            <if test="pushFlgCd != null">push_flg_cd,</if>
            <if test="pushFlgDsc != null">push_flg_dsc,</if>
            <if test="subsNm != null">subs_nm,</if>
            <if test="lineId != null">line_id,</if>
            <if test="lineNm != null">line_nm,</if>
            <if test="remarkInfo != null">remark_info,</if>
            <if test="operator != null">operator,</if>
            <if test="operaTm != null">opera_tm,</if>
            <if test="lockingFlgCd != null">locking_flg_cd,</if>
            <if test="lockingFlgDsc != null">locking_flg_dsc,</if>
            <if test="parOrg != null">par_org,</if>
            <if test="entryModeCd != null">entry_mode_cd,</if>
            <if test="entryModeDsc != null">entry_mode_dsc,</if>
            <if test="pushStCd != null">push_st_cd,</if>
            <if test="pushStDsc != null">push_st_dsc,</if>
            <if test="isRptHeaddept != null">is_rpt_headdept,</if>
            <if test="rptRejectCaus != null">rpt_reject_caus,</if>
            <if test="dataTypCd != null">data_typ_cd,</if>
            <if test="dataTypDsc != null">data_typ_dsc,</if>
            <if test="isErrorCd != null">is_error_cd,</if>
            <if test="isErrorDsc != null">is_error_dsc,</if>
            <if test="dataSrcCd != null">data_src_cd,</if>
            <if test="dataSrcDsc != null">data_src_dsc,</if>
            <if test="isEdit != null">is_edit,</if>
            <if test="isCmpl != null">is_cmpl,</if>
            <if test="isAffirm != null">is_affirm,</if>
            <if test="isNeglect != null">is_neglect,</if>
            <if test="isEndData != null">is_end_data,</if>
            <if test="endEventTypCd != null">end_event_typ_cd,</if>
            <if test="endEventTypDsc != null">end_event_typ_dsc,</if>
            <if test="eventSpecHandlFlg != null">event_spec_handl_flg,</if>
            <if test="isSplitEvent != null">is_split_event,</if>
            <if test="eventDemotionCd != null">event_demotion_cd,</if>
            <if test="eventDemotionDsc != null">event_demotion_dsc,</if>
            <if test="thirdStageEventId != null">third_stage_event_id,</if>
            <if test="dataVer != null">data_ver,</if>
            <if test="poweroffCapHour != null">poweroff_cap_hour,</if>
            <if test="poweroffCap != null">poweroff_cap,</if>
            <if test="lineNum != null">line_num,</if>
            <if test="hourNum != null">hour_num,</if>
            <if test="deficiencyKwh != null">deficiency_kwh,</if>
            <if test="householdNum != null">household_num,</if>
            <if test="householdNum1 != null">household_num1,</if>
            <if test="hourNum1 != null">hour_num1,</if>
            <if test="householdNum2 != null">household_num2,</if>
            <if test="hourNum2 != null">hour_num2,</if>
            <if test="householdNum3 != null">household_num3,</if>
            <if test="hourNum3 != null">hour_num3,</if>
            <if test="householdNum4 != null">household_num4,</if>
            <if test="hourNum4 != null">hour_num4,</if>
            <if test="cityCenterPoweroffCap != null">city_center_poweroff_cap,</if>
            <if test="cityPoweroffCap != null">city_poweroff_cap,</if>
            <if test="citiesTownsPoweroffCap != null">cities_towns_poweroff_cap,</if>
            <if test="cysidePoweroffCap != null">cyside_poweroff_cap,</if>
            <if test="reentryPoweroffCapHour != null">reentry_poweroff_cap_hour,</if>
            <if test="reentryPoweroffCap != null">reentry_poweroff_cap,</if>
            <if test="reentryLineCount != null">reentry_line_count,</if>
            <if test="reentryHourNum != null">reentry_hour_num,</if>
            <if test="reentryDeficiencyKwh != null">reentry_deficiency_kwh,</if>
            <if test="reentryHouseholdNum != null">reentry_household_num,</if>
            <if test="totalPoweroffCapHour != null">total_poweroff_cap_hour,</if>
            <if test="totalPoweroffCap != null">total_poweroff_cap,</if>
            <if test="totalLimitNum != null">total_limit_num,</if>
            <if test="totalHourNum != null">total_hour_num,</if>
            <if test="totalDeficiencyKwh != null">total_deficiency_kwh,</if>
            <if test="totalHouseholdNum != null">total_household_num,</if>
            <if test="stdOrgNo != null">std_org_no,</if>
            <if test="stdOrgNm != null">std_org_nm,</if>
            <if test="stdCountyOrgNo != null">std_county_org_no,</if>
            <if test="stdCountyOrgNm != null">std_county_org_nm,</if>
            <if test="stdCityOrgNm != null">std_city_org_nm,</if>
            <if test="dataDt != null">data_dt,</if>
            <if test="etlTm != null">etl_tm,</if>
            <if test="judgingCausCd != null">judging_caus_cd,</if>
            <if test="judgingCausDsc != null">judging_caus_dsc,</if>
            <if test="eventTypCd != null">event_typ_cd,</if>
            <if test="eventTypDsc != null">event_typ_dsc,</if>
            <if test="isHaveAnalRpt != null">is_have_anal_rpt,</if>
            <if test="isPrivEvent != null">is_priv_event,</if>
            <if test="poweroffCaus != null">poweroff_caus,</if>
            <if test="demotionId != null">demotion_id,</if>
            <if test="isPssData != null">is_pss_data,</if>
            <if test="isFormalityData != null">is_formality_data,</if>
            <if test="dataSrc != null">data_src,</if>
            <if test="parYear != null">par_year,</if>
            <if test="stdCityOrgNo != null">std_city_org_no,</if>
            <if test="createBy != null">create_by,</if>
            <if test="createTime != null">create_time,</if>
            <if test="updateBy != null">update_by,</if>
            <if test="updateTime != null">update_time,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="feedServSysId != null">#{feedServSysId},</if>
            <if test="eventSn != null">#{eventSn},</if>
            <if test="dutyDeptNo != null">#{dutyDeptNo},</if>
            <if test="dutyDeptNm != null">#{dutyDeptNm},</if>
            <if test="dutyDeptRespRatio != null">#{dutyDeptRespRatio},</if>
            <if test="poweroffStartTm != null">#{poweroffStartTm},</if>
            <if test="poweroffTermTm != null">#{poweroffTermTm},</if>
            <if test="poweroffDurationTm != null">#{poweroffDurationTm},</if>
            <if test="mgmtAttr != null">#{mgmtAttr},</if>
            <if test="regionFeatCd != null">#{regionFeatCd},</if>
            <if test="regionFeatDsc != null">#{regionFeatDsc},</if>
            <if test="orgNo != null">#{orgNo},</if>
            <if test="orgNm != null">#{orgNm},</if>
            <if test="orgNatureCd != null">#{orgNatureCd},</if>
            <if test="orgNatureDsc != null">#{orgNatureDsc},</if>
            <if test="poweroffNatureCd != null">#{poweroffNatureCd},</if>
            <if test="poweroffNatureDsc != null">#{poweroffNatureDsc},</if>
            <if test="judgePoweroffNatureCd != null">#{judgePoweroffNatureCd},</if>
            <if test="judgePoweroffNatureDsc != null">#{judgePoweroffNatureDsc},</if>
            <if test="poweroffDutyCausNo != null">#{poweroffDutyCausNo},</if>
            <if test="poweroffDutyCausNm != null">#{poweroffDutyCausNm},</if>
            <if test="poweroffEqpNo != null">#{poweroffEqpNo},</if>
            <if test="poweroffEqpNm != null">#{poweroffEqpNm},</if>
            <if test="poweroffTechCausNo != null">#{poweroffTechCausNo},</if>
            <if test="poweroffTechCausNm != null">#{poweroffTechCausNm},</if>
            <if test="specEventAnalCd != null">#{specEventAnalCd},</if>
            <if test="specEventAnalDsc != null">#{specEventAnalDsc},</if>
            <if test="isMajorEventDay != null">#{isMajorEventDay},</if>
            <if test="excpStCd != null">#{excpStCd},</if>
            <if test="excpStDsc != null">#{excpStDsc},</if>
            <if test="excpDataCausCd != null">#{excpDataCausCd},</if>
            <if test="excpDataCausDsc != null">#{excpDataCausDsc},</if>
            <if test="programmeFeat != null">#{programmeFeat},</if>
            <if test="operaFlgCd != null">#{operaFlgCd},</if>
            <if test="operaFlgDsc != null">#{operaFlgDsc},</if>
            <if test="createTm != null">#{createTm},</if>
            <if test="affirmTm != null">#{affirmTm},</if>
            <if test="enterTm != null">#{enterTm},</if>
            <if test="updateTm != null">#{updateTm},</if>
            <if test="pushFlgCd != null">#{pushFlgCd},</if>
            <if test="pushFlgDsc != null">#{pushFlgDsc},</if>
            <if test="subsNm != null">#{subsNm},</if>
            <if test="lineId != null">#{lineId},</if>
            <if test="lineNm != null">#{lineNm},</if>
            <if test="remarkInfo != null">#{remarkInfo},</if>
            <if test="operator != null">#{operator},</if>
            <if test="operaTm != null">#{operaTm},</if>
            <if test="lockingFlgCd != null">#{lockingFlgCd},</if>
            <if test="lockingFlgDsc != null">#{lockingFlgDsc},</if>
            <if test="parOrg != null">#{parOrg},</if>
            <if test="entryModeCd != null">#{entryModeCd},</if>
            <if test="entryModeDsc != null">#{entryModeDsc},</if>
            <if test="pushStCd != null">#{pushStCd},</if>
            <if test="pushStDsc != null">#{pushStDsc},</if>
            <if test="isRptHeaddept != null">#{isRptHeaddept},</if>
            <if test="rptRejectCaus != null">#{rptRejectCaus},</if>
            <if test="dataTypCd != null">#{dataTypCd},</if>
            <if test="dataTypDsc != null">#{dataTypDsc},</if>
            <if test="isErrorCd != null">#{isErrorCd},</if>
            <if test="isErrorDsc != null">#{isErrorDsc},</if>
            <if test="dataSrcCd != null">#{dataSrcCd},</if>
            <if test="dataSrcDsc != null">#{dataSrcDsc},</if>
            <if test="isEdit != null">#{isEdit},</if>
            <if test="isCmpl != null">#{isCmpl},</if>
            <if test="isAffirm != null">#{isAffirm},</if>
            <if test="isNeglect != null">#{isNeglect},</if>
            <if test="isEndData != null">#{isEndData},</if>
            <if test="endEventTypCd != null">#{endEventTypCd},</if>
            <if test="endEventTypDsc != null">#{endEventTypDsc},</if>
            <if test="eventSpecHandlFlg != null">#{eventSpecHandlFlg},</if>
            <if test="isSplitEvent != null">#{isSplitEvent},</if>
            <if test="eventDemotionCd != null">#{eventDemotionCd},</if>
            <if test="eventDemotionDsc != null">#{eventDemotionDsc},</if>
            <if test="thirdStageEventId != null">#{thirdStageEventId},</if>
            <if test="dataVer != null">#{dataVer},</if>
            <if test="poweroffCapHour != null">#{poweroffCapHour},</if>
            <if test="poweroffCap != null">#{poweroffCap},</if>
            <if test="lineNum != null">#{lineNum},</if>
            <if test="hourNum != null">#{hourNum},</if>
            <if test="deficiencyKwh != null">#{deficiencyKwh},</if>
            <if test="householdNum != null">#{householdNum},</if>
            <if test="householdNum1 != null">#{householdNum1},</if>
            <if test="hourNum1 != null">#{hourNum1},</if>
            <if test="householdNum2 != null">#{householdNum2},</if>
            <if test="hourNum2 != null">#{hourNum2},</if>
            <if test="householdNum3 != null">#{householdNum3},</if>
            <if test="hourNum3 != null">#{hourNum3},</if>
            <if test="householdNum4 != null">#{householdNum4},</if>
            <if test="hourNum4 != null">#{hourNum4},</if>
            <if test="cityCenterPoweroffCap != null">#{cityCenterPoweroffCap},</if>
            <if test="cityPoweroffCap != null">#{cityPoweroffCap},</if>
            <if test="citiesTownsPoweroffCap != null">#{citiesTownsPoweroffCap},</if>
            <if test="cysidePoweroffCap != null">#{cysidePoweroffCap},</if>
            <if test="reentryPoweroffCapHour != null">#{reentryPoweroffCapHour},</if>
            <if test="reentryPoweroffCap != null">#{reentryPoweroffCap},</if>
            <if test="reentryLineCount != null">#{reentryLineCount},</if>
            <if test="reentryHourNum != null">#{reentryHourNum},</if>
            <if test="reentryDeficiencyKwh != null">#{reentryDeficiencyKwh},</if>
            <if test="reentryHouseholdNum != null">#{reentryHouseholdNum},</if>
            <if test="totalPoweroffCapHour != null">#{totalPoweroffCapHour},</if>
            <if test="totalPoweroffCap != null">#{totalPoweroffCap},</if>
            <if test="totalLimitNum != null">#{totalLimitNum},</if>
            <if test="totalHourNum != null">#{totalHourNum},</if>
            <if test="totalDeficiencyKwh != null">#{totalDeficiencyKwh},</if>
            <if test="totalHouseholdNum != null">#{totalHouseholdNum},</if>
            <if test="stdOrgNo != null">#{stdOrgNo},</if>
            <if test="stdOrgNm != null">#{stdOrgNm},</if>
            <if test="stdCountyOrgNo != null">#{stdCountyOrgNo},</if>
            <if test="stdCountyOrgNm != null">#{stdCountyOrgNm},</if>
            <if test="stdCityOrgNm != null">#{stdCityOrgNm},</if>
            <if test="dataDt != null">#{dataDt},</if>
            <if test="etlTm != null">#{etlTm},</if>
            <if test="judgingCausCd != null">#{judgingCausCd},</if>
            <if test="judgingCausDsc != null">#{judgingCausDsc},</if>
            <if test="eventTypCd != null">#{eventTypCd},</if>
            <if test="eventTypDsc != null">#{eventTypDsc},</if>
            <if test="isHaveAnalRpt != null">#{isHaveAnalRpt},</if>
            <if test="isPrivEvent != null">#{isPrivEvent},</if>
            <if test="poweroffCaus != null">#{poweroffCaus},</if>
            <if test="demotionId != null">#{demotionId},</if>
            <if test="isPssData != null">#{isPssData},</if>
            <if test="isFormalityData != null">#{isFormalityData},</if>
            <if test="dataSrc != null">#{dataSrc},</if>
            <if test="parYear != null">#{parYear},</if>
            <if test="stdCityOrgNo != null">#{stdCityOrgNo},</if>
            <if test="createBy != null">#{createBy},</if>
            <if test="createTime != null">#{createTime},</if>
            <if test="updateBy != null">#{updateBy},</if>
            <if test="updateTime != null">#{updateTime},</if>
         </trim>
    </insert>

    <update id="updatePdmStopRecords" parameterType="PdmStopRecords">
        update pdm_stop_records
        <trim prefix="SET" suffixOverrides=",">
            <if test="feedServSysId != null">feed_serv_sys_id = #{feedServSysId},</if>
            <if test="eventSn != null">event_sn = #{eventSn},</if>
            <if test="dutyDeptNo != null">duty_dept_no = #{dutyDeptNo},</if>
            <if test="dutyDeptNm != null">duty_dept_nm = #{dutyDeptNm},</if>
            <if test="dutyDeptRespRatio != null">duty_dept_resp_ratio = #{dutyDeptRespRatio},</if>
            <if test="poweroffStartTm != null">poweroff_start_tm = #{poweroffStartTm},</if>
            <if test="poweroffTermTm != null">poweroff_term_tm = #{poweroffTermTm},</if>
            <if test="poweroffDurationTm != null">poweroff_duration_tm = #{poweroffDurationTm},</if>
            <if test="mgmtAttr != null">mgmt_attr = #{mgmtAttr},</if>
            <if test="regionFeatCd != null">region_feat_cd = #{regionFeatCd},</if>
            <if test="regionFeatDsc != null">region_feat_dsc = #{regionFeatDsc},</if>
            <if test="orgNo != null">org_no = #{orgNo},</if>
            <if test="orgNm != null">org_nm = #{orgNm},</if>
            <if test="orgNatureCd != null">org_nature_cd = #{orgNatureCd},</if>
            <if test="orgNatureDsc != null">org_nature_dsc = #{orgNatureDsc},</if>
            <if test="poweroffNatureCd != null">poweroff_nature_cd = #{poweroffNatureCd},</if>
            <if test="poweroffNatureDsc != null">poweroff_nature_dsc = #{poweroffNatureDsc},</if>
            <if test="judgePoweroffNatureCd != null">judge_poweroff_nature_cd = #{judgePoweroffNatureCd},</if>
            <if test="judgePoweroffNatureDsc != null">judge_poweroff_nature_dsc = #{judgePoweroffNatureDsc},</if>
            <if test="poweroffDutyCausNo != null">poweroff_duty_caus_no = #{poweroffDutyCausNo},</if>
            <if test="poweroffDutyCausNm != null">poweroff_duty_caus_nm = #{poweroffDutyCausNm},</if>
            <if test="poweroffEqpNo != null">poweroff_eqp_no = #{poweroffEqpNo},</if>
            <if test="poweroffEqpNm != null">poweroff_eqp_nm = #{poweroffEqpNm},</if>
            <if test="poweroffTechCausNo != null">poweroff_tech_caus_no = #{poweroffTechCausNo},</if>
            <if test="poweroffTechCausNm != null">poweroff_tech_caus_nm = #{poweroffTechCausNm},</if>
            <if test="specEventAnalCd != null">spec_event_anal_cd = #{specEventAnalCd},</if>
            <if test="specEventAnalDsc != null">spec_event_anal_dsc = #{specEventAnalDsc},</if>
            <if test="isMajorEventDay != null">is_major_event_day = #{isMajorEventDay},</if>
            <if test="excpStCd != null">excp_st_cd = #{excpStCd},</if>
            <if test="excpStDsc != null">excp_st_dsc = #{excpStDsc},</if>
            <if test="excpDataCausCd != null">excp_data_caus_cd = #{excpDataCausCd},</if>
            <if test="excpDataCausDsc != null">excp_data_caus_dsc = #{excpDataCausDsc},</if>
            <if test="programmeFeat != null">programme_feat = #{programmeFeat},</if>
            <if test="operaFlgCd != null">opera_flg_cd = #{operaFlgCd},</if>
            <if test="operaFlgDsc != null">opera_flg_dsc = #{operaFlgDsc},</if>
            <if test="createTm != null">create_tm = #{createTm},</if>
            <if test="affirmTm != null">affirm_tm = #{affirmTm},</if>
            <if test="enterTm != null">enter_tm = #{enterTm},</if>
            <if test="updateTm != null">update_tm = #{updateTm},</if>
            <if test="pushFlgCd != null">push_flg_cd = #{pushFlgCd},</if>
            <if test="pushFlgDsc != null">push_flg_dsc = #{pushFlgDsc},</if>
            <if test="subsNm != null">subs_nm = #{subsNm},</if>
            <if test="lineId != null">line_id = #{lineId},</if>
            <if test="lineNm != null">line_nm = #{lineNm},</if>
            <if test="remarkInfo != null">remark_info = #{remarkInfo},</if>
            <if test="operator != null">operator = #{operator},</if>
            <if test="operaTm != null">opera_tm = #{operaTm},</if>
            <if test="lockingFlgCd != null">locking_flg_cd = #{lockingFlgCd},</if>
            <if test="lockingFlgDsc != null">locking_flg_dsc = #{lockingFlgDsc},</if>
            <if test="parOrg != null">par_org = #{parOrg},</if>
            <if test="entryModeCd != null">entry_mode_cd = #{entryModeCd},</if>
            <if test="entryModeDsc != null">entry_mode_dsc = #{entryModeDsc},</if>
            <if test="pushStCd != null">push_st_cd = #{pushStCd},</if>
            <if test="pushStDsc != null">push_st_dsc = #{pushStDsc},</if>
            <if test="isRptHeaddept != null">is_rpt_headdept = #{isRptHeaddept},</if>
            <if test="rptRejectCaus != null">rpt_reject_caus = #{rptRejectCaus},</if>
            <if test="dataTypCd != null">data_typ_cd = #{dataTypCd},</if>
            <if test="dataTypDsc != null">data_typ_dsc = #{dataTypDsc},</if>
            <if test="isErrorCd != null">is_error_cd = #{isErrorCd},</if>
            <if test="isErrorDsc != null">is_error_dsc = #{isErrorDsc},</if>
            <if test="dataSrcCd != null">data_src_cd = #{dataSrcCd},</if>
            <if test="dataSrcDsc != null">data_src_dsc = #{dataSrcDsc},</if>
            <if test="isEdit != null">is_edit = #{isEdit},</if>
            <if test="isCmpl != null">is_cmpl = #{isCmpl},</if>
            <if test="isAffirm != null">is_affirm = #{isAffirm},</if>
            <if test="isNeglect != null">is_neglect = #{isNeglect},</if>
            <if test="isEndData != null">is_end_data = #{isEndData},</if>
            <if test="endEventTypCd != null">end_event_typ_cd = #{endEventTypCd},</if>
            <if test="endEventTypDsc != null">end_event_typ_dsc = #{endEventTypDsc},</if>
            <if test="eventSpecHandlFlg != null">event_spec_handl_flg = #{eventSpecHandlFlg},</if>
            <if test="isSplitEvent != null">is_split_event = #{isSplitEvent},</if>
            <if test="eventDemotionCd != null">event_demotion_cd = #{eventDemotionCd},</if>
            <if test="eventDemotionDsc != null">event_demotion_dsc = #{eventDemotionDsc},</if>
            <if test="thirdStageEventId != null">third_stage_event_id = #{thirdStageEventId},</if>
            <if test="dataVer != null">data_ver = #{dataVer},</if>
            <if test="poweroffCapHour != null">poweroff_cap_hour = #{poweroffCapHour},</if>
            <if test="poweroffCap != null">poweroff_cap = #{poweroffCap},</if>
            <if test="lineNum != null">line_num = #{lineNum},</if>
            <if test="hourNum != null">hour_num = #{hourNum},</if>
            <if test="deficiencyKwh != null">deficiency_kwh = #{deficiencyKwh},</if>
            <if test="householdNum != null">household_num = #{householdNum},</if>
            <if test="householdNum1 != null">household_num1 = #{householdNum1},</if>
            <if test="hourNum1 != null">hour_num1 = #{hourNum1},</if>
            <if test="householdNum2 != null">household_num2 = #{householdNum2},</if>
            <if test="hourNum2 != null">hour_num2 = #{hourNum2},</if>
            <if test="householdNum3 != null">household_num3 = #{householdNum3},</if>
            <if test="hourNum3 != null">hour_num3 = #{hourNum3},</if>
            <if test="householdNum4 != null">household_num4 = #{householdNum4},</if>
            <if test="hourNum4 != null">hour_num4 = #{hourNum4},</if>
            <if test="cityCenterPoweroffCap != null">city_center_poweroff_cap = #{cityCenterPoweroffCap},</if>
            <if test="cityPoweroffCap != null">city_poweroff_cap = #{cityPoweroffCap},</if>
            <if test="citiesTownsPoweroffCap != null">cities_towns_poweroff_cap = #{citiesTownsPoweroffCap},</if>
            <if test="cysidePoweroffCap != null">cyside_poweroff_cap = #{cysidePoweroffCap},</if>
            <if test="reentryPoweroffCapHour != null">reentry_poweroff_cap_hour = #{reentryPoweroffCapHour},</if>
            <if test="reentryPoweroffCap != null">reentry_poweroff_cap = #{reentryPoweroffCap},</if>
            <if test="reentryLineCount != null">reentry_line_count = #{reentryLineCount},</if>
            <if test="reentryHourNum != null">reentry_hour_num = #{reentryHourNum},</if>
            <if test="reentryDeficiencyKwh != null">reentry_deficiency_kwh = #{reentryDeficiencyKwh},</if>
            <if test="reentryHouseholdNum != null">reentry_household_num = #{reentryHouseholdNum},</if>
            <if test="totalPoweroffCapHour != null">total_poweroff_cap_hour = #{totalPoweroffCapHour},</if>
            <if test="totalPoweroffCap != null">total_poweroff_cap = #{totalPoweroffCap},</if>
            <if test="totalLimitNum != null">total_limit_num = #{totalLimitNum},</if>
            <if test="totalHourNum != null">total_hour_num = #{totalHourNum},</if>
            <if test="totalDeficiencyKwh != null">total_deficiency_kwh = #{totalDeficiencyKwh},</if>
            <if test="totalHouseholdNum != null">total_household_num = #{totalHouseholdNum},</if>
            <if test="stdOrgNo != null">std_org_no = #{stdOrgNo},</if>
            <if test="stdOrgNm != null">std_org_nm = #{stdOrgNm},</if>
            <if test="stdCountyOrgNo != null">std_county_org_no = #{stdCountyOrgNo},</if>
            <if test="stdCountyOrgNm != null">std_county_org_nm = #{stdCountyOrgNm},</if>
            <if test="stdCityOrgNm != null">std_city_org_nm = #{stdCityOrgNm},</if>
            <if test="dataDt != null">data_dt = #{dataDt},</if>
            <if test="etlTm != null">etl_tm = #{etlTm},</if>
            <if test="judgingCausCd != null">judging_caus_cd = #{judgingCausCd},</if>
            <if test="judgingCausDsc != null">judging_caus_dsc = #{judgingCausDsc},</if>
            <if test="eventTypCd != null">event_typ_cd = #{eventTypCd},</if>
            <if test="eventTypDsc != null">event_typ_dsc = #{eventTypDsc},</if>
            <if test="isHaveAnalRpt != null">is_have_anal_rpt = #{isHaveAnalRpt},</if>
            <if test="isPrivEvent != null">is_priv_event = #{isPrivEvent},</if>
            <if test="poweroffCaus != null">poweroff_caus = #{poweroffCaus},</if>
            <if test="demotionId != null">demotion_id = #{demotionId},</if>
            <if test="isPssData != null">is_pss_data = #{isPssData},</if>
            <if test="isFormalityData != null">is_formality_data = #{isFormalityData},</if>
            <if test="dataSrc != null">data_src = #{dataSrc},</if>
            <if test="parYear != null">par_year = #{parYear},</if>
            <if test="stdCityOrgNo != null">std_city_org_no = #{stdCityOrgNo},</if>
            <if test="createBy != null">create_by = #{createBy},</if>
            <if test="createTime != null">create_time = #{createTime},</if>
            <if test="updateBy != null">update_by = #{updateBy},</if>
            <if test="updateTime != null">update_time = #{updateTime},</if>
        </trim>
        where id = #{id}
    </update>

    <delete id="deletePdmStopRecordsById" parameterType="Long">
        delete from pdm_stop_records where id = #{id}
    </delete>

    <delete id="deletePdmStopRecordsByIds" parameterType="String">
        delete from pdm_stop_records where id in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
</mapper>
