<?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.project.ticket.mapper.TPermitFireWorkMapper">

    <resultMap type="TPermitFireWork" id="TPermitFireWorkResult">
        <result property="hId"    column="h_id"    />
        <result property="aEquipmentName"    column="a_equipment_name"    />
        <result property="aEquipmentLeader"    column="a_equipment_leader"    />
        <result property="aEquipmentTel"    column="a_equipment_tel"    />
        <result property="aEquipmentOffice"    column="a_equipment_office"    />
        <result property="aConstructionName"    column="a_construction_name"    />
        <result property="aConstructionLeader"    column="a_construction_leader"    />
        <result property="aConstructionTel"    column="a_construction_tel"    />
        <result property="aConstructionOffice"    column="a_construction_office"    />
        <result property="aContractorName"    column="a_contractor_name"    />
        <result property="aContractorLeader"    column="a_contractor_leader"    />
        <result property="aContractorTel"    column="a_contractor_tel"    />
        <result property="aContractorOffice"    column="a_contractor_office"    />
        <result property="aIsNeedSafeLiaison"    column="a_is_need_safe_liaison"    />
        <result property="aSafeLiaisonName"    column="a_safe_liaison_name"    />
        <result property="aSafeLiaisonSign"    column="a_safe_liaison_sign"    />
        <result property="aSafeLiaisonTel"    column="a_safe_liaison_tel"    />
        <result property="aSafeLiaisonOffice"    column="a_safe_liaison_office"    />
        <result property="bDeviceName"    column="b_device_name"    />
        <result property="bAreaNo"    column="b_area_no"    />
        <result property="bWorkContent"    column="b_work_content"    />
        <result property="bValidityStartTime"    column="b_validity_start_time"    />
        <result property="bValidityEndTime"    column="b_validity_end_time"    />
        <result property="bFireWorkGrade"    column="b_fire_work_grade"    />
        <result property="cHarmMatterName"    column="c_harm_matter_name"    />
        <result property="cIsGhs"    column="c_is_ghs"    />
        <result property="cIsToxic"    column="c_is_toxic"    />
        <result property="cIsFlammable"    column="c_is_flammable"    />
        <result property="cIsOxidizing"    column="c_is_oxidizing"    />
        <result property="cIsExplosive"    column="c_is_explosive"    />
        <result property="cIsCorrosive"    column="c_is_corrosive"    />
        <result property="cIsIrritantToxic"    column="c_is_irritant_toxic"    />
        <result property="cIsHealthHazard"    column="c_is_health_hazard"    />
        <result property="cIsCompressedGas"    column="c_is_compressed_gas"    />
        <result property="cIsEnvironmentalHazard"    column="c_is_environmental_hazard"    />
        <result property="cIsHighTemp"    column="c_is_high_temp"    />
        <result property="cIsLowTemp"    column="c_is_low_temp"    />
        <result property="cIsPosPressure"    column="c_is_pos_pressure"    />
        <result property="cIsNegPressure"    column="c_is_neg_pressure"    />
        <result property="cIsMovingParts"    column="c_is_moving_parts"    />
        <result property="cIsHotSurfaces"    column="c_is_hot_surfaces"    />
        <result property="cIsColdSurfaces"    column="c_is_cold_surfaces"    />
        <result property="cIsVoltages"    column="c_is_voltages"    />
        <result property="cIsWorkProtective"    column="c_is_work_protective"    />
        <result property="cIsHazardsProd"    column="c_is_hazards_prod"    />
        <result property="cIsHazardsProdContent"    column="c_is_hazards_prod_content"    />
        <result property="cIsWorkToFire"    column="c_is_work_to_fire"    />
        <result property="cIsWorkToBlast"    column="c_is_work_to_blast"    />
        <result property="cIsWorkToEnvir"    column="c_is_work_to_envir"    />
        <result property="cIsDeviceToBlast"    column="c_is_device_to_blast"    />
        <result property="cIsOtherId"    column="c_is_other_id"    />
        <result property="cOtherId"    column="c_other_id"    />
        <result property="cIsOtherFire"    column="c_is_other_fire"    />
        <result property="cOtherFireContent"    column="c_other_fire_content"    />
        <result property="dIsDivide"    column="d_is_divide"    />
        <result property="dDivideContent"    column="d_divide_content"    />
        <result property="dIsSlicing"    column="d_is_slicing"    />
        <result property="dSlicingContent"    column="d_slicing_content"    />
        <result property="dIsOpenSafe"    column="d_is_open_safe"    />
        <result property="dIsBreakIncl"    column="d_is_break_incl"    />
        <result property="dBreakInclContent"    column="d_break_incl_content"    />
        <result property="dEleCircuitNo"    column="d_ele_circuit_no"    />
        <result property="dInsTagNo"    column="d_ins_tag_no"    />
        <result property="dIsRadioactiveSources"    column="d_is_radioactive_sources"    />
        <result property="dIsOtherEquSafe"    column="d_is_other_equ_safe"    />
        <result property="dIsOtherEquSafeContent"    column="d_is_other_equ_safe_content"    />
        <result property="dIsDepress"    column="d_is_depress"    />
        <result property="dIsSingleBlocking"    column="d_is_single_blocking"    />
        <result property="dIsDoubleBlock"    column="d_is_double_block"    />
        <result property="dIsLockoutUsing"    column="d_is_lockout_using"    />
        <result property="dLockoutUsingContent"    column="d_lockout_using_content"    />
        <result property="dIsRemovePipe"    column="d_is_remove_pipe"    />
        <result property="dIsDisPipes"    column="d_is_dis_pipes"    />
        <result property="dIsInsertBlindPlage"    column="d_is_insert_blind_plage"    />
        <result property="dIsMecSecure"    column="d_is_mec_secure"    />
        <result property="dMecSecureContent"    column="d_mec_secure_content"    />
        <result property="dIsClean"    column="d_is_clean"    />
        <result property="dCleanContent"    column="d_clean_content"    />
        <result property="dIsFlush"    column="d_is_flush"    />
        <result property="dFlushContent"    column="d_flush_content"    />
        <result property="dIsFloodWater"    column="d_is_flood_water"    />
        <result property="dIsProInertGas"    column="d_is_pro_inert_gas"    />
        <result property="dProInertGasContent"    column="d_pro_inert_gas_content"    />
        <result property="dIsGasAnalysis"    column="d_is_gas_analysis"    />
        <result property="dGasAnalysisContent"    column="d_gas_analysis_content"    />
        <result property="dIsOtherDevSafe"    column="d_is_other_dev_safe"    />
        <result property="dOtherDevSafeContent"    column="d_other_dev_safe_content"    />
        <result property="dIsSiteDemarcation"    column="d_is_site_demarcation"    />
        <result property="dSiteDemarcationContent"    column="d_site_demarcation_content"    />
        <result property="dIsCloseTrucks"    column="d_is_close_trucks"    />
        <result property="dIsDistance"    column="d_is_distance"    />
        <result property="dDistanceContent"    column="d_distance_content"    />
        <result property="dIsCleanCover"    column="d_is_clean_cover"    />
        <result property="dIsLeakFlanges"    column="d_is_leak_flanges"    />
        <result property="dIsCleanAround"    column="d_is_clean_around"    />
        <result property="dIsVentilate"    column="d_is_ventilate"    />
        <result property="dIsMecVen"    column="d_is_mec_ven"    />
        <result property="dMecVenContent"    column="d_mec_ven_content"    />
        <result property="dIsNaturalVen"    column="d_is_natural_ven"    />
        <result property="dNaturalVenContent"    column="d_natural_ven_content"    />
        <result property="dIsGasDetection"    column="d_is_gas_detection"    />
        <result property="dGasDetectionContent"    column="d_gas_detection_content"    />
        <result property="dIsOtherAreaSafe"    column="d_is_other_area_safe"    />
        <result property="dOtherAreaSafeContent"    column="d_other_area_safe_content"    />
        <result property="dIsAlarmSystems"    column="d_is_alarm_systems"    />
        <result property="dAlarmSystemsContent"    column="d_alarm_systems_content"    />
        <result property="dIsOtherMeasure"    column="d_is_other_measure"    />
        <result property="dOtherMeasureContent"    column="d_other_measure_content"    />
        <result property="dDangerArea61"    column="d_danger_area61"    />
        <result property="dDangerLeader61"    column="d_danger_leader61"    />
        <result property="dDangerLeaderDate61"    column="d_danger_leader_date61"    />
        <result property="dDangerOffice61"    column="d_danger_office61"    />
        <result property="dDangerOfficeTel61"    column="d_danger_office_tel61"    />
        <result property="dDangerOtherMeasure61"    column="d_danger_other_measure61"    />
        <result property="dDangerArea62"    column="d_danger_area62"    />
        <result property="dDangerLeader62"    column="d_danger_leader62"    />
        <result property="dDangerLeaderDate62"    column="d_danger_leader_date62"    />
        <result property="dDangerOffice62"    column="d_danger_office62"    />
        <result property="dDangerOfficeTel62"    column="d_danger_office_tel62"    />
        <result property="dDangerOtherMeasure62"    column="d_danger_other_measure62"    />
        <result property="dPartakeBriefingSign"    column="d_partake_briefing_sign"    />
        <result property="dPartakeBriefingDate"    column="d_partake_briefing_date"    />
        <result property="dSafeImplSign11"    column="d_safe_impl_sign11"    />
        <result property="dSafeImplDate11"    column="d_safe_impl_date11"    />
        <result property="dSafeImplSign12"    column="d_safe_impl_sign12"    />
        <result property="dSafeImplDate12"    column="d_safe_impl_date12"    />
        <result property="dSafeImplDate21"    column="d_safe_impl_date21"    />
        <result property="dSafeImplSign21"    column="d_safe_impl_sign21"    />
        <result property="dSafeLiftedSign21"    column="d_safe_lifted_sign21"    />
        <result property="dSafeLiftedDate21"    column="d_safe_lifted_date21"    />
        <result property="dSafeImplDate22"    column="d_safe_impl_date22"    />
        <result property="dSafeImplSign22"    column="d_safe_impl_sign22"    />
        <result property="dSafeLiftedSign22"    column="d_safe_lifted_sign22"    />
        <result property="dSafeLiftedDate22"    column="d_safe_lifted_date22"    />
        <result property="dSafeImplDate23"    column="d_safe_impl_date23"    />
        <result property="dSafeImplSign23"    column="d_safe_impl_sign23"    />
        <result property="dSafeLiftedSign23"    column="d_safe_lifted_sign23"    />
        <result property="dSafeLiftedDate23"    column="d_safe_lifted_date23"    />
        <result property="dSafeImplDate24"    column="d_safe_impl_date24"    />
        <result property="dSafeImplSign24"    column="d_safe_impl_sign24"    />
        <result property="dSafeLiftedSign24"    column="d_safe_lifted_sign24"    />
        <result property="dSafeLiftedDate24"    column="d_safe_lifted_date24"    />
        <result property="dSafeImplDate31"    column="d_safe_impl_date31"    />
        <result property="dSafeImplSign31"    column="d_safe_impl_sign31"    />
        <result property="dSafeImplDate32"    column="d_safe_impl_date32"    />
        <result property="dSafeImplSign32"    column="d_safe_impl_sign32"    />
        <result property="dSafeLiftedSign32"    column="d_safe_lifted_sign32"    />
        <result property="dSafeLiftedDate32"    column="d_safe_lifted_date32"    />
        <result property="dSafeImplDate33"    column="d_safe_impl_date33"    />
        <result property="dSafeImplSign33"    column="d_safe_impl_sign33"    />
        <result property="dSafeLiftedSign33"    column="d_safe_lifted_sign33"    />
        <result property="dSafeLiftedDate33"    column="d_safe_lifted_date33"    />
        <result property="dSafeImplDate34"    column="d_safe_impl_date34"    />
        <result property="dSafeImplSign34"    column="d_safe_impl_sign34"    />
        <result property="dSafeLiftedSign34"    column="d_safe_lifted_sign34"    />
        <result property="dSafeLiftedDate34"    column="d_safe_lifted_date34"    />
        <result property="dSafeImplDate35"    column="d_safe_impl_date35"    />
        <result property="dSafeImplSign35"    column="d_safe_impl_sign35"    />
        <result property="dSafeLiftedSign35"    column="d_safe_lifted_sign35"    />
        <result property="dSafeLiftedDate35"    column="d_safe_lifted_date35"    />
        <result property="dSafeImplDate36"    column="d_safe_impl_date36"    />
        <result property="dSafeImplSign36"    column="d_safe_impl_sign36"    />
        <result property="dSafeLiftedSign36"    column="d_safe_lifted_sign36"    />
        <result property="dSafeLiftedDate36"    column="d_safe_lifted_date36"    />
        <result property="dSafeImplDate37"    column="d_safe_impl_date37"    />
        <result property="dSafeImplSign37"    column="d_safe_impl_sign37"    />
        <result property="dSafeLiftedSign37"    column="d_safe_lifted_sign37"    />
        <result property="dSafeLiftedDate37"    column="d_safe_lifted_date37"    />
        <result property="dSafeImplDate38"    column="d_safe_impl_date38"    />
        <result property="dSafeImplSign38"    column="d_safe_impl_sign38"    />
        <result property="dSafeLiftedSign38"    column="d_safe_lifted_sign38"    />
        <result property="dSafeLiftedDate38"    column="d_safe_lifted_date38"    />
        <result property="dSafeImplDate39"    column="d_safe_impl_date39"    />
        <result property="dSafeImplSign39"    column="d_safe_impl_sign39"    />
        <result property="dSafeImplDate310"    column="d_safe_impl_date310"    />
        <result property="dSafeImplSign310"    column="d_safe_impl_sign310"    />
        <result property="dSafeImplDate311"    column="d_safe_impl_date311"    />
        <result property="dSafeImplSign311"    column="d_safe_impl_sign311"    />
        <result property="dSafeLiftedSign311"    column="d_safe_lifted_sign311"    />
        <result property="dSafeLiftedDate311"    column="d_safe_lifted_date311"    />
        <result property="dSafeImplDate312"    column="d_safe_impl_date312"    />
        <result property="dSafeImplSign312"    column="d_safe_impl_sign312"    />
        <result property="dSafeLiftedSign312"    column="d_safe_lifted_sign312"    />
        <result property="dSafeLiftedDate312"    column="d_safe_lifted_date312"    />
        <result property="dSafeImplDate313"    column="d_safe_impl_date313"    />
        <result property="dSafeImplSign313"    column="d_safe_impl_sign313"    />
        <result property="dSafeImplDate314"    column="d_safe_impl_date314"    />
        <result property="dSafeImplSign314"    column="d_safe_impl_sign314"    />
        <result property="dSafeLiftedSign314"    column="d_safe_lifted_sign314"    />
        <result property="dSafeLiftedDate314"    column="d_safe_lifted_date314"    />
        <result property="dSafeImplSign41"    column="d_safe_impl_sign41"    />
        <result property="dSafeImplDate41"    column="d_safe_impl_date41"    />
        <result property="dSafeLiftedSign41"    column="d_safe_lifted_sign41"    />
        <result property="dSafeLiftedDate41"    column="d_safe_lifted_date41"    />
        <result property="dSafeImplSign42"    column="d_safe_impl_sign42"    />
        <result property="dSafeImplDate42"    column="d_safe_impl_date42"    />
        <result property="dSafeLiftedSign42"    column="d_safe_lifted_sign42"    />
        <result property="dSafeLiftedDate42"    column="d_safe_lifted_date42"    />
        <result property="dSafeImplSign43"    column="d_safe_impl_sign43"    />
        <result property="dSafeImplDate43"    column="d_safe_impl_date43"    />
        <result property="dSafeLiftedSign44"    column="d_safe_lifted_sign44"    />
        <result property="dSafeLiftedDate44"    column="d_safe_lifted_date44"    />
        <result property="dSafeImplSign44"    column="d_safe_impl_sign44"    />
        <result property="dSafeImplDate44"    column="d_safe_impl_date44"    />
        <result property="dSafeImplSign45"    column="d_safe_impl_sign45"    />
        <result property="dSafeImplDate45"    column="d_safe_impl_date45"    />
        <result property="dSafeLiftedSign45"    column="d_safe_lifted_sign45"    />
        <result property="dSafeLiftedDate45"    column="d_safe_lifted_date45"    />
        <result property="dSafeImplSign46"    column="d_safe_impl_sign46"    />
        <result property="dSafeImplDate46"    column="d_safe_impl_date46"    />
        <result property="dSafeLiftedSign46"    column="d_safe_lifted_sign46"    />
        <result property="dSafeLiftedDate46"    column="d_safe_lifted_date46"    />
        <result property="dSafeImplSign47"    column="d_safe_impl_sign47"    />
        <result property="dSafeImplDate47"    column="d_safe_impl_date47"    />
        <result property="dSafeLiftedSign47"    column="d_safe_lifted_sign47"    />
        <result property="dSafeLiftedDate47"    column="d_safe_lifted_date47"    />
        <result property="dSafeImplSign48"    column="d_safe_impl_sign48"    />
        <result property="dSafeImplDate48"    column="d_safe_impl_date48"    />
        <result property="dSafeImplSign49"    column="d_safe_impl_sign49"    />
        <result property="dSafeImplDate49"    column="d_safe_impl_date49"    />
        <result property="dSafeLiftedSign49"    column="d_safe_lifted_sign49"    />
        <result property="dSafeLiftedDate49"    column="d_safe_lifted_date49"    />
        <result property="dSafeImplSign51"    column="d_safe_impl_sign51"    />
        <result property="dSafeImplDate51"    column="d_safe_impl_date51"    />
        <result property="dSafeLiftedSign51"    column="d_safe_lifted_sign51"    />
        <result property="dSafeLiftedDate51"    column="d_safe_lifted_date51"    />
        <result property="dSafeImplSign52"    column="d_safe_impl_sign52"    />
        <result property="dSafeImplDate52"    column="d_safe_impl_date52"    />
        <result property="dSafeLiftedSign52"    column="d_safe_lifted_sign52"    />
        <result property="dSafeLiftedDate52"    column="d_safe_lifted_date52"    />
        <result property="eIsPresent"    column="e_is_present"    />
        <result property="eIsRequiredPpe"    column="e_is_required_ppe"    />
        <result property="ePpeContent"    column="e_ppe_content"    />
        <result property="eIsSafeGoggles"    column="e_is_safe_goggles"    />
        <result property="eIsFaceShield"    column="e_is_face_shield"    />
        <result property="eIsOther21"    column="e_is_other21"    />
        <result property="eOther21Content"    column="e_other21_content"    />
        <result property="eIsProtectGloves"    column="e_is_protect_gloves"    />
        <result property="eProtectGlovesContent"    column="e_protect_gloves_content"    />
        <result property="eIsRubberBoots"    column="e_is_rubber_boots"    />
        <result property="eIsRubberApron"    column="e_is_rubber_apron"    />
        <result property="eIsOther23"    column="e_is_other23"    />
        <result property="eIsOther23Content"    column="e_is_other23_content"    />
        <result property="eIsProtectSuit"    column="e_is_protect_suit"    />
        <result property="eProtectSuitContent"    column="e_protect_suit_content"    />
        <result property="eIsResProtect"    column="e_is_res_protect"    />
        <result property="eResProtectContent"    column="e_res_protect_content"    />
        <result property="eIsHearProtect"    column="e_is_hear_protect"    />
        <result property="eHearProtectContent"    column="e_hear_protect_content"    />
        <result property="eIsFallArrest"    column="e_is_fall_arrest"    />
        <result property="eFallArrestContent"    column="e_fall_arrest_content"    />
        <result property="eIsOtherProtect"    column="e_is_other_protect"    />
        <result property="eOtherProtectContent"    column="e_other_protect_content"    />
        <result property="eIsContineCheckAir"    column="e_is_contine_check_air"    />
        <result property="eIsKeepWet"    column="e_is_keep_wet"    />
        <result property="eIsCheckInertGasPro"    column="e_is_check_inert_gas_pro"    />
        <result property="eIsWaterPro"    column="e_is_water_pro"    />
        <result property="eIsKeepCheck"    column="e_is_keep_check"    />
        <result property="eIsFireWaterPipe"    column="e_is_fire_water_pipe"    />
        <result property="eIsProFireExt"    column="e_is_pro_fire_ext"    />
        <result property="eFireExtType"    column="e_fire_ext_type"    />
        <result property="eFireExtNum"    column="e_fire_ext_num"    />
        <result property="eLeaderUnit"    column="e_leader_unit"    />
        <result property="eLeaderName"    column="e_leader_name"    />
        <result property="eIsCapture"    column="e_is_capture"    />
        <result property="eIsNaturalVen"    column="e_is_natural_ven"    />
        <result property="eNaturalVenContent"    column="e_natural_ven_content"    />
        <result property="eIsMecVen"    column="e_is_mec_ven"    />
        <result property="eMecVenContent"    column="e_mec_ven_content"    />
        <result property="eIsExxtractDust"    column="e_is_exxtract_dust"    />
        <result property="eIsAnalyzeAir"    column="e_is_analyze_air"    />
        <result property="eAnalyzeAirContent"    column="e_analyze_air_content"    />
        <result property="eAnalyzeAirInterval"    column="e_analyze_air_interval"    />
        <result property="fIsFireEndCheck"    column="f_is_fire_end_check"    />
        <result property="fProfessional"    column="f_professional"    />
        <result property="fIsNoticeD"    column="f_is_notice_d"    />
        <result property="fIsOtherSafeMeasures"    column="f_is_other_safe_measures"    />
        <result property="fOtherSafeMeasuresContent"    column="f_other_safe_measures_content"    />
        <result property="gFirstSign"    column="g_first_sign"    />
        <result property="gFirstDate"    column="g_first_date"    />
        <result property="gSecondSign"    column="g_second_sign"    />
        <result property="gSecondDate"    column="g_second_date"    />
        <result property="gThirdSign"    column="g_third_sign"    />
        <result property="gThirdDate"    column="g_third_date"    />
        <result property="gIsSpecialAssessment"    column="g_is_special_assessment"    />
        <result property="gSpecialAssessment"    column="g_special_assessment"    />
        <result property="hSafeMesSign"    column="h_safe_mes_sign"    />
        <result property="hSafeMesDate"    column="h_safe_mes_date"    />
        <result property="hSafeMesA4Sign"    column="h_safe_mes_a4_sign"    />
        <result property="hSafeMesA4Date"    column="h_safe_mes_a4_date"    />
        <result property="iOneASign"    column="i_one_a_sign"    />
        <result property="iOneADate"    column="i_one_a_date"    />
        <result property="iOneBSign"    column="i_one_b_sign"    />
        <result property="iOneBDate"    column="i_one_b_date"    />
        <result property="jOneBSign"    column="j_one_b_sign"    />
        <result property="jOneBDate"    column="j_one_b_date"    />
        <result property="jResMemberSign"    column="j_res_member_sign"    />
        <result property="jResMemberDate"    column="j_res_member_date"    />
        <result property="jEISign"    column="j_e_i_sign"    />
        <result property="jEIDate"    column="j_e_i_date"    />
        <result property="kConfirmSign"    column="k_confirm_sign"    />
        <result property="kConfirmDate"    column="k_confirm_date"    />
        <result property="lNoticeSign"    column="l_notice_sign"    />
        <result property="lNoticeDate"    column="l_notice_date"    />
        <result property="mAssessDContent"    column="m_assess_d_content"    />
        <result property="mAssessDSign"    column="m_assess_d_sign"    />
        <result property="mAssessDDate"    column="m_assess_d_date"    />
        <result property="mOtherLicenceOne"    column="m_other_licence_one"    />
        <result property="mOtherLicenceTwo"    column="m_other_licence_two"    />
        <result property="mOtherLicenceThree"    column="m_other_licence_three"    />
        <result property="wordUrl"    column="word_url"    />
        <result property="pdfUrl"    column="pdf_url"    />
        <result property="dIsDisFeeder"    column="d_is_dis_feeder"    />
        <result property="eIsFaceSafe"    column="e_is_face_safe"    />
        <result property="eIsFeetSafe"    column="e_is_feet_safe"    />
        <result property="eIsVentilate"    column="e_is_ventilate"    />
        <result property="cIsFacilityHazards"    column="c_is_facility_hazards"    />
        <result property="cIsEquipmentHazards"    column="c_is_equipment_hazards"    />
    </resultMap>

    <sql id="selectTPermitFireWorkVo">
        select d.c_is_equipment_hazards,d.c_is_facility_hazards,d.h_id, d.a_equipment_name, d.a_equipment_leader, d.a_equipment_tel, d.a_equipment_office, d.a_construction_name, d.a_construction_leader, d.a_construction_tel, d.a_construction_office, d.a_contractor_name, d.a_contractor_leader, d.a_contractor_tel, d.a_contractor_office, d.a_is_need_safe_liaison, d.a_safe_liaison_name, d.a_safe_liaison_sign, d.a_safe_liaison_tel, d.a_safe_liaison_office, d.b_device_name, d.b_area_no, d.b_work_content, d.b_validity_start_time, d.b_validity_end_time, d.b_fire_work_grade, d.c_harm_matter_name, d.c_is_ghs, d.c_is_toxic, d.c_is_flammable, d.c_is_oxidizing, d.c_is_explosive, d.c_is_corrosive, d.c_is_irritant_toxic, d.c_is_health_hazard, d.c_is_compressed_gas, d.c_is_environmental_hazard, d.c_is_high_temp, d.c_is_low_temp, d.c_is_pos_pressure, d.c_is_neg_pressure, d.c_is_moving_parts, d.c_is_hot_surfaces, d.c_is_cold_surfaces, d.c_is_voltages, d.c_is_work_protective, d.c_is_hazards_prod, d.c_is_hazards_prod_content, d.c_is_work_to_fire, d.c_is_work_to_blast, d.c_is_work_to_envir, d.c_is_device_to_blast, d.c_is_other_id, d.c_other_id, d.c_is_other_fire, d.c_other_fire_content, d.d_is_divide, d.d_divide_content, d.d_is_slicing, d.d_slicing_content, d.d_is_open_safe, d.d_is_break_incl, d.d_break_incl_content, d.d_ele_circuit_no, d.d_ins_tag_no, d.d_is_radioactive_sources, d.d_is_other_equ_safe, d.d_is_other_equ_safe_content, d.d_is_depress, d.d_is_single_blocking, d.d_is_double_block, d.d_is_lockout_using, d.d_lockout_using_content, d.d_is_remove_pipe, d.d_is_dis_pipes, d.d_is_insert_blind_plage, d.d_is_mec_secure, d.d_mec_secure_content, d.d_is_clean, d.d_clean_content, d.d_is_flush, d.d_flush_content, d.d_is_flood_water, d.d_is_pro_inert_gas, d.d_pro_inert_gas_content, d.d_is_gas_analysis, d.d_gas_analysis_content, d.d_is_other_dev_safe, d.d_other_dev_safe_content, d.d_is_site_demarcation, d.d_site_demarcation_content, d.d_is_close_trucks, d.d_is_distance, d.d_distance_content, d.d_is_clean_cover, d.d_is_leak_flanges, d.d_is_clean_around, d.d_is_ventilate, d.d_is_mec_ven, d.d_mec_ven_content, d.d_is_natural_ven, d.d_natural_ven_content, d.d_is_gas_detection, d.d_gas_detection_content, d.d_is_other_area_safe, d.d_other_area_safe_content, d.d_is_alarm_systems, d.d_alarm_systems_content, d.d_is_other_measure, d.d_other_measure_content, d.d_danger_area61, d.d_danger_leader61, d.d_danger_leader_date61, d.d_danger_office61, d.d_danger_office_tel61, d.d_danger_other_measure61, d.d_danger_area62, d.d_danger_leader62, d.d_danger_leader_date62, d.d_danger_office62, d.d_danger_office_tel62, d.d_danger_other_measure62, d.d_partake_briefing_sign, d.d_partake_briefing_date, d.d_safe_impl_sign11, d.d_safe_impl_date11, d.d_safe_impl_sign12, d.d_safe_impl_date12, d.d_safe_impl_date21, d.d_safe_impl_sign21, d.d_safe_lifted_sign21, d.d_safe_lifted_date21, d.d_safe_impl_date22, d.d_safe_impl_sign22, d.d_safe_lifted_sign22, d.d_safe_lifted_date22, d.d_safe_impl_date23, d.d_safe_impl_sign23, d.d_safe_lifted_sign23, d.d_safe_lifted_date23, d.d_safe_impl_date24, d.d_safe_impl_sign24, d.d_safe_lifted_sign24, d.d_safe_lifted_date24, d.d_safe_impl_date31, d.d_safe_impl_sign31, d.d_safe_impl_date32, d.d_safe_impl_sign32, d.d_safe_lifted_sign32, d.d_safe_lifted_date32, d.d_safe_impl_date33, d.d_safe_impl_sign33, d.d_safe_lifted_sign33, d.d_safe_lifted_date33, d.d_safe_impl_date34, d.d_safe_impl_sign34, d.d_safe_lifted_sign34, d.d_safe_lifted_date34, d.d_safe_impl_date35, d.d_safe_impl_sign35, d.d_safe_lifted_sign35, d.d_safe_lifted_date35, d.d_safe_impl_date36, d.d_safe_impl_sign36, d.d_safe_lifted_sign36, d.d_safe_lifted_date36, d.d_safe_impl_date37, d.d_safe_impl_sign37, d.d_safe_lifted_sign37, d.d_safe_lifted_date37, d.d_safe_impl_date38, d.d_safe_impl_sign38, d.d_safe_lifted_sign38, d.d_safe_lifted_date38, d.d_safe_impl_date39, d.d_safe_impl_sign39, d.d_safe_impl_date310, d.d_safe_impl_sign310, d.d_safe_impl_date311, d.d_safe_impl_sign311, d.d_safe_lifted_sign311, d.d_safe_lifted_date311, d.d_safe_impl_date312, d.d_safe_impl_sign312, d.d_safe_lifted_sign312, d.d_safe_lifted_date312, d.d_safe_impl_date313, d.d_safe_impl_sign313, d.d_safe_impl_date314, d.d_safe_impl_sign314, d.d_safe_lifted_sign314, d.d_safe_lifted_date314, d.d_safe_impl_sign41, d.d_safe_impl_date41, d.d_safe_lifted_sign41, d.d_safe_lifted_date41, d.d_safe_impl_sign42, d.d_safe_impl_date42, d.d_safe_lifted_sign42, d.d_safe_lifted_date42, d.d_safe_impl_sign43, d.d_safe_impl_date43, d.d_safe_lifted_sign44, d.d_safe_lifted_date44, d.d_safe_impl_sign44, d.d_safe_impl_date44, d.d_safe_impl_sign45, d.d_safe_impl_date45, d.d_safe_lifted_sign45, d.d_safe_lifted_date45, d.d_safe_impl_sign46, d.d_safe_impl_date46, d.d_safe_lifted_sign46, d.d_safe_lifted_date46, d.d_safe_impl_sign47, d.d_safe_impl_date47, d.d_safe_lifted_sign47, d.d_safe_lifted_date47, d.d_safe_impl_sign48, d.d_safe_impl_date48, d.d_safe_impl_sign49, d.d_safe_impl_date49, d.d_safe_lifted_sign49, d.d_safe_lifted_date49, d.d_safe_impl_sign51, d.d_safe_impl_date51, d.d_safe_lifted_sign51, d.d_safe_lifted_date51, d.d_safe_impl_sign52, d.d_safe_impl_date52, d.d_safe_lifted_sign52, d.d_safe_lifted_date52, d.e_is_present, d.e_is_required_ppe, d.e_ppe_content, d.e_is_safe_goggles, d.e_is_face_shield, d.e_is_other21, d.e_other21_content, d.e_is_protect_gloves, d.e_protect_gloves_content, d.e_is_rubber_boots, d.e_is_rubber_apron, d.e_is_other23, d.e_is_other23_content, d.e_is_protect_suit, d.e_protect_suit_content, d.e_is_res_protect, d.e_res_protect_content, d.e_is_hear_protect, d.e_hear_protect_content, d.e_is_fall_arrest, d.e_fall_arrest_content, d.e_is_other_protect, d.e_other_protect_content, d.e_is_contine_check_air, d.e_is_keep_wet, d.e_is_check_inert_gas_pro, d.e_is_water_pro, d.e_is_keep_check, d.e_is_fire_water_pipe, d.e_is_pro_fire_ext, d.e_fire_ext_type, d.e_fire_ext_num, d.e_leader_unit, d.e_leader_name, d.e_is_capture, d.e_is_natural_ven, d.e_natural_ven_content, d.e_is_mec_ven, d.e_mec_ven_content, d.e_is_exxtract_dust, d.e_is_analyze_air, d.e_analyze_air_content, d.e_analyze_air_interval, d.f_is_fire_end_check, d.f_professional, d.f_is_notice_d, d.f_is_other_safe_measures, d.f_other_safe_measures_content, d.g_first_sign, d.g_first_date, d.g_second_sign, d.g_second_date, d.g_third_sign, d.g_third_date, d.g_is_special_assessment, d.g_special_assessment, d.h_safe_mes_sign, d.h_safe_mes_date, d.h_safe_mes_a4_sign, d.h_safe_mes_a4_date, d.i_one_a_sign, d.i_one_a_date, d.i_one_b_sign, d.i_one_b_date, d.j_one_b_sign, d.j_one_b_date, d.j_res_member_sign, d.j_res_member_date, d.j_e_i_sign, d.j_e_i_date, d.k_confirm_sign, d.k_confirm_date, d.l_notice_sign, d.l_notice_date, d.m_assess_d_content, d.m_assess_d_sign, d.m_assess_d_date, d.m_other_licence_one, d.m_other_licence_two, d.m_other_licence_three, d.word_url, d.pdf_url, d.d_is_dis_feeder, d.e_is_face_safe, d.e_is_feet_safe, d.e_is_ventilate  from t_permit_fire_work d
    </sql>

    <select id="selectTPermitFireWorkList" parameterType="TPermitFireWork" resultMap="TPermitFireWorkResult">
        <include refid="selectTPermitFireWorkVo"/>
        <where>
            <if test="aEquipmentName != null  and aEquipmentName != ''"> and a_equipment_name like concat(concat('%', #{aEquipmentName}), '%')</if>
            <if test="aEquipmentLeader != null  and aEquipmentLeader != ''"> and a_equipment_leader = #{aEquipmentLeader}</if>
            <if test="aEquipmentTel != null  and aEquipmentTel != ''"> and a_equipment_tel = #{aEquipmentTel}</if>
            <if test="aEquipmentOffice != null  and aEquipmentOffice != ''"> and a_equipment_office = #{aEquipmentOffice}</if>
            <if test="aConstructionName != null  and aConstructionName != ''"> and a_construction_name like concat(concat('%', #{aConstructionName}), '%')</if>
            <if test="aConstructionLeader != null  and aConstructionLeader != ''"> and a_construction_leader = #{aConstructionLeader}</if>
            <if test="aConstructionTel != null  and aConstructionTel != ''"> and a_construction_tel = #{aConstructionTel}</if>
            <if test="aConstructionOffice != null  and aConstructionOffice != ''"> and a_construction_office = #{aConstructionOffice}</if>
            <if test="aContractorName != null  and aContractorName != ''"> and a_contractor_name like concat(concat('%', #{aContractorName}), '%')</if>
            <if test="aContractorLeader != null  and aContractorLeader != ''"> and a_contractor_leader = #{aContractorLeader}</if>
            <if test="aContractorTel != null  and aContractorTel != ''"> and a_contractor_tel = #{aContractorTel}</if>
            <if test="aContractorOffice != null  and aContractorOffice != ''"> and a_contractor_office = #{aContractorOffice}</if>
            <if test="aIsNeedSafeLiaison != null "> and a_is_need_safe_liaison = #{aIsNeedSafeLiaison}</if>
            <if test="aSafeLiaisonName != null  and aSafeLiaisonName != ''"> and a_safe_liaison_name like concat(concat('%', #{aSafeLiaisonName}), '%')</if>
            <if test="aSafeLiaisonSign != null  and aSafeLiaisonSign != ''"> and a_safe_liaison_sign = #{aSafeLiaisonSign}</if>
            <if test="aSafeLiaisonTel != null  and aSafeLiaisonTel != ''"> and a_safe_liaison_tel = #{aSafeLiaisonTel}</if>
            <if test="aSafeLiaisonOffice != null  and aSafeLiaisonOffice != ''"> and a_safe_liaison_office = #{aSafeLiaisonOffice}</if>
            <if test="bDeviceName != null  and bDeviceName != ''"> and b_device_name like concat(concat('%', #{bDeviceName}), '%')</if>
            <if test="bAreaNo != null  and bAreaNo != ''"> and b_area_no = #{bAreaNo}</if>
            <if test="bWorkContent != null  and bWorkContent != ''"> and b_work_content = #{bWorkContent}</if>
            <if test="bValidityStartTime != null "> and b_validity_start_time = #{bValidityStartTime}</if>
            <if test="bValidityEndTime != null "> and b_validity_end_time = #{bValidityEndTime}</if>
            <if test="bFireWorkGrade != null "> and b_fire_work_grade = #{bFireWorkGrade}</if>
            <if test="cHarmMatterName != null  and cHarmMatterName != ''"> and c_harm_matter_name like concat(concat('%', #{cHarmMatterName}), '%')</if>
            <if test="cIsGhs != null "> and c_is_ghs = #{cIsGhs}</if>
            <if test="cIsToxic != null "> and c_is_toxic = #{cIsToxic}</if>
            <if test="cIsFlammable != null "> and c_is_flammable = #{cIsFlammable}</if>
            <if test="cIsOxidizing != null "> and c_is_oxidizing = #{cIsOxidizing}</if>
            <if test="cIsExplosive != null "> and c_is_explosive = #{cIsExplosive}</if>
            <if test="cIsCorrosive != null "> and c_is_corrosive = #{cIsCorrosive}</if>
            <if test="cIsIrritantToxic != null "> and c_is_irritant_toxic = #{cIsIrritantToxic}</if>
            <if test="cIsHealthHazard != null "> and c_is_health_hazard = #{cIsHealthHazard}</if>
            <if test="cIsCompressedGas != null "> and c_is_compressed_gas = #{cIsCompressedGas}</if>
            <if test="cIsEnvironmentalHazard != null "> and c_is_environmental_hazard = #{cIsEnvironmentalHazard}</if>
            <if test="cIsHighTemp != null "> and c_is_high_temp = #{cIsHighTemp}</if>
            <if test="cIsLowTemp != null "> and c_is_low_temp = #{cIsLowTemp}</if>
            <if test="cIsPosPressure != null "> and c_is_pos_pressure = #{cIsPosPressure}</if>
            <if test="cIsNegPressure != null "> and c_is_neg_pressure = #{cIsNegPressure}</if>
            <if test="cIsMovingParts != null "> and c_is_moving_parts = #{cIsMovingParts}</if>
            <if test="cIsHotSurfaces != null "> and c_is_hot_surfaces = #{cIsHotSurfaces}</if>
            <if test="cIsColdSurfaces != null "> and c_is_cold_surfaces = #{cIsColdSurfaces}</if>
            <if test="cIsVoltages != null "> and c_is_voltages = #{cIsVoltages}</if>
            <if test="cIsWorkProtective != null "> and c_is_work_protective = #{cIsWorkProtective}</if>
            <if test="cIsHazardsProd != null "> and c_is_hazards_prod = #{cIsHazardsProd}</if>
            <if test="cIsHazardsProdContent != null "> and c_is_hazards_prod_content = #{cIsHazardsProdContent}</if>
            <if test="cIsWorkToFire != null "> and c_is_work_to_fire = #{cIsWorkToFire}</if>
            <if test="cIsWorkToBlast != null "> and c_is_work_to_blast = #{cIsWorkToBlast}</if>
            <if test="cIsWorkToEnvir != null "> and c_is_work_to_envir = #{cIsWorkToEnvir}</if>
            <if test="cIsDeviceToBlast != null "> and c_is_device_to_blast = #{cIsDeviceToBlast}</if>
            <if test="cIsOtherId != null "> and c_is_other_id = #{cIsOtherId}</if>
            <if test="cOtherId != null  and cOtherId != ''"> and c_other_id = #{cOtherId}</if>
            <if test="cIsOtherFire != null "> and c_is_other_fire = #{cIsOtherFire}</if>
            <if test="cOtherFireContent != null  and cOtherFireContent != ''"> and c_other_fire_content = #{cOtherFireContent}</if>
            <if test="dIsDivide != null "> and d_is_divide = #{dIsDivide}</if>
            <if test="dDivideContent != null  and dDivideContent != ''"> and d_divide_content = #{dDivideContent}</if>
            <if test="dIsSlicing != null "> and d_is_slicing = #{dIsSlicing}</if>
            <if test="dSlicingContent != null  and dSlicingContent != ''"> and d_slicing_content = #{dSlicingContent}</if>
            <if test="dIsOpenSafe != null "> and d_is_open_safe = #{dIsOpenSafe}</if>
            <if test="dIsBreakIncl != null "> and d_is_break_incl = #{dIsBreakIncl}</if>
            <if test="dBreakInclContent != null  and dBreakInclContent != ''"> and d_break_incl_content = #{dBreakInclContent}</if>
            <if test="dEleCircuitNo != null  and dEleCircuitNo != ''"> and d_ele_circuit_no = #{dEleCircuitNo}</if>
            <if test="dInsTagNo != null  and dInsTagNo != ''"> and d_ins_tag_no = #{dInsTagNo}</if>
            <if test="dIsRadioactiveSources != null "> and d_is_radioactive_sources = #{dIsRadioactiveSources}</if>
            <if test="dIsOtherEquSafe != null "> and d_is_other_equ_safe = #{dIsOtherEquSafe}</if>
            <if test="dIsOtherEquSafeContent != null "> and d_is_other_equ_safe_content = #{dIsOtherEquSafeContent}</if>
            <if test="dIsDepress != null "> and d_is_depress = #{dIsDepress}</if>
            <if test="dIsSingleBlocking != null "> and d_is_single_blocking = #{dIsSingleBlocking}</if>
            <if test="dIsDoubleBlock != null "> and d_is_double_block = #{dIsDoubleBlock}</if>
            <if test="dIsLockoutUsing != null "> and d_is_lockout_using = #{dIsLockoutUsing}</if>
            <if test="dLockoutUsingContent != null  and dLockoutUsingContent != ''"> and d_lockout_using_content = #{dLockoutUsingContent}</if>
            <if test="dIsRemovePipe != null "> and d_is_remove_pipe = #{dIsRemovePipe}</if>
            <if test="dIsDisPipes != null "> and d_is_dis_pipes = #{dIsDisPipes}</if>
            <if test="dIsInsertBlindPlage != null "> and d_is_insert_blind_plage = #{dIsInsertBlindPlage}</if>
            <if test="dIsMecSecure != null "> and d_is_mec_secure = #{dIsMecSecure}</if>
            <if test="dMecSecureContent != null  and dMecSecureContent != ''"> and d_mec_secure_content = #{dMecSecureContent}</if>
            <if test="dIsClean != null "> and d_is_clean = #{dIsClean}</if>
            <if test="dCleanContent != null  and dCleanContent != ''"> and d_clean_content = #{dCleanContent}</if>
            <if test="dIsFlush != null "> and d_is_flush = #{dIsFlush}</if>
            <if test="dFlushContent != null  and dFlushContent != ''"> and d_flush_content = #{dFlushContent}</if>
            <if test="dIsFloodWater != null "> and d_is_flood_water = #{dIsFloodWater}</if>
            <if test="dIsProInertGas != null "> and d_is_pro_inert_gas = #{dIsProInertGas}</if>
            <if test="dProInertGasContent != null  and dProInertGasContent != ''"> and d_pro_inert_gas_content = #{dProInertGasContent}</if>
            <if test="dIsGasAnalysis != null "> and d_is_gas_analysis = #{dIsGasAnalysis}</if>
            <if test="dGasAnalysisContent != null  and dGasAnalysisContent != ''"> and d_gas_analysis_content = #{dGasAnalysisContent}</if>
            <if test="dIsOtherDevSafe != null "> and d_is_other_dev_safe = #{dIsOtherDevSafe}</if>
            <if test="dOtherDevSafeContent != null  and dOtherDevSafeContent != ''"> and d_other_dev_safe_content = #{dOtherDevSafeContent}</if>
            <if test="dIsSiteDemarcation != null "> and d_is_site_demarcation = #{dIsSiteDemarcation}</if>
            <if test="dSiteDemarcationContent != null  and dSiteDemarcationContent != ''"> and d_site_demarcation_content = #{dSiteDemarcationContent}</if>
            <if test="dIsCloseTrucks != null "> and d_is_close_trucks = #{dIsCloseTrucks}</if>
            <if test="dIsDistance != null "> and d_is_distance = #{dIsDistance}</if>
            <if test="dDistanceContent != null  and dDistanceContent != ''"> and d_distance_content = #{dDistanceContent}</if>
            <if test="dIsCleanCover != null "> and d_is_clean_cover = #{dIsCleanCover}</if>
            <if test="dIsLeakFlanges != null "> and d_is_leak_flanges = #{dIsLeakFlanges}</if>
            <if test="dIsCleanAround != null "> and d_is_clean_around = #{dIsCleanAround}</if>
            <if test="dIsVentilate != null "> and d_is_ventilate = #{dIsVentilate}</if>
            <if test="dIsMecVen != null "> and d_is_mec_ven = #{dIsMecVen}</if>
            <if test="dMecVenContent != null  and dMecVenContent != ''"> and d_mec_ven_content = #{dMecVenContent}</if>
            <if test="dIsNaturalVen != null "> and d_is_natural_ven = #{dIsNaturalVen}</if>
            <if test="dNaturalVenContent != null  and dNaturalVenContent != ''"> and d_natural_ven_content = #{dNaturalVenContent}</if>
            <if test="dIsGasDetection != null "> and d_is_gas_detection = #{dIsGasDetection}</if>
            <if test="dGasDetectionContent != null  and dGasDetectionContent != ''"> and d_gas_detection_content = #{dGasDetectionContent}</if>
            <if test="dIsOtherAreaSafe != null "> and d_is_other_area_safe = #{dIsOtherAreaSafe}</if>
            <if test="dOtherAreaSafeContent != null  and dOtherAreaSafeContent != ''"> and d_other_area_safe_content = #{dOtherAreaSafeContent}</if>
            <if test="dIsAlarmSystems != null "> and d_is_alarm_systems = #{dIsAlarmSystems}</if>
            <if test="dAlarmSystemsContent != null  and dAlarmSystemsContent != ''"> and d_alarm_systems_content = #{dAlarmSystemsContent}</if>
            <if test="dIsOtherMeasure != null "> and d_is_other_measure = #{dIsOtherMeasure}</if>
            <if test="dOtherMeasureContent != null  and dOtherMeasureContent != ''"> and d_other_measure_content = #{dOtherMeasureContent}</if>
            <if test="dDangerArea61 != null  and dDangerArea61 != ''"> and d_danger_area61 = #{dDangerArea61}</if>
            <if test="dDangerLeader61 != null  and dDangerLeader61 != ''"> and d_danger_leader61 = #{dDangerLeader61}</if>
            <if test="dDangerLeaderDate61 != null  and dDangerLeaderDate61 != ''"> and d_danger_leader_date61 = #{dDangerLeaderDate61}</if>
            <if test="dDangerOffice61 != null  and dDangerOffice61 != ''"> and d_danger_office61 = #{dDangerOffice61}</if>
            <if test="dDangerOfficeTel61 != null  and dDangerOfficeTel61 != ''"> and d_danger_office_tel61 = #{dDangerOfficeTel61}</if>
            <if test="dDangerOtherMeasure61 != null  and dDangerOtherMeasure61 != ''"> and d_danger_other_measure61 = #{dDangerOtherMeasure61}</if>
            <if test="dDangerArea62 != null  and dDangerArea62 != ''"> and d_danger_area62 = #{dDangerArea62}</if>
            <if test="dDangerLeader62 != null  and dDangerLeader62 != ''"> and d_danger_leader62 = #{dDangerLeader62}</if>
            <if test="dDangerLeaderDate62 != null  and dDangerLeaderDate62 != ''"> and d_danger_leader_date62 = #{dDangerLeaderDate62}</if>
            <if test="dDangerOffice62 != null  and dDangerOffice62 != ''"> and d_danger_office62 = #{dDangerOffice62}</if>
            <if test="dDangerOfficeTel62 != null  and dDangerOfficeTel62 != ''"> and d_danger_office_tel62 = #{dDangerOfficeTel62}</if>
            <if test="dDangerOtherMeasure62 != null  and dDangerOtherMeasure62 != ''"> and d_danger_other_measure62 = #{dDangerOtherMeasure62}</if>
            <if test="dPartakeBriefingSign != null  and dPartakeBriefingSign != ''"> and d_partake_briefing_sign = #{dPartakeBriefingSign}</if>
            <if test="dPartakeBriefingDate != null "> and d_partake_briefing_date = #{dPartakeBriefingDate}</if>
            <if test="dSafeImplSign11 != null  and dSafeImplSign11 != ''"> and d_safe_impl_sign11 = #{dSafeImplSign11}</if>
            <if test="dSafeImplDate11 != null "> and d_safe_impl_date11 = #{dSafeImplDate11}</if>
            <if test="dSafeImplSign12 != null  and dSafeImplSign12 != ''"> and d_safe_impl_sign12 = #{dSafeImplSign12}</if>
            <if test="dSafeImplDate12 != null "> and d_safe_impl_date12 = #{dSafeImplDate12}</if>
            <if test="dSafeImplDate21 != null "> and d_safe_impl_date21 = #{dSafeImplDate21}</if>
            <if test="dSafeImplSign21 != null  and dSafeImplSign21 != ''"> and d_safe_impl_sign21 = #{dSafeImplSign21}</if>
            <if test="dSafeLiftedSign21 != null  and dSafeLiftedSign21 != ''"> and d_safe_lifted_sign21 = #{dSafeLiftedSign21}</if>
            <if test="dSafeLiftedDate21 != null "> and d_safe_lifted_date21 = #{dSafeLiftedDate21}</if>
            <if test="dSafeImplDate22 != null "> and d_safe_impl_date22 = #{dSafeImplDate22}</if>
            <if test="dSafeImplSign22 != null  and dSafeImplSign22 != ''"> and d_safe_impl_sign22 = #{dSafeImplSign22}</if>
            <if test="dSafeLiftedSign22 != null  and dSafeLiftedSign22 != ''"> and d_safe_lifted_sign22 = #{dSafeLiftedSign22}</if>
            <if test="dSafeLiftedDate22 != null "> and d_safe_lifted_date22 = #{dSafeLiftedDate22}</if>
            <if test="dSafeImplDate23 != null "> and d_safe_impl_date23 = #{dSafeImplDate23}</if>
            <if test="dSafeImplSign23 != null  and dSafeImplSign23 != ''"> and d_safe_impl_sign23 = #{dSafeImplSign23}</if>
            <if test="dSafeLiftedSign23 != null  and dSafeLiftedSign23 != ''"> and d_safe_lifted_sign23 = #{dSafeLiftedSign23}</if>
            <if test="dSafeLiftedDate23 != null "> and d_safe_lifted_date23 = #{dSafeLiftedDate23}</if>
            <if test="dSafeImplDate24 != null "> and d_safe_impl_date24 = #{dSafeImplDate24}</if>
            <if test="dSafeImplSign24 != null  and dSafeImplSign24 != ''"> and d_safe_impl_sign24 = #{dSafeImplSign24}</if>
            <if test="dSafeLiftedSign24 != null  and dSafeLiftedSign24 != ''"> and d_safe_lifted_sign24 = #{dSafeLiftedSign24}</if>
            <if test="dSafeLiftedDate24 != null "> and d_safe_lifted_date24 = #{dSafeLiftedDate24}</if>
            <if test="dSafeImplDate31 != null "> and d_safe_impl_date31 = #{dSafeImplDate31}</if>
            <if test="dSafeImplSign31 != null  and dSafeImplSign31 != ''"> and d_safe_impl_sign31 = #{dSafeImplSign31}</if>
            <if test="dSafeImplDate32 != null "> and d_safe_impl_date32 = #{dSafeImplDate32}</if>
            <if test="dSafeImplSign32 != null  and dSafeImplSign32 != ''"> and d_safe_impl_sign32 = #{dSafeImplSign32}</if>
            <if test="dSafeLiftedSign32 != null  and dSafeLiftedSign32 != ''"> and d_safe_lifted_sign32 = #{dSafeLiftedSign32}</if>
            <if test="dSafeLiftedDate32 != null "> and d_safe_lifted_date32 = #{dSafeLiftedDate32}</if>
            <if test="dSafeImplDate33 != null "> and d_safe_impl_date33 = #{dSafeImplDate33}</if>
            <if test="dSafeImplSign33 != null  and dSafeImplSign33 != ''"> and d_safe_impl_sign33 = #{dSafeImplSign33}</if>
            <if test="dSafeLiftedSign33 != null  and dSafeLiftedSign33 != ''"> and d_safe_lifted_sign33 = #{dSafeLiftedSign33}</if>
            <if test="dSafeLiftedDate33 != null "> and d_safe_lifted_date33 = #{dSafeLiftedDate33}</if>
            <if test="dSafeImplDate34 != null "> and d_safe_impl_date34 = #{dSafeImplDate34}</if>
            <if test="dSafeImplSign34 != null  and dSafeImplSign34 != ''"> and d_safe_impl_sign34 = #{dSafeImplSign34}</if>
            <if test="dSafeLiftedSign34 != null  and dSafeLiftedSign34 != ''"> and d_safe_lifted_sign34 = #{dSafeLiftedSign34}</if>
            <if test="dSafeLiftedDate34 != null "> and d_safe_lifted_date34 = #{dSafeLiftedDate34}</if>
            <if test="dSafeImplDate35 != null "> and d_safe_impl_date35 = #{dSafeImplDate35}</if>
            <if test="dSafeImplSign35 != null  and dSafeImplSign35 != ''"> and d_safe_impl_sign35 = #{dSafeImplSign35}</if>
            <if test="dSafeLiftedSign35 != null  and dSafeLiftedSign35 != ''"> and d_safe_lifted_sign35 = #{dSafeLiftedSign35}</if>
            <if test="dSafeLiftedDate35 != null "> and d_safe_lifted_date35 = #{dSafeLiftedDate35}</if>
            <if test="dSafeImplDate36 != null "> and d_safe_impl_date36 = #{dSafeImplDate36}</if>
            <if test="dSafeImplSign36 != null  and dSafeImplSign36 != ''"> and d_safe_impl_sign36 = #{dSafeImplSign36}</if>
            <if test="dSafeLiftedSign36 != null  and dSafeLiftedSign36 != ''"> and d_safe_lifted_sign36 = #{dSafeLiftedSign36}</if>
            <if test="dSafeLiftedDate36 != null "> and d_safe_lifted_date36 = #{dSafeLiftedDate36}</if>
            <if test="dSafeImplDate37 != null "> and d_safe_impl_date37 = #{dSafeImplDate37}</if>
            <if test="dSafeImplSign37 != null  and dSafeImplSign37 != ''"> and d_safe_impl_sign37 = #{dSafeImplSign37}</if>
            <if test="dSafeLiftedSign37 != null  and dSafeLiftedSign37 != ''"> and d_safe_lifted_sign37 = #{dSafeLiftedSign37}</if>
            <if test="dSafeLiftedDate37 != null "> and d_safe_lifted_date37 = #{dSafeLiftedDate37}</if>
            <if test="dSafeImplDate38 != null "> and d_safe_impl_date38 = #{dSafeImplDate38}</if>
            <if test="dSafeImplSign38 != null  and dSafeImplSign38 != ''"> and d_safe_impl_sign38 = #{dSafeImplSign38}</if>
            <if test="dSafeLiftedSign38 != null  and dSafeLiftedSign38 != ''"> and d_safe_lifted_sign38 = #{dSafeLiftedSign38}</if>
            <if test="dSafeLiftedDate38 != null "> and d_safe_lifted_date38 = #{dSafeLiftedDate38}</if>
            <if test="dSafeImplDate39 != null "> and d_safe_impl_date39 = #{dSafeImplDate39}</if>
            <if test="dSafeImplSign39 != null  and dSafeImplSign39 != ''"> and d_safe_impl_sign39 = #{dSafeImplSign39}</if>
            <if test="dSafeImplDate310 != null "> and d_safe_impl_date310 = #{dSafeImplDate310}</if>
            <if test="dSafeImplSign310 != null  and dSafeImplSign310 != ''"> and d_safe_impl_sign310 = #{dSafeImplSign310}</if>
            <if test="dSafeImplDate311 != null "> and d_safe_impl_date311 = #{dSafeImplDate311}</if>
            <if test="dSafeImplSign311 != null  and dSafeImplSign311 != ''"> and d_safe_impl_sign311 = #{dSafeImplSign311}</if>
            <if test="dSafeLiftedSign311 != null  and dSafeLiftedSign311 != ''"> and d_safe_lifted_sign311 = #{dSafeLiftedSign311}</if>
            <if test="dSafeLiftedDate311 != null "> and d_safe_lifted_date311 = #{dSafeLiftedDate311}</if>
            <if test="dSafeImplDate312 != null "> and d_safe_impl_date312 = #{dSafeImplDate312}</if>
            <if test="dSafeImplSign312 != null  and dSafeImplSign312 != ''"> and d_safe_impl_sign312 = #{dSafeImplSign312}</if>
            <if test="dSafeLiftedSign312 != null  and dSafeLiftedSign312 != ''"> and d_safe_lifted_sign312 = #{dSafeLiftedSign312}</if>
            <if test="dSafeLiftedDate312 != null "> and d_safe_lifted_date312 = #{dSafeLiftedDate312}</if>
            <if test="dSafeImplDate313 != null "> and d_safe_impl_date313 = #{dSafeImplDate313}</if>
            <if test="dSafeImplSign313 != null  and dSafeImplSign313 != ''"> and d_safe_impl_sign313 = #{dSafeImplSign313}</if>
            <if test="dSafeImplDate314 != null "> and d_safe_impl_date314 = #{dSafeImplDate314}</if>
            <if test="dSafeImplSign314 != null  and dSafeImplSign314 != ''"> and d_safe_impl_sign314 = #{dSafeImplSign314}</if>
            <if test="dSafeLiftedSign314 != null  and dSafeLiftedSign314 != ''"> and d_safe_lifted_sign314 = #{dSafeLiftedSign314}</if>
            <if test="dSafeLiftedDate314 != null "> and d_safe_lifted_date314 = #{dSafeLiftedDate314}</if>
            <if test="dSafeImplSign41 != null  and dSafeImplSign41 != ''"> and d_safe_impl_sign41 = #{dSafeImplSign41}</if>
            <if test="dSafeImplDate41 != null "> and d_safe_impl_date41 = #{dSafeImplDate41}</if>
            <if test="dSafeLiftedSign41 != null  and dSafeLiftedSign41 != ''"> and d_safe_lifted_sign41 = #{dSafeLiftedSign41}</if>
            <if test="dSafeLiftedDate41 != null "> and d_safe_lifted_date41 = #{dSafeLiftedDate41}</if>
            <if test="dSafeImplSign42 != null  and dSafeImplSign42 != ''"> and d_safe_impl_sign42 = #{dSafeImplSign42}</if>
            <if test="dSafeImplDate42 != null "> and d_safe_impl_date42 = #{dSafeImplDate42}</if>
            <if test="dSafeLiftedSign42 != null  and dSafeLiftedSign42 != ''"> and d_safe_lifted_sign42 = #{dSafeLiftedSign42}</if>
            <if test="dSafeLiftedDate42 != null "> and d_safe_lifted_date42 = #{dSafeLiftedDate42}</if>
            <if test="dSafeImplSign43 != null  and dSafeImplSign43 != ''"> and d_safe_impl_sign43 = #{dSafeImplSign43}</if>
            <if test="dSafeImplDate43 != null "> and d_safe_impl_date43 = #{dSafeImplDate43}</if>
            <if test="dSafeLiftedSign44 != null  and dSafeLiftedSign44 != ''"> and d_safe_lifted_sign44 = #{dSafeLiftedSign44}</if>
            <if test="dSafeLiftedDate44 != null "> and d_safe_lifted_date44 = #{dSafeLiftedDate44}</if>
            <if test="dSafeImplSign44 != null  and dSafeImplSign44 != ''"> and d_safe_impl_sign44 = #{dSafeImplSign44}</if>
            <if test="dSafeImplDate44 != null "> and d_safe_impl_date44 = #{dSafeImplDate44}</if>
            <if test="dSafeImplSign45 != null  and dSafeImplSign45 != ''"> and d_safe_impl_sign45 = #{dSafeImplSign45}</if>
            <if test="dSafeImplDate45 != null "> and d_safe_impl_date45 = #{dSafeImplDate45}</if>
            <if test="dSafeLiftedSign45 != null  and dSafeLiftedSign45 != ''"> and d_safe_lifted_sign45 = #{dSafeLiftedSign45}</if>
            <if test="dSafeLiftedDate45 != null "> and d_safe_lifted_date45 = #{dSafeLiftedDate45}</if>
            <if test="dSafeImplSign46 != null  and dSafeImplSign46 != ''"> and d_safe_impl_sign46 = #{dSafeImplSign46}</if>
            <if test="dSafeImplDate46 != null "> and d_safe_impl_date46 = #{dSafeImplDate46}</if>
            <if test="dSafeLiftedSign46 != null  and dSafeLiftedSign46 != ''"> and d_safe_lifted_sign46 = #{dSafeLiftedSign46}</if>
            <if test="dSafeLiftedDate46 != null "> and d_safe_lifted_date46 = #{dSafeLiftedDate46}</if>
            <if test="dSafeImplSign47 != null  and dSafeImplSign47 != ''"> and d_safe_impl_sign47 = #{dSafeImplSign47}</if>
            <if test="dSafeImplDate47 != null "> and d_safe_impl_date47 = #{dSafeImplDate47}</if>
            <if test="dSafeLiftedSign47 != null  and dSafeLiftedSign47 != ''"> and d_safe_lifted_sign47 = #{dSafeLiftedSign47}</if>
            <if test="dSafeLiftedDate47 != null "> and d_safe_lifted_date47 = #{dSafeLiftedDate47}</if>
            <if test="dSafeImplSign48 != null  and dSafeImplSign48 != ''"> and d_safe_impl_sign48 = #{dSafeImplSign48}</if>
            <if test="dSafeImplDate48 != null "> and d_safe_impl_date48 = #{dSafeImplDate48}</if>
            <if test="dSafeImplSign49 != null  and dSafeImplSign49 != ''"> and d_safe_impl_sign49 = #{dSafeImplSign49}</if>
            <if test="dSafeImplDate49 != null "> and d_safe_impl_date49 = #{dSafeImplDate49}</if>
            <if test="dSafeLiftedSign49 != null  and dSafeLiftedSign49 != ''"> and d_safe_lifted_sign49 = #{dSafeLiftedSign49}</if>
            <if test="dSafeLiftedDate49 != null "> and d_safe_lifted_date49 = #{dSafeLiftedDate49}</if>
            <if test="dSafeImplSign51 != null  and dSafeImplSign51 != ''"> and d_safe_impl_sign51 = #{dSafeImplSign51}</if>
            <if test="dSafeImplDate51 != null "> and d_safe_impl_date51 = #{dSafeImplDate51}</if>
            <if test="dSafeLiftedSign51 != null  and dSafeLiftedSign51 != ''"> and d_safe_lifted_sign51 = #{dSafeLiftedSign51}</if>
            <if test="dSafeLiftedDate51 != null "> and d_safe_lifted_date51 = #{dSafeLiftedDate51}</if>
            <if test="dSafeImplSign52 != null  and dSafeImplSign52 != ''"> and d_safe_impl_sign52 = #{dSafeImplSign52}</if>
            <if test="dSafeImplDate52 != null "> and d_safe_impl_date52 = #{dSafeImplDate52}</if>
            <if test="dSafeLiftedSign52 != null  and dSafeLiftedSign52 != ''"> and d_safe_lifted_sign52 = #{dSafeLiftedSign52}</if>
            <if test="dSafeLiftedDate52 != null "> and d_safe_lifted_date52 = #{dSafeLiftedDate52}</if>
            <if test="eIsPresent != null "> and e_is_present = #{eIsPresent}</if>
            <if test="eIsRequiredPpe != null "> and e_is_required_ppe = #{eIsRequiredPpe}</if>
            <if test="ePpeContent != null  and ePpeContent != ''"> and e_ppe_content = #{ePpeContent}</if>
            <if test="eIsSafeGoggles != null "> and e_is_safe_goggles = #{eIsSafeGoggles}</if>
            <if test="eIsFaceShield != null "> and e_is_face_shield = #{eIsFaceShield}</if>
            <if test="eIsOther21 != null "> and e_is_other21 = #{eIsOther21}</if>
            <if test="eOther21Content != null  and eOther21Content != ''"> and e_other21_content = #{eOther21Content}</if>
            <if test="eIsProtectGloves != null "> and e_is_protect_gloves = #{eIsProtectGloves}</if>
            <if test="eProtectGlovesContent != null  and eProtectGlovesContent != ''"> and e_protect_gloves_content = #{eProtectGlovesContent}</if>
            <if test="eIsRubberBoots != null "> and e_is_rubber_boots = #{eIsRubberBoots}</if>
            <if test="eIsRubberApron != null "> and e_is_rubber_apron = #{eIsRubberApron}</if>
            <if test="eIsOther23 != null "> and e_is_other23 = #{eIsOther23}</if>
            <if test="eIsOther23Content != null "> and e_is_other23_content = #{eIsOther23Content}</if>
            <if test="eIsProtectSuit != null "> and e_is_protect_suit = #{eIsProtectSuit}</if>
            <if test="eProtectSuitContent != null  and eProtectSuitContent != ''"> and e_protect_suit_content = #{eProtectSuitContent}</if>
            <if test="eIsResProtect != null "> and e_is_res_protect = #{eIsResProtect}</if>
            <if test="eResProtectContent != null  and eResProtectContent != ''"> and e_res_protect_content = #{eResProtectContent}</if>
            <if test="eIsHearProtect != null "> and e_is_hear_protect = #{eIsHearProtect}</if>
            <if test="eHearProtectContent != null  and eHearProtectContent != ''"> and e_hear_protect_content = #{eHearProtectContent}</if>
            <if test="eIsFallArrest != null "> and e_is_fall_arrest = #{eIsFallArrest}</if>
            <if test="eFallArrestContent != null  and eFallArrestContent != ''"> and e_fall_arrest_content = #{eFallArrestContent}</if>
            <if test="eIsOtherProtect != null "> and e_is_other_protect = #{eIsOtherProtect}</if>
            <if test="eOtherProtectContent != null  and eOtherProtectContent != ''"> and e_other_protect_content = #{eOtherProtectContent}</if>
            <if test="eIsContineCheckAir != null "> and e_is_contine_check_air = #{eIsContineCheckAir}</if>
            <if test="eIsKeepWet != null "> and e_is_keep_wet = #{eIsKeepWet}</if>
            <if test="eIsCheckInertGasPro != null "> and e_is_check_inert_gas_pro = #{eIsCheckInertGasPro}</if>
            <if test="eIsWaterPro != null "> and e_is_water_pro = #{eIsWaterPro}</if>
            <if test="eIsKeepCheck != null "> and e_is_keep_check = #{eIsKeepCheck}</if>
            <if test="eIsFireWaterPipe != null "> and e_is_fire_water_pipe = #{eIsFireWaterPipe}</if>
            <if test="eIsProFireExt != null "> and e_is_pro_fire_ext = #{eIsProFireExt}</if>
            <if test="eFireExtType != null  and eFireExtType != ''"> and e_fire_ext_type = #{eFireExtType}</if>
            <if test="eFireExtNum != null  and eFireExtNum != ''"> and e_fire_ext_num = #{eFireExtNum}</if>
            <if test="eLeaderUnit != null  and eLeaderUnit != ''"> and e_leader_unit = #{eLeaderUnit}</if>
            <if test="eLeaderName != null  and eLeaderName != ''"> and e_leader_name like concat(concat('%', #{eLeaderName}), '%')</if>
            <if test="eIsCapture != null "> and e_is_capture = #{eIsCapture}</if>
            <if test="eIsNaturalVen != null "> and e_is_natural_ven = #{eIsNaturalVen}</if>
            <if test="eNaturalVenContent != null  and eNaturalVenContent != ''"> and e_natural_ven_content = #{eNaturalVenContent}</if>
            <if test="eIsMecVen != null "> and e_is_mec_ven = #{eIsMecVen}</if>
            <if test="eMecVenContent != null  and eMecVenContent != ''"> and e_mec_ven_content = #{eMecVenContent}</if>
            <if test="eIsExxtractDust != null "> and e_is_exxtract_dust = #{eIsExxtractDust}</if>
            <if test="eIsAnalyzeAir != null "> and e_is_analyze_air = #{eIsAnalyzeAir}</if>
            <if test="eAnalyzeAirContent != null  and eAnalyzeAirContent != ''"> and e_analyze_air_content = #{eAnalyzeAirContent}</if>
            <if test="eAnalyzeAirInterval != null  and eAnalyzeAirInterval != ''"> and e_analyze_air_interval = #{eAnalyzeAirInterval}</if>
            <if test="fIsFireEndCheck != null "> and f_is_fire_end_check = #{fIsFireEndCheck}</if>
            <if test="fProfessional != null  and fProfessional != ''"> and f_professional = #{fProfessional}</if>
            <if test="fIsNoticeD != null "> and f_is_notice_d = #{fIsNoticeD}</if>
            <if test="fIsOtherSafeMeasures != null "> and f_is_other_safe_measures = #{fIsOtherSafeMeasures}</if>
            <if test="fOtherSafeMeasuresContent != null  and fOtherSafeMeasuresContent != ''"> and f_other_safe_measures_content = #{fOtherSafeMeasuresContent}</if>
            <if test="gFirstSign != null  and gFirstSign != ''"> and g_first_sign = #{gFirstSign}</if>
            <if test="gFirstDate != null "> and g_first_date = #{gFirstDate}</if>
            <if test="gSecondSign != null  and gSecondSign != ''"> and g_second_sign = #{gSecondSign}</if>
            <if test="gSecondDate != null "> and g_second_date = #{gSecondDate}</if>
            <if test="gThirdSign != null  and gThirdSign != ''"> and g_third_sign = #{gThirdSign}</if>
            <if test="gThirdDate != null "> and g_third_date = #{gThirdDate}</if>
            <if test="gIsSpecialAssessment != null "> and g_is_special_assessment = #{gIsSpecialAssessment}</if>
            <if test="gSpecialAssessment != null  and gSpecialAssessment != ''"> and g_special_assessment = #{gSpecialAssessment}</if>
            <if test="hSafeMesSign != null  and hSafeMesSign != ''"> and h_safe_mes_sign = #{hSafeMesSign}</if>
            <if test="hSafeMesDate != null "> and h_safe_mes_date = #{hSafeMesDate}</if>
            <if test="hSafeMesA4Sign != null  and hSafeMesA4Sign != ''"> and h_safe_mes_a4_sign = #{hSafeMesA4Sign}</if>
            <if test="hSafeMesA4Date != null "> and h_safe_mes_a4_date = #{hSafeMesA4Date}</if>
            <if test="iOneASign != null  and iOneASign != ''"> and i_one_a_sign = #{iOneASign}</if>
            <if test="iOneADate != null "> and i_one_a_date = #{iOneADate}</if>
            <if test="iOneBSign != null  and iOneBSign != ''"> and i_one_b_sign = #{iOneBSign}</if>
            <if test="iOneBDate != null "> and i_one_b_date = #{iOneBDate}</if>
            <if test="jOneBSign != null  and jOneBSign != ''"> and j_one_b_sign = #{jOneBSign}</if>
            <if test="jOneBDate != null "> and j_one_b_date = #{jOneBDate}</if>
            <if test="jResMemberSign != null  and jResMemberSign != ''"> and j_res_member_sign = #{jResMemberSign}</if>
            <if test="jResMemberDate != null "> and j_res_member_date = #{jResMemberDate}</if>
            <if test="jEISign != null  and jEISign != ''"> and j_e_i_sign = #{jEISign}</if>
            <if test="jEIDate != null "> and j_e_i_date = #{jEIDate}</if>
            <if test="kConfirmSign != null  and kConfirmSign != ''"> and k_confirm_sign = #{kConfirmSign}</if>
            <if test="kConfirmDate != null "> and k_confirm_date = #{kConfirmDate}</if>
            <if test="lNoticeSign != null  and lNoticeSign != ''"> and l_notice_sign = #{lNoticeSign}</if>
            <if test="lNoticeDate != null "> and l_notice_date = #{lNoticeDate}</if>
            <if test="mAssessDContent != null  and mAssessDContent != ''"> and m_assess_d_content = #{mAssessDContent}</if>
            <if test="mAssessDSign != null  and mAssessDSign != ''"> and m_assess_d_sign = #{mAssessDSign}</if>
            <if test="mAssessDDate != null "> and m_assess_d_date = #{mAssessDDate}</if>
            <if test="mOtherLicenceOne != null  and mOtherLicenceOne != ''"> and m_other_licence_one = #{mOtherLicenceOne}</if>
            <if test="mOtherLicenceTwo != null  and mOtherLicenceTwo != ''"> and m_other_licence_two = #{mOtherLicenceTwo}</if>
            <if test="mOtherLicenceThree != null  and mOtherLicenceThree != ''"> and m_other_licence_three = #{mOtherLicenceThree}</if>
            <if test="wordUrl != null  and wordUrl != ''"> and word_url = #{wordUrl}</if>
            <if test="pdfUrl != null  and pdfUrl != ''"> and pdf_url = #{pdfUrl}</if>
            <if test="dIsDisFeeder != null "> and d_is_dis_feeder = #{dIsDisFeeder}</if>
            <if test="eIsFaceSafe != null "> and e_is_face_safe = #{eIsFaceSafe}</if>
            <if test="eIsFeetSafe != null "> and e_is_feet_safe = #{eIsFeetSafe}</if>
            <if test="eIsVentilate != null "> and e_is_ventilate = #{eIsVentilate}</if>
            and d.del_flag = 0
        </where>
        <!-- 数据范围过滤 -->
        <!--       ${params.dataScope}-->
    </select>

    <select id="selectTPermitFireWorkById" parameterType="Long" resultMap="TPermitFireWorkResult">
        <include refid="selectTPermitFireWorkVo"/>
        where h_id = #{hId}
    </select>

    <insert id="insertTPermitFireWork" parameterType="TPermitFireWork">
        insert into t_permit_fire_work
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="hId != null">h_id,</if>
            <if test="aEquipmentName != null">a_equipment_name,</if>
            <if test="aEquipmentLeader != null">a_equipment_leader,</if>
            <if test="aEquipmentTel != null">a_equipment_tel,</if>
            <if test="aEquipmentOffice != null">a_equipment_office,</if>
            <if test="aConstructionName != null">a_construction_name,</if>
            <if test="aConstructionLeader != null">a_construction_leader,</if>
            <if test="aConstructionTel != null">a_construction_tel,</if>
            <if test="aConstructionOffice != null">a_construction_office,</if>
            <if test="aContractorName != null">a_contractor_name,</if>
            <if test="aContractorLeader != null">a_contractor_leader,</if>
            <if test="aContractorTel != null">a_contractor_tel,</if>
            <if test="aContractorOffice != null">a_contractor_office,</if>
            <if test="aIsNeedSafeLiaison != null">a_is_need_safe_liaison,</if>
            <if test="aSafeLiaisonName != null">a_safe_liaison_name,</if>
            <if test="aSafeLiaisonSign != null">a_safe_liaison_sign,</if>
            <if test="aSafeLiaisonTel != null">a_safe_liaison_tel,</if>
            <if test="aSafeLiaisonOffice != null">a_safe_liaison_office,</if>
            <if test="bDeviceName != null">b_device_name,</if>
            <if test="bAreaNo != null">b_area_no,</if>
            <if test="bWorkContent != null">b_work_content,</if>
            <if test="bValidityStartTime != null">b_validity_start_time,</if>
            <if test="bValidityEndTime != null">b_validity_end_time,</if>
            <if test="bFireWorkGrade != null">b_fire_work_grade,</if>
            <if test="cIsEquipmentHazards != null">c_is_equipment_hazards,</if>
            <if test="cIsFacilityHazards != null">c_is_facility_hazards,</if>
            <if test="cHarmMatterName != null">c_harm_matter_name,</if>
            <if test="cIsGhs != null">c_is_ghs,</if>
            <if test="cIsToxic != null">c_is_toxic,</if>
            <if test="cIsFlammable != null">c_is_flammable,</if>
            <if test="cIsOxidizing != null">c_is_oxidizing,</if>
            <if test="cIsExplosive != null">c_is_explosive,</if>
            <if test="cIsCorrosive != null">c_is_corrosive,</if>
            <if test="cIsIrritantToxic != null">c_is_irritant_toxic,</if>
            <if test="cIsHealthHazard != null">c_is_health_hazard,</if>
            <if test="cIsCompressedGas != null">c_is_compressed_gas,</if>
            <if test="cIsEnvironmentalHazard != null">c_is_environmental_hazard,</if>
            <if test="cIsHighTemp != null">c_is_high_temp,</if>
            <if test="cIsLowTemp != null">c_is_low_temp,</if>
            <if test="cIsPosPressure != null">c_is_pos_pressure,</if>
            <if test="cIsNegPressure != null">c_is_neg_pressure,</if>
            <if test="cIsMovingParts != null">c_is_moving_parts,</if>
            <if test="cIsHotSurfaces != null">c_is_hot_surfaces,</if>
            <if test="cIsColdSurfaces != null">c_is_cold_surfaces,</if>
            <if test="cIsVoltages != null">c_is_voltages,</if>
            <if test="cIsWorkProtective != null">c_is_work_protective,</if>
            <if test="cIsHazardsProd != null">c_is_hazards_prod,</if>
            <if test="cIsHazardsProdContent != null">c_is_hazards_prod_content,</if>
            <if test="cIsWorkToFire != null">c_is_work_to_fire,</if>
            <if test="cIsWorkToBlast != null">c_is_work_to_blast,</if>
            <if test="cIsWorkToEnvir != null">c_is_work_to_envir,</if>
            <if test="cIsDeviceToBlast != null">c_is_device_to_blast,</if>
            <if test="cIsOtherId != null">c_is_other_id,</if>
            <if test="cOtherId != null">c_other_id,</if>
            <if test="cIsOtherFire != null">c_is_other_fire,</if>
            <if test="cOtherFireContent != null">c_other_fire_content,</if>
            <if test="dIsDivide != null">d_is_divide,</if>
            <if test="dDivideContent != null">d_divide_content,</if>
            <if test="dIsSlicing != null">d_is_slicing,</if>
            <if test="dSlicingContent != null">d_slicing_content,</if>
            <if test="dIsOpenSafe != null">d_is_open_safe,</if>
            <if test="dIsBreakIncl != null">d_is_break_incl,</if>
            <if test="dBreakInclContent != null">d_break_incl_content,</if>
            <if test="dEleCircuitNo != null">d_ele_circuit_no,</if>
            <if test="dInsTagNo != null">d_ins_tag_no,</if>
            <if test="dIsRadioactiveSources != null">d_is_radioactive_sources,</if>
            <if test="dIsOtherEquSafe != null">d_is_other_equ_safe,</if>
            <if test="dIsOtherEquSafeContent != null">d_is_other_equ_safe_content,</if>
            <if test="dIsDepress != null">d_is_depress,</if>
            <if test="dIsSingleBlocking != null">d_is_single_blocking,</if>
            <if test="dIsDoubleBlock != null">d_is_double_block,</if>
            <if test="dIsLockoutUsing != null">d_is_lockout_using,</if>
            <if test="dLockoutUsingContent != null">d_lockout_using_content,</if>
            <if test="dIsRemovePipe != null">d_is_remove_pipe,</if>
            <if test="dIsDisPipes != null">d_is_dis_pipes,</if>
            <if test="dIsInsertBlindPlage != null">d_is_insert_blind_plage,</if>
            <if test="dIsMecSecure != null">d_is_mec_secure,</if>
            <if test="dMecSecureContent != null">d_mec_secure_content,</if>
            <if test="dIsClean != null">d_is_clean,</if>
            <if test="dCleanContent != null">d_clean_content,</if>
            <if test="dIsFlush != null">d_is_flush,</if>
            <if test="dFlushContent != null">d_flush_content,</if>
            <if test="dIsFloodWater != null">d_is_flood_water,</if>
            <if test="dIsProInertGas != null">d_is_pro_inert_gas,</if>
            <if test="dProInertGasContent != null">d_pro_inert_gas_content,</if>
            <if test="dIsGasAnalysis != null">d_is_gas_analysis,</if>
            <if test="dGasAnalysisContent != null">d_gas_analysis_content,</if>
            <if test="dIsOtherDevSafe != null">d_is_other_dev_safe,</if>
            <if test="dOtherDevSafeContent != null">d_other_dev_safe_content,</if>
            <if test="dIsSiteDemarcation != null">d_is_site_demarcation,</if>
            <if test="dSiteDemarcationContent != null">d_site_demarcation_content,</if>
            <if test="dIsCloseTrucks != null">d_is_close_trucks,</if>
            <if test="dIsDistance != null">d_is_distance,</if>
            <if test="dDistanceContent != null">d_distance_content,</if>
            <if test="dIsCleanCover != null">d_is_clean_cover,</if>
            <if test="dIsLeakFlanges != null">d_is_leak_flanges,</if>
            <if test="dIsCleanAround != null">d_is_clean_around,</if>
            <if test="dIsVentilate != null">d_is_ventilate,</if>
            <if test="dIsMecVen != null">d_is_mec_ven,</if>
            <if test="dMecVenContent != null">d_mec_ven_content,</if>
            <if test="dIsNaturalVen != null">d_is_natural_ven,</if>
            <if test="dNaturalVenContent != null">d_natural_ven_content,</if>
            <if test="dIsGasDetection != null">d_is_gas_detection,</if>
            <if test="dGasDetectionContent != null">d_gas_detection_content,</if>
            <if test="dIsOtherAreaSafe != null">d_is_other_area_safe,</if>
            <if test="dOtherAreaSafeContent != null">d_other_area_safe_content,</if>
            <if test="dIsAlarmSystems != null">d_is_alarm_systems,</if>
            <if test="dAlarmSystemsContent != null">d_alarm_systems_content,</if>
            <if test="dIsOtherMeasure != null">d_is_other_measure,</if>
            <if test="dOtherMeasureContent != null">d_other_measure_content,</if>
            <if test="dDangerArea61 != null">d_danger_area61,</if>
            <if test="dDangerLeader61 != null">d_danger_leader61,</if>
            <if test="dDangerLeaderDate61 != null">d_danger_leader_date61,</if>
            <if test="dDangerOffice61 != null">d_danger_office61,</if>
            <if test="dDangerOfficeTel61 != null">d_danger_office_tel61,</if>
            <if test="dDangerOtherMeasure61 != null">d_danger_other_measure61,</if>
            <if test="dDangerArea62 != null">d_danger_area62,</if>
            <if test="dDangerLeader62 != null">d_danger_leader62,</if>
            <if test="dDangerLeaderDate62 != null">d_danger_leader_date62,</if>
            <if test="dDangerOffice62 != null">d_danger_office62,</if>
            <if test="dDangerOfficeTel62 != null">d_danger_office_tel62,</if>
            <if test="dDangerOtherMeasure62 != null">d_danger_other_measure62,</if>
            <if test="dPartakeBriefingSign != null">d_partake_briefing_sign,</if>
            <if test="dPartakeBriefingDate != null">d_partake_briefing_date,</if>
            <if test="dSafeImplSign11 != null">d_safe_impl_sign11,</if>
            <if test="dSafeImplDate11 != null">d_safe_impl_date11,</if>
            <if test="dSafeImplSign12 != null">d_safe_impl_sign12,</if>
            <if test="dSafeImplDate12 != null">d_safe_impl_date12,</if>
            <if test="dSafeImplDate21 != null">d_safe_impl_date21,</if>
            <if test="dSafeImplSign21 != null">d_safe_impl_sign21,</if>
            <if test="dSafeLiftedSign21 != null">d_safe_lifted_sign21,</if>
            <if test="dSafeLiftedDate21 != null">d_safe_lifted_date21,</if>
            <if test="dSafeImplDate22 != null">d_safe_impl_date22,</if>
            <if test="dSafeImplSign22 != null">d_safe_impl_sign22,</if>
            <if test="dSafeLiftedSign22 != null">d_safe_lifted_sign22,</if>
            <if test="dSafeLiftedDate22 != null">d_safe_lifted_date22,</if>
            <if test="dSafeImplDate23 != null">d_safe_impl_date23,</if>
            <if test="dSafeImplSign23 != null">d_safe_impl_sign23,</if>
            <if test="dSafeLiftedSign23 != null">d_safe_lifted_sign23,</if>
            <if test="dSafeLiftedDate23 != null">d_safe_lifted_date23,</if>
            <if test="dSafeImplDate24 != null">d_safe_impl_date24,</if>
            <if test="dSafeImplSign24 != null">d_safe_impl_sign24,</if>
            <if test="dSafeLiftedSign24 != null">d_safe_lifted_sign24,</if>
            <if test="dSafeLiftedDate24 != null">d_safe_lifted_date24,</if>
            <if test="dSafeImplDate31 != null">d_safe_impl_date31,</if>
            <if test="dSafeImplSign31 != null">d_safe_impl_sign31,</if>
            <if test="dSafeImplDate32 != null">d_safe_impl_date32,</if>
            <if test="dSafeImplSign32 != null">d_safe_impl_sign32,</if>
            <if test="dSafeLiftedSign32 != null">d_safe_lifted_sign32,</if>
            <if test="dSafeLiftedDate32 != null">d_safe_lifted_date32,</if>
            <if test="dSafeImplDate33 != null">d_safe_impl_date33,</if>
            <if test="dSafeImplSign33 != null">d_safe_impl_sign33,</if>
            <if test="dSafeLiftedSign33 != null">d_safe_lifted_sign33,</if>
            <if test="dSafeLiftedDate33 != null">d_safe_lifted_date33,</if>
            <if test="dSafeImplDate34 != null">d_safe_impl_date34,</if>
            <if test="dSafeImplSign34 != null">d_safe_impl_sign34,</if>
            <if test="dSafeLiftedSign34 != null">d_safe_lifted_sign34,</if>
            <if test="dSafeLiftedDate34 != null">d_safe_lifted_date34,</if>
            <if test="dSafeImplDate35 != null">d_safe_impl_date35,</if>
            <if test="dSafeImplSign35 != null">d_safe_impl_sign35,</if>
            <if test="dSafeLiftedSign35 != null">d_safe_lifted_sign35,</if>
            <if test="dSafeLiftedDate35 != null">d_safe_lifted_date35,</if>
            <if test="dSafeImplDate36 != null">d_safe_impl_date36,</if>
            <if test="dSafeImplSign36 != null">d_safe_impl_sign36,</if>
            <if test="dSafeLiftedSign36 != null">d_safe_lifted_sign36,</if>
            <if test="dSafeLiftedDate36 != null">d_safe_lifted_date36,</if>
            <if test="dSafeImplDate37 != null">d_safe_impl_date37,</if>
            <if test="dSafeImplSign37 != null">d_safe_impl_sign37,</if>
            <if test="dSafeLiftedSign37 != null">d_safe_lifted_sign37,</if>
            <if test="dSafeLiftedDate37 != null">d_safe_lifted_date37,</if>
            <if test="dSafeImplDate38 != null">d_safe_impl_date38,</if>
            <if test="dSafeImplSign38 != null">d_safe_impl_sign38,</if>
            <if test="dSafeLiftedSign38 != null">d_safe_lifted_sign38,</if>
            <if test="dSafeLiftedDate38 != null">d_safe_lifted_date38,</if>
            <if test="dSafeImplDate39 != null">d_safe_impl_date39,</if>
            <if test="dSafeImplSign39 != null">d_safe_impl_sign39,</if>
            <if test="dSafeImplDate310 != null">d_safe_impl_date310,</if>
            <if test="dSafeImplSign310 != null">d_safe_impl_sign310,</if>
            <if test="dSafeImplDate311 != null">d_safe_impl_date311,</if>
            <if test="dSafeImplSign311 != null">d_safe_impl_sign311,</if>
            <if test="dSafeLiftedSign311 != null">d_safe_lifted_sign311,</if>
            <if test="dSafeLiftedDate311 != null">d_safe_lifted_date311,</if>
            <if test="dSafeImplDate312 != null">d_safe_impl_date312,</if>
            <if test="dSafeImplSign312 != null">d_safe_impl_sign312,</if>
            <if test="dSafeLiftedSign312 != null">d_safe_lifted_sign312,</if>
            <if test="dSafeLiftedDate312 != null">d_safe_lifted_date312,</if>
            <if test="dSafeImplDate313 != null">d_safe_impl_date313,</if>
            <if test="dSafeImplSign313 != null">d_safe_impl_sign313,</if>
            <if test="dSafeImplDate314 != null">d_safe_impl_date314,</if>
            <if test="dSafeImplSign314 != null">d_safe_impl_sign314,</if>
            <if test="dSafeLiftedSign314 != null">d_safe_lifted_sign314,</if>
            <if test="dSafeLiftedDate314 != null">d_safe_lifted_date314,</if>
            <if test="dSafeImplSign41 != null">d_safe_impl_sign41,</if>
            <if test="dSafeImplDate41 != null">d_safe_impl_date41,</if>
            <if test="dSafeLiftedSign41 != null">d_safe_lifted_sign41,</if>
            <if test="dSafeLiftedDate41 != null">d_safe_lifted_date41,</if>
            <if test="dSafeImplSign42 != null">d_safe_impl_sign42,</if>
            <if test="dSafeImplDate42 != null">d_safe_impl_date42,</if>
            <if test="dSafeLiftedSign42 != null">d_safe_lifted_sign42,</if>
            <if test="dSafeLiftedDate42 != null">d_safe_lifted_date42,</if>
            <if test="dSafeImplSign43 != null">d_safe_impl_sign43,</if>
            <if test="dSafeImplDate43 != null">d_safe_impl_date43,</if>
            <if test="dSafeLiftedSign44 != null">d_safe_lifted_sign44,</if>
            <if test="dSafeLiftedDate44 != null">d_safe_lifted_date44,</if>
            <if test="dSafeImplSign44 != null">d_safe_impl_sign44,</if>
            <if test="dSafeImplDate44 != null">d_safe_impl_date44,</if>
            <if test="dSafeImplSign45 != null">d_safe_impl_sign45,</if>
            <if test="dSafeImplDate45 != null">d_safe_impl_date45,</if>
            <if test="dSafeLiftedSign45 != null">d_safe_lifted_sign45,</if>
            <if test="dSafeLiftedDate45 != null">d_safe_lifted_date45,</if>
            <if test="dSafeImplSign46 != null">d_safe_impl_sign46,</if>
            <if test="dSafeImplDate46 != null">d_safe_impl_date46,</if>
            <if test="dSafeLiftedSign46 != null">d_safe_lifted_sign46,</if>
            <if test="dSafeLiftedDate46 != null">d_safe_lifted_date46,</if>
            <if test="dSafeImplSign47 != null">d_safe_impl_sign47,</if>
            <if test="dSafeImplDate47 != null">d_safe_impl_date47,</if>
            <if test="dSafeLiftedSign47 != null">d_safe_lifted_sign47,</if>
            <if test="dSafeLiftedDate47 != null">d_safe_lifted_date47,</if>
            <if test="dSafeImplSign48 != null">d_safe_impl_sign48,</if>
            <if test="dSafeImplDate48 != null">d_safe_impl_date48,</if>
            <if test="dSafeImplSign49 != null">d_safe_impl_sign49,</if>
            <if test="dSafeImplDate49 != null">d_safe_impl_date49,</if>
            <if test="dSafeLiftedSign49 != null">d_safe_lifted_sign49,</if>
            <if test="dSafeLiftedDate49 != null">d_safe_lifted_date49,</if>
            <if test="dSafeImplSign51 != null">d_safe_impl_sign51,</if>
            <if test="dSafeImplDate51 != null">d_safe_impl_date51,</if>
            <if test="dSafeLiftedSign51 != null">d_safe_lifted_sign51,</if>
            <if test="dSafeLiftedDate51 != null">d_safe_lifted_date51,</if>
            <if test="dSafeImplSign52 != null">d_safe_impl_sign52,</if>
            <if test="dSafeImplDate52 != null">d_safe_impl_date52,</if>
            <if test="dSafeLiftedSign52 != null">d_safe_lifted_sign52,</if>
            <if test="dSafeLiftedDate52 != null">d_safe_lifted_date52,</if>
            <if test="eIsPresent != null">e_is_present,</if>
            <if test="eIsRequiredPpe != null">e_is_required_ppe,</if>
            <if test="ePpeContent != null">e_ppe_content,</if>
            <if test="eIsSafeGoggles != null">e_is_safe_goggles,</if>
            <if test="eIsFaceShield != null">e_is_face_shield,</if>
            <if test="eIsOther21 != null">e_is_other21,</if>
            <if test="eOther21Content != null">e_other21_content,</if>
            <if test="eIsProtectGloves != null">e_is_protect_gloves,</if>
            <if test="eProtectGlovesContent != null">e_protect_gloves_content,</if>
            <if test="eIsRubberBoots != null">e_is_rubber_boots,</if>
            <if test="eIsRubberApron != null">e_is_rubber_apron,</if>
            <if test="eIsOther23 != null">e_is_other23,</if>
            <if test="eIsOther23Content != null">e_is_other23_content,</if>
            <if test="eIsProtectSuit != null">e_is_protect_suit,</if>
            <if test="eProtectSuitContent != null">e_protect_suit_content,</if>
            <if test="eIsResProtect != null">e_is_res_protect,</if>
            <if test="eResProtectContent != null">e_res_protect_content,</if>
            <if test="eIsHearProtect != null">e_is_hear_protect,</if>
            <if test="eHearProtectContent != null">e_hear_protect_content,</if>
            <if test="eIsFallArrest != null">e_is_fall_arrest,</if>
            <if test="eFallArrestContent != null">e_fall_arrest_content,</if>
            <if test="eIsOtherProtect != null">e_is_other_protect,</if>
            <if test="eOtherProtectContent != null">e_other_protect_content,</if>
            <if test="eIsContineCheckAir != null">e_is_contine_check_air,</if>
            <if test="eIsKeepWet != null">e_is_keep_wet,</if>
            <if test="eIsCheckInertGasPro != null">e_is_check_inert_gas_pro,</if>
            <if test="eIsWaterPro != null">e_is_water_pro,</if>
            <if test="eIsKeepCheck != null">e_is_keep_check,</if>
            <if test="eIsFireWaterPipe != null">e_is_fire_water_pipe,</if>
            <if test="eIsProFireExt != null">e_is_pro_fire_ext,</if>
            <if test="eFireExtType != null">e_fire_ext_type,</if>
            <if test="eFireExtNum != null">e_fire_ext_num,</if>
            <if test="eLeaderUnit != null">e_leader_unit,</if>
            <if test="eLeaderName != null">e_leader_name,</if>
            <if test="eIsCapture != null">e_is_capture,</if>
            <if test="eIsNaturalVen != null">e_is_natural_ven,</if>
            <if test="eNaturalVenContent != null">e_natural_ven_content,</if>
            <if test="eIsMecVen != null">e_is_mec_ven,</if>
            <if test="eMecVenContent != null">e_mec_ven_content,</if>
            <if test="eIsExxtractDust != null">e_is_exxtract_dust,</if>
            <if test="eIsAnalyzeAir != null">e_is_analyze_air,</if>
            <if test="eAnalyzeAirContent != null">e_analyze_air_content,</if>
            <if test="eAnalyzeAirInterval != null">e_analyze_air_interval,</if>
            <if test="fIsFireEndCheck != null">f_is_fire_end_check,</if>
            <if test="fProfessional != null">f_professional,</if>
            <if test="fIsNoticeD != null">f_is_notice_d,</if>
            <if test="fIsOtherSafeMeasures != null">f_is_other_safe_measures,</if>
            <if test="fOtherSafeMeasuresContent != null">f_other_safe_measures_content,</if>
            <if test="gFirstSign != null">g_first_sign,</if>
            <if test="gFirstDate != null">g_first_date,</if>
            <if test="gSecondSign != null">g_second_sign,</if>
            <if test="gSecondDate != null">g_second_date,</if>
            <if test="gThirdSign != null">g_third_sign,</if>
            <if test="gThirdDate != null">g_third_date,</if>
            <if test="gIsSpecialAssessment != null">g_is_special_assessment,</if>
            <if test="gSpecialAssessment != null">g_special_assessment,</if>
            <if test="hSafeMesSign != null">h_safe_mes_sign,</if>
            <if test="hSafeMesDate != null">h_safe_mes_date,</if>
            <if test="hSafeMesA4Sign != null">h_safe_mes_a4_sign,</if>
            <if test="hSafeMesA4Date != null">h_safe_mes_a4_date,</if>
            <if test="iOneASign != null">i_one_a_sign,</if>
            <if test="iOneADate != null">i_one_a_date,</if>
            <if test="iOneBSign != null">i_one_b_sign,</if>
            <if test="iOneBDate != null">i_one_b_date,</if>
            <if test="jOneBSign != null">j_one_b_sign,</if>
            <if test="jOneBDate != null">j_one_b_date,</if>
            <if test="jResMemberSign != null">j_res_member_sign,</if>
            <if test="jResMemberDate != null">j_res_member_date,</if>
            <if test="jEISign != null">j_e_i_sign,</if>
            <if test="jEIDate != null">j_e_i_date,</if>
            <if test="kConfirmSign != null">k_confirm_sign,</if>
            <if test="kConfirmDate != null">k_confirm_date,</if>
            <if test="lNoticeSign != null">l_notice_sign,</if>
            <if test="lNoticeDate != null">l_notice_date,</if>
            <if test="mAssessDContent != null">m_assess_d_content,</if>
            <if test="mAssessDSign != null">m_assess_d_sign,</if>
            <if test="mAssessDDate != null">m_assess_d_date,</if>
            <if test="mOtherLicenceOne != null">m_other_licence_one,</if>
            <if test="mOtherLicenceTwo != null">m_other_licence_two,</if>
            <if test="mOtherLicenceThree != null">m_other_licence_three,</if>
            <if test="wordUrl != null">word_url,</if>
            <if test="pdfUrl != null">pdf_url,</if>
            <if test="dIsDisFeeder != null">d_is_dis_feeder,</if>
            <if test="eIsFaceSafe != null">e_is_face_safe,</if>
            <if test="eIsFeetSafe != null">e_is_feet_safe,</if>
            <if test="eIsVentilate != null">e_is_ventilate,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="hId != null">#{hId},</if>
            <if test="aEquipmentName != null">#{aEquipmentName},</if>
            <if test="aEquipmentLeader != null">#{aEquipmentLeader},</if>
            <if test="aEquipmentTel != null">#{aEquipmentTel},</if>
            <if test="aEquipmentOffice != null">#{aEquipmentOffice},</if>
            <if test="aConstructionName != null">#{aConstructionName},</if>
            <if test="aConstructionLeader != null">#{aConstructionLeader},</if>
            <if test="aConstructionTel != null">#{aConstructionTel},</if>
            <if test="aConstructionOffice != null">#{aConstructionOffice},</if>
            <if test="aContractorName != null">#{aContractorName},</if>
            <if test="aContractorLeader != null">#{aContractorLeader},</if>
            <if test="aContractorTel != null">#{aContractorTel},</if>
            <if test="aContractorOffice != null">#{aContractorOffice},</if>
            <if test="aIsNeedSafeLiaison != null">#{aIsNeedSafeLiaison},</if>
            <if test="aSafeLiaisonName != null">#{aSafeLiaisonName},</if>
            <if test="aSafeLiaisonSign != null">#{aSafeLiaisonSign},</if>
            <if test="aSafeLiaisonTel != null">#{aSafeLiaisonTel},</if>
            <if test="aSafeLiaisonOffice != null">#{aSafeLiaisonOffice},</if>
            <if test="bDeviceName != null">#{bDeviceName},</if>
            <if test="bAreaNo != null">#{bAreaNo},</if>
            <if test="bWorkContent != null">#{bWorkContent},</if>
            <if test="bValidityStartTime != null">#{bValidityStartTime},</if>
            <if test="bValidityEndTime != null">#{bValidityEndTime},</if>
            <if test="bFireWorkGrade != null">#{bFireWorkGrade},</if>
            <if test="cIsEquipmentHazards != null"> #{cIsEquipmentHazards},</if>
            <if test="cIsFacilityHazards != null">#{cIsFacilityHazards},</if>
            <if test="cHarmMatterName != null">#{cHarmMatterName},</if>
            <if test="cIsGhs != null">#{cIsGhs},</if>
            <if test="cIsToxic != null">#{cIsToxic},</if>
            <if test="cIsFlammable != null">#{cIsFlammable},</if>
            <if test="cIsOxidizing != null">#{cIsOxidizing},</if>
            <if test="cIsExplosive != null">#{cIsExplosive},</if>
            <if test="cIsCorrosive != null">#{cIsCorrosive},</if>
            <if test="cIsIrritantToxic != null">#{cIsIrritantToxic},</if>
            <if test="cIsHealthHazard != null">#{cIsHealthHazard},</if>
            <if test="cIsCompressedGas != null">#{cIsCompressedGas},</if>
            <if test="cIsEnvironmentalHazard != null">#{cIsEnvironmentalHazard},</if>
            <if test="cIsHighTemp != null">#{cIsHighTemp},</if>
            <if test="cIsLowTemp != null">#{cIsLowTemp},</if>
            <if test="cIsPosPressure != null">#{cIsPosPressure},</if>
            <if test="cIsNegPressure != null">#{cIsNegPressure},</if>
            <if test="cIsMovingParts != null">#{cIsMovingParts},</if>
            <if test="cIsHotSurfaces != null">#{cIsHotSurfaces},</if>
            <if test="cIsColdSurfaces != null">#{cIsColdSurfaces},</if>
            <if test="cIsVoltages != null">#{cIsVoltages},</if>
            <if test="cIsWorkProtective != null">#{cIsWorkProtective},</if>
            <if test="cIsHazardsProd != null">#{cIsHazardsProd},</if>
            <if test="cIsHazardsProdContent != null">#{cIsHazardsProdContent},</if>
            <if test="cIsWorkToFire != null">#{cIsWorkToFire},</if>
            <if test="cIsWorkToBlast != null">#{cIsWorkToBlast},</if>
            <if test="cIsWorkToEnvir != null">#{cIsWorkToEnvir},</if>
            <if test="cIsDeviceToBlast != null">#{cIsDeviceToBlast},</if>
            <if test="cIsOtherId != null">#{cIsOtherId},</if>
            <if test="cOtherId != null">#{cOtherId},</if>
            <if test="cIsOtherFire != null">#{cIsOtherFire},</if>
            <if test="cOtherFireContent != null">#{cOtherFireContent},</if>
            <if test="dIsDivide != null">#{dIsDivide},</if>
            <if test="dDivideContent != null">#{dDivideContent},</if>
            <if test="dIsSlicing != null">#{dIsSlicing},</if>
            <if test="dSlicingContent != null">#{dSlicingContent},</if>
            <if test="dIsOpenSafe != null">#{dIsOpenSafe},</if>
            <if test="dIsBreakIncl != null">#{dIsBreakIncl},</if>
            <if test="dBreakInclContent != null">#{dBreakInclContent},</if>
            <if test="dEleCircuitNo != null">#{dEleCircuitNo},</if>
            <if test="dInsTagNo != null">#{dInsTagNo},</if>
            <if test="dIsRadioactiveSources != null">#{dIsRadioactiveSources},</if>
            <if test="dIsOtherEquSafe != null">#{dIsOtherEquSafe},</if>
            <if test="dIsOtherEquSafeContent != null">#{dIsOtherEquSafeContent},</if>
            <if test="dIsDepress != null">#{dIsDepress},</if>
            <if test="dIsSingleBlocking != null">#{dIsSingleBlocking},</if>
            <if test="dIsDoubleBlock != null">#{dIsDoubleBlock},</if>
            <if test="dIsLockoutUsing != null">#{dIsLockoutUsing},</if>
            <if test="dLockoutUsingContent != null">#{dLockoutUsingContent},</if>
            <if test="dIsRemovePipe != null">#{dIsRemovePipe},</if>
            <if test="dIsDisPipes != null">#{dIsDisPipes},</if>
            <if test="dIsInsertBlindPlage != null">#{dIsInsertBlindPlage},</if>
            <if test="dIsMecSecure != null">#{dIsMecSecure},</if>
            <if test="dMecSecureContent != null">#{dMecSecureContent},</if>
            <if test="dIsClean != null">#{dIsClean},</if>
            <if test="dCleanContent != null">#{dCleanContent},</if>
            <if test="dIsFlush != null">#{dIsFlush},</if>
            <if test="dFlushContent != null">#{dFlushContent},</if>
            <if test="dIsFloodWater != null">#{dIsFloodWater},</if>
            <if test="dIsProInertGas != null">#{dIsProInertGas},</if>
            <if test="dProInertGasContent != null">#{dProInertGasContent},</if>
            <if test="dIsGasAnalysis != null">#{dIsGasAnalysis},</if>
            <if test="dGasAnalysisContent != null">#{dGasAnalysisContent},</if>
            <if test="dIsOtherDevSafe != null">#{dIsOtherDevSafe},</if>
            <if test="dOtherDevSafeContent != null">#{dOtherDevSafeContent},</if>
            <if test="dIsSiteDemarcation != null">#{dIsSiteDemarcation},</if>
            <if test="dSiteDemarcationContent != null">#{dSiteDemarcationContent},</if>
            <if test="dIsCloseTrucks != null">#{dIsCloseTrucks},</if>
            <if test="dIsDistance != null">#{dIsDistance},</if>
            <if test="dDistanceContent != null">#{dDistanceContent},</if>
            <if test="dIsCleanCover != null">#{dIsCleanCover},</if>
            <if test="dIsLeakFlanges != null">#{dIsLeakFlanges},</if>
            <if test="dIsCleanAround != null">#{dIsCleanAround},</if>
            <if test="dIsVentilate != null">#{dIsVentilate},</if>
            <if test="dIsMecVen != null">#{dIsMecVen},</if>
            <if test="dMecVenContent != null">#{dMecVenContent},</if>
            <if test="dIsNaturalVen != null">#{dIsNaturalVen},</if>
            <if test="dNaturalVenContent != null">#{dNaturalVenContent},</if>
            <if test="dIsGasDetection != null">#{dIsGasDetection},</if>
            <if test="dGasDetectionContent != null">#{dGasDetectionContent},</if>
            <if test="dIsOtherAreaSafe != null">#{dIsOtherAreaSafe},</if>
            <if test="dOtherAreaSafeContent != null">#{dOtherAreaSafeContent},</if>
            <if test="dIsAlarmSystems != null">#{dIsAlarmSystems},</if>
            <if test="dAlarmSystemsContent != null">#{dAlarmSystemsContent},</if>
            <if test="dIsOtherMeasure != null">#{dIsOtherMeasure},</if>
            <if test="dOtherMeasureContent != null">#{dOtherMeasureContent},</if>
            <if test="dDangerArea61 != null">#{dDangerArea61},</if>
            <if test="dDangerLeader61 != null">#{dDangerLeader61},</if>
            <if test="dDangerLeaderDate61 != null">#{dDangerLeaderDate61},</if>
            <if test="dDangerOffice61 != null">#{dDangerOffice61},</if>
            <if test="dDangerOfficeTel61 != null">#{dDangerOfficeTel61},</if>
            <if test="dDangerOtherMeasure61 != null">#{dDangerOtherMeasure61},</if>
            <if test="dDangerArea62 != null">#{dDangerArea62},</if>
            <if test="dDangerLeader62 != null">#{dDangerLeader62},</if>
            <if test="dDangerLeaderDate62 != null">#{dDangerLeaderDate62},</if>
            <if test="dDangerOffice62 != null">#{dDangerOffice62},</if>
            <if test="dDangerOfficeTel62 != null">#{dDangerOfficeTel62},</if>
            <if test="dDangerOtherMeasure62 != null">#{dDangerOtherMeasure62},</if>
            <if test="dPartakeBriefingSign != null">#{dPartakeBriefingSign},</if>
            <if test="dPartakeBriefingDate != null">#{dPartakeBriefingDate},</if>
            <if test="dSafeImplSign11 != null">#{dSafeImplSign11},</if>
            <if test="dSafeImplDate11 != null">#{dSafeImplDate11},</if>
            <if test="dSafeImplSign12 != null">#{dSafeImplSign12},</if>
            <if test="dSafeImplDate12 != null">#{dSafeImplDate12},</if>
            <if test="dSafeImplDate21 != null">#{dSafeImplDate21},</if>
            <if test="dSafeImplSign21 != null">#{dSafeImplSign21},</if>
            <if test="dSafeLiftedSign21 != null">#{dSafeLiftedSign21},</if>
            <if test="dSafeLiftedDate21 != null">#{dSafeLiftedDate21},</if>
            <if test="dSafeImplDate22 != null">#{dSafeImplDate22},</if>
            <if test="dSafeImplSign22 != null">#{dSafeImplSign22},</if>
            <if test="dSafeLiftedSign22 != null">#{dSafeLiftedSign22},</if>
            <if test="dSafeLiftedDate22 != null">#{dSafeLiftedDate22},</if>
            <if test="dSafeImplDate23 != null">#{dSafeImplDate23},</if>
            <if test="dSafeImplSign23 != null">#{dSafeImplSign23},</if>
            <if test="dSafeLiftedSign23 != null">#{dSafeLiftedSign23},</if>
            <if test="dSafeLiftedDate23 != null">#{dSafeLiftedDate23},</if>
            <if test="dSafeImplDate24 != null">#{dSafeImplDate24},</if>
            <if test="dSafeImplSign24 != null">#{dSafeImplSign24},</if>
            <if test="dSafeLiftedSign24 != null">#{dSafeLiftedSign24},</if>
            <if test="dSafeLiftedDate24 != null">#{dSafeLiftedDate24},</if>
            <if test="dSafeImplDate31 != null">#{dSafeImplDate31},</if>
            <if test="dSafeImplSign31 != null">#{dSafeImplSign31},</if>
            <if test="dSafeImplDate32 != null">#{dSafeImplDate32},</if>
            <if test="dSafeImplSign32 != null">#{dSafeImplSign32},</if>
            <if test="dSafeLiftedSign32 != null">#{dSafeLiftedSign32},</if>
            <if test="dSafeLiftedDate32 != null">#{dSafeLiftedDate32},</if>
            <if test="dSafeImplDate33 != null">#{dSafeImplDate33},</if>
            <if test="dSafeImplSign33 != null">#{dSafeImplSign33},</if>
            <if test="dSafeLiftedSign33 != null">#{dSafeLiftedSign33},</if>
            <if test="dSafeLiftedDate33 != null">#{dSafeLiftedDate33},</if>
            <if test="dSafeImplDate34 != null">#{dSafeImplDate34},</if>
            <if test="dSafeImplSign34 != null">#{dSafeImplSign34},</if>
            <if test="dSafeLiftedSign34 != null">#{dSafeLiftedSign34},</if>
            <if test="dSafeLiftedDate34 != null">#{dSafeLiftedDate34},</if>
            <if test="dSafeImplDate35 != null">#{dSafeImplDate35},</if>
            <if test="dSafeImplSign35 != null">#{dSafeImplSign35},</if>
            <if test="dSafeLiftedSign35 != null">#{dSafeLiftedSign35},</if>
            <if test="dSafeLiftedDate35 != null">#{dSafeLiftedDate35},</if>
            <if test="dSafeImplDate36 != null">#{dSafeImplDate36},</if>
            <if test="dSafeImplSign36 != null">#{dSafeImplSign36},</if>
            <if test="dSafeLiftedSign36 != null">#{dSafeLiftedSign36},</if>
            <if test="dSafeLiftedDate36 != null">#{dSafeLiftedDate36},</if>
            <if test="dSafeImplDate37 != null">#{dSafeImplDate37},</if>
            <if test="dSafeImplSign37 != null">#{dSafeImplSign37},</if>
            <if test="dSafeLiftedSign37 != null">#{dSafeLiftedSign37},</if>
            <if test="dSafeLiftedDate37 != null">#{dSafeLiftedDate37},</if>
            <if test="dSafeImplDate38 != null">#{dSafeImplDate38},</if>
            <if test="dSafeImplSign38 != null">#{dSafeImplSign38},</if>
            <if test="dSafeLiftedSign38 != null">#{dSafeLiftedSign38},</if>
            <if test="dSafeLiftedDate38 != null">#{dSafeLiftedDate38},</if>
            <if test="dSafeImplDate39 != null">#{dSafeImplDate39},</if>
            <if test="dSafeImplSign39 != null">#{dSafeImplSign39},</if>
            <if test="dSafeImplDate310 != null">#{dSafeImplDate310},</if>
            <if test="dSafeImplSign310 != null">#{dSafeImplSign310},</if>
            <if test="dSafeImplDate311 != null">#{dSafeImplDate311},</if>
            <if test="dSafeImplSign311 != null">#{dSafeImplSign311},</if>
            <if test="dSafeLiftedSign311 != null">#{dSafeLiftedSign311},</if>
            <if test="dSafeLiftedDate311 != null">#{dSafeLiftedDate311},</if>
            <if test="dSafeImplDate312 != null">#{dSafeImplDate312},</if>
            <if test="dSafeImplSign312 != null">#{dSafeImplSign312},</if>
            <if test="dSafeLiftedSign312 != null">#{dSafeLiftedSign312},</if>
            <if test="dSafeLiftedDate312 != null">#{dSafeLiftedDate312},</if>
            <if test="dSafeImplDate313 != null">#{dSafeImplDate313},</if>
            <if test="dSafeImplSign313 != null">#{dSafeImplSign313},</if>
            <if test="dSafeImplDate314 != null">#{dSafeImplDate314},</if>
            <if test="dSafeImplSign314 != null">#{dSafeImplSign314},</if>
            <if test="dSafeLiftedSign314 != null">#{dSafeLiftedSign314},</if>
            <if test="dSafeLiftedDate314 != null">#{dSafeLiftedDate314},</if>
            <if test="dSafeImplSign41 != null">#{dSafeImplSign41},</if>
            <if test="dSafeImplDate41 != null">#{dSafeImplDate41},</if>
            <if test="dSafeLiftedSign41 != null">#{dSafeLiftedSign41},</if>
            <if test="dSafeLiftedDate41 != null">#{dSafeLiftedDate41},</if>
            <if test="dSafeImplSign42 != null">#{dSafeImplSign42},</if>
            <if test="dSafeImplDate42 != null">#{dSafeImplDate42},</if>
            <if test="dSafeLiftedSign42 != null">#{dSafeLiftedSign42},</if>
            <if test="dSafeLiftedDate42 != null">#{dSafeLiftedDate42},</if>
            <if test="dSafeImplSign43 != null">#{dSafeImplSign43},</if>
            <if test="dSafeImplDate43 != null">#{dSafeImplDate43},</if>
            <if test="dSafeLiftedSign44 != null">#{dSafeLiftedSign44},</if>
            <if test="dSafeLiftedDate44 != null">#{dSafeLiftedDate44},</if>
            <if test="dSafeImplSign44 != null">#{dSafeImplSign44},</if>
            <if test="dSafeImplDate44 != null">#{dSafeImplDate44},</if>
            <if test="dSafeImplSign45 != null">#{dSafeImplSign45},</if>
            <if test="dSafeImplDate45 != null">#{dSafeImplDate45},</if>
            <if test="dSafeLiftedSign45 != null">#{dSafeLiftedSign45},</if>
            <if test="dSafeLiftedDate45 != null">#{dSafeLiftedDate45},</if>
            <if test="dSafeImplSign46 != null">#{dSafeImplSign46},</if>
            <if test="dSafeImplDate46 != null">#{dSafeImplDate46},</if>
            <if test="dSafeLiftedSign46 != null">#{dSafeLiftedSign46},</if>
            <if test="dSafeLiftedDate46 != null">#{dSafeLiftedDate46},</if>
            <if test="dSafeImplSign47 != null">#{dSafeImplSign47},</if>
            <if test="dSafeImplDate47 != null">#{dSafeImplDate47},</if>
            <if test="dSafeLiftedSign47 != null">#{dSafeLiftedSign47},</if>
            <if test="dSafeLiftedDate47 != null">#{dSafeLiftedDate47},</if>
            <if test="dSafeImplSign48 != null">#{dSafeImplSign48},</if>
            <if test="dSafeImplDate48 != null">#{dSafeImplDate48},</if>
            <if test="dSafeImplSign49 != null">#{dSafeImplSign49},</if>
            <if test="dSafeImplDate49 != null">#{dSafeImplDate49},</if>
            <if test="dSafeLiftedSign49 != null">#{dSafeLiftedSign49},</if>
            <if test="dSafeLiftedDate49 != null">#{dSafeLiftedDate49},</if>
            <if test="dSafeImplSign51 != null">#{dSafeImplSign51},</if>
            <if test="dSafeImplDate51 != null">#{dSafeImplDate51},</if>
            <if test="dSafeLiftedSign51 != null">#{dSafeLiftedSign51},</if>
            <if test="dSafeLiftedDate51 != null">#{dSafeLiftedDate51},</if>
            <if test="dSafeImplSign52 != null">#{dSafeImplSign52},</if>
            <if test="dSafeImplDate52 != null">#{dSafeImplDate52},</if>
            <if test="dSafeLiftedSign52 != null">#{dSafeLiftedSign52},</if>
            <if test="dSafeLiftedDate52 != null">#{dSafeLiftedDate52},</if>
            <if test="eIsPresent != null">#{eIsPresent},</if>
            <if test="eIsRequiredPpe != null">#{eIsRequiredPpe},</if>
            <if test="ePpeContent != null">#{ePpeContent},</if>
            <if test="eIsSafeGoggles != null">#{eIsSafeGoggles},</if>
            <if test="eIsFaceShield != null">#{eIsFaceShield},</if>
            <if test="eIsOther21 != null">#{eIsOther21},</if>
            <if test="eOther21Content != null">#{eOther21Content},</if>
            <if test="eIsProtectGloves != null">#{eIsProtectGloves},</if>
            <if test="eProtectGlovesContent != null">#{eProtectGlovesContent},</if>
            <if test="eIsRubberBoots != null">#{eIsRubberBoots},</if>
            <if test="eIsRubberApron != null">#{eIsRubberApron},</if>
            <if test="eIsOther23 != null">#{eIsOther23},</if>
            <if test="eIsOther23Content != null">#{eIsOther23Content},</if>
            <if test="eIsProtectSuit != null">#{eIsProtectSuit},</if>
            <if test="eProtectSuitContent != null">#{eProtectSuitContent},</if>
            <if test="eIsResProtect != null">#{eIsResProtect},</if>
            <if test="eResProtectContent != null">#{eResProtectContent},</if>
            <if test="eIsHearProtect != null">#{eIsHearProtect},</if>
            <if test="eHearProtectContent != null">#{eHearProtectContent},</if>
            <if test="eIsFallArrest != null">#{eIsFallArrest},</if>
            <if test="eFallArrestContent != null">#{eFallArrestContent},</if>
            <if test="eIsOtherProtect != null">#{eIsOtherProtect},</if>
            <if test="eOtherProtectContent != null">#{eOtherProtectContent},</if>
            <if test="eIsContineCheckAir != null">#{eIsContineCheckAir},</if>
            <if test="eIsKeepWet != null">#{eIsKeepWet},</if>
            <if test="eIsCheckInertGasPro != null">#{eIsCheckInertGasPro},</if>
            <if test="eIsWaterPro != null">#{eIsWaterPro},</if>
            <if test="eIsKeepCheck != null">#{eIsKeepCheck},</if>
            <if test="eIsFireWaterPipe != null">#{eIsFireWaterPipe},</if>
            <if test="eIsProFireExt != null">#{eIsProFireExt},</if>
            <if test="eFireExtType != null">#{eFireExtType},</if>
            <if test="eFireExtNum != null">#{eFireExtNum},</if>
            <if test="eLeaderUnit != null">#{eLeaderUnit},</if>
            <if test="eLeaderName != null">#{eLeaderName},</if>
            <if test="eIsCapture != null">#{eIsCapture},</if>
            <if test="eIsNaturalVen != null">#{eIsNaturalVen},</if>
            <if test="eNaturalVenContent != null">#{eNaturalVenContent},</if>
            <if test="eIsMecVen != null">#{eIsMecVen},</if>
            <if test="eMecVenContent != null">#{eMecVenContent},</if>
            <if test="eIsExxtractDust != null">#{eIsExxtractDust},</if>
            <if test="eIsAnalyzeAir != null">#{eIsAnalyzeAir},</if>
            <if test="eAnalyzeAirContent != null">#{eAnalyzeAirContent},</if>
            <if test="eAnalyzeAirInterval != null">#{eAnalyzeAirInterval},</if>
            <if test="fIsFireEndCheck != null">#{fIsFireEndCheck},</if>
            <if test="fProfessional != null">#{fProfessional},</if>
            <if test="fIsNoticeD != null">#{fIsNoticeD},</if>
            <if test="fIsOtherSafeMeasures != null">#{fIsOtherSafeMeasures},</if>
            <if test="fOtherSafeMeasuresContent != null">#{fOtherSafeMeasuresContent},</if>
            <if test="gFirstSign != null">#{gFirstSign},</if>
            <if test="gFirstDate != null">#{gFirstDate},</if>
            <if test="gSecondSign != null">#{gSecondSign},</if>
            <if test="gSecondDate != null">#{gSecondDate},</if>
            <if test="gThirdSign != null">#{gThirdSign},</if>
            <if test="gThirdDate != null">#{gThirdDate},</if>
            <if test="gIsSpecialAssessment != null">#{gIsSpecialAssessment},</if>
            <if test="gSpecialAssessment != null">#{gSpecialAssessment},</if>
            <if test="hSafeMesSign != null">#{hSafeMesSign},</if>
            <if test="hSafeMesDate != null">#{hSafeMesDate},</if>
            <if test="hSafeMesA4Sign != null">#{hSafeMesA4Sign},</if>
            <if test="hSafeMesA4Date != null">#{hSafeMesA4Date},</if>
            <if test="iOneASign != null">#{iOneASign},</if>
            <if test="iOneADate != null">#{iOneADate},</if>
            <if test="iOneBSign != null">#{iOneBSign},</if>
            <if test="iOneBDate != null">#{iOneBDate},</if>
            <if test="jOneBSign != null">#{jOneBSign},</if>
            <if test="jOneBDate != null">#{jOneBDate},</if>
            <if test="jResMemberSign != null">#{jResMemberSign},</if>
            <if test="jResMemberDate != null">#{jResMemberDate},</if>
            <if test="jEISign != null">#{jEISign},</if>
            <if test="jEIDate != null">#{jEIDate},</if>
            <if test="kConfirmSign != null">#{kConfirmSign},</if>
            <if test="kConfirmDate != null">#{kConfirmDate},</if>
            <if test="lNoticeSign != null">#{lNoticeSign},</if>
            <if test="lNoticeDate != null">#{lNoticeDate},</if>
            <if test="mAssessDContent != null">#{mAssessDContent},</if>
            <if test="mAssessDSign != null">#{mAssessDSign},</if>
            <if test="mAssessDDate != null">#{mAssessDDate},</if>
            <if test="mOtherLicenceOne != null">#{mOtherLicenceOne},</if>
            <if test="mOtherLicenceTwo != null">#{mOtherLicenceTwo},</if>
            <if test="mOtherLicenceThree != null">#{mOtherLicenceThree},</if>
            <if test="wordUrl != null">#{wordUrl},</if>
            <if test="pdfUrl != null">#{pdfUrl},</if>
            <if test="dIsDisFeeder != null">#{dIsDisFeeder},</if>
            <if test="eIsFaceSafe != null">#{eIsFaceSafe},</if>
            <if test="eIsFeetSafe != null">#{eIsFeetSafe},</if>
            <if test="eIsVentilate != null">#{eIsVentilate},</if>
        </trim>
    </insert>

    <update id="updateTPermitFireWork" parameterType="TPermitFireWork">
        update t_permit_fire_work
        <trim prefix="SET" suffixOverrides=",">
            <if test="aEquipmentName != null">a_equipment_name = #{aEquipmentName},</if>
            <if test="aEquipmentLeader != null">a_equipment_leader = #{aEquipmentLeader},</if>
            <if test="aEquipmentTel != null">a_equipment_tel = #{aEquipmentTel},</if>
            <if test="aEquipmentOffice != null">a_equipment_office = #{aEquipmentOffice},</if>
            <if test="aConstructionName != null">a_construction_name = #{aConstructionName},</if>
            <if test="aConstructionLeader != null">a_construction_leader = #{aConstructionLeader},</if>
            <if test="aConstructionTel != null">a_construction_tel = #{aConstructionTel},</if>
            <if test="aConstructionOffice != null">a_construction_office = #{aConstructionOffice},</if>
            <if test="aContractorName != null">a_contractor_name = #{aContractorName},</if>
            <if test="aContractorLeader != null">a_contractor_leader = #{aContractorLeader},</if>
            <if test="aContractorTel != null">a_contractor_tel = #{aContractorTel},</if>
            <if test="aContractorOffice != null">a_contractor_office = #{aContractorOffice},</if>
            <if test="aIsNeedSafeLiaison != null">a_is_need_safe_liaison = #{aIsNeedSafeLiaison},</if>
            <if test="aSafeLiaisonName != null">a_safe_liaison_name = #{aSafeLiaisonName},</if>
            <if test="aSafeLiaisonSign != null">a_safe_liaison_sign = #{aSafeLiaisonSign},</if>
            <if test="aSafeLiaisonTel != null">a_safe_liaison_tel = #{aSafeLiaisonTel},</if>
            <if test="aSafeLiaisonOffice != null">a_safe_liaison_office = #{aSafeLiaisonOffice},</if>
            <if test="bDeviceName != null">b_device_name = #{bDeviceName},</if>
            <if test="bAreaNo != null">b_area_no = #{bAreaNo},</if>
            <if test="bWorkContent != null">b_work_content = #{bWorkContent},</if>
            <if test="bValidityStartTime != null">b_validity_start_time = #{bValidityStartTime},</if>
            <if test="bValidityEndTime != null">b_validity_end_time = #{bValidityEndTime},</if>
            <if test="bFireWorkGrade != null">b_fire_work_grade = #{bFireWorkGrade},</if>
            <if test="cIsEquipmentHazards != null">c_is_equipment_hazards= #{cIsEquipmentHazards},</if>
            <if test="cIsFacilityHazards != null">c_is_facility_hazards=#{cIsFacilityHazards},</if>
            <if test="cHarmMatterName != null">c_harm_matter_name = #{cHarmMatterName},</if>
            <if test="cIsGhs != null">c_is_ghs = #{cIsGhs},</if>
            <if test="cIsToxic != null">c_is_toxic = #{cIsToxic},</if>
            <if test="cIsFlammable != null">c_is_flammable = #{cIsFlammable},</if>
            <if test="cIsOxidizing != null">c_is_oxidizing = #{cIsOxidizing},</if>
            <if test="cIsExplosive != null">c_is_explosive = #{cIsExplosive},</if>
            <if test="cIsCorrosive != null">c_is_corrosive = #{cIsCorrosive},</if>
            <if test="cIsIrritantToxic != null">c_is_irritant_toxic = #{cIsIrritantToxic},</if>
            <if test="cIsHealthHazard != null">c_is_health_hazard = #{cIsHealthHazard},</if>
            <if test="cIsCompressedGas != null">c_is_compressed_gas = #{cIsCompressedGas},</if>
            <if test="cIsEnvironmentalHazard != null">c_is_environmental_hazard = #{cIsEnvironmentalHazard},</if>
            <if test="cIsHighTemp != null">c_is_high_temp = #{cIsHighTemp},</if>
            <if test="cIsLowTemp != null">c_is_low_temp = #{cIsLowTemp},</if>
            <if test="cIsPosPressure != null">c_is_pos_pressure = #{cIsPosPressure},</if>
            <if test="cIsNegPressure != null">c_is_neg_pressure = #{cIsNegPressure},</if>
            <if test="cIsMovingParts != null">c_is_moving_parts = #{cIsMovingParts},</if>
            <if test="cIsHotSurfaces != null">c_is_hot_surfaces = #{cIsHotSurfaces},</if>
            <if test="cIsColdSurfaces != null">c_is_cold_surfaces = #{cIsColdSurfaces},</if>
            <if test="cIsVoltages != null">c_is_voltages = #{cIsVoltages},</if>
            <if test="cIsWorkProtective != null">c_is_work_protective = #{cIsWorkProtective},</if>
            <if test="cIsHazardsProd != null">c_is_hazards_prod = #{cIsHazardsProd},</if>
            <if test="cIsHazardsProdContent != null">c_is_hazards_prod_content = #{cIsHazardsProdContent},</if>
            <if test="cIsWorkToFire != null">c_is_work_to_fire = #{cIsWorkToFire},</if>
            <if test="cIsWorkToBlast != null">c_is_work_to_blast = #{cIsWorkToBlast},</if>
            <if test="cIsWorkToEnvir != null">c_is_work_to_envir = #{cIsWorkToEnvir},</if>
            <if test="cIsDeviceToBlast != null">c_is_device_to_blast = #{cIsDeviceToBlast},</if>
            <if test="cIsOtherId != null">c_is_other_id = #{cIsOtherId},</if>
            <if test="cOtherId != null">c_other_id = #{cOtherId},</if>
            <if test="cIsOtherFire != null">c_is_other_fire = #{cIsOtherFire},</if>
            <if test="cOtherFireContent != null">c_other_fire_content = #{cOtherFireContent},</if>
            <if test="dIsDivide != null">d_is_divide = #{dIsDivide},</if>
            <if test="dDivideContent != null">d_divide_content = #{dDivideContent},</if>
            <if test="dIsSlicing != null">d_is_slicing = #{dIsSlicing},</if>
            <if test="dSlicingContent != null">d_slicing_content = #{dSlicingContent},</if>
            <if test="dIsOpenSafe != null">d_is_open_safe = #{dIsOpenSafe},</if>
            <if test="dIsBreakIncl != null">d_is_break_incl = #{dIsBreakIncl},</if>
            <if test="dBreakInclContent != null">d_break_incl_content = #{dBreakInclContent},</if>
            <if test="dEleCircuitNo != null">d_ele_circuit_no = #{dEleCircuitNo},</if>
            <if test="dInsTagNo != null">d_ins_tag_no = #{dInsTagNo},</if>
            <if test="dIsRadioactiveSources != null">d_is_radioactive_sources = #{dIsRadioactiveSources},</if>
            <if test="dIsOtherEquSafe != null">d_is_other_equ_safe = #{dIsOtherEquSafe},</if>
            <if test="dIsOtherEquSafeContent != null">d_is_other_equ_safe_content = #{dIsOtherEquSafeContent},</if>
            <if test="dIsDepress != null">d_is_depress = #{dIsDepress},</if>
            <if test="dIsSingleBlocking != null">d_is_single_blocking = #{dIsSingleBlocking},</if>
            <if test="dIsDoubleBlock != null">d_is_double_block = #{dIsDoubleBlock},</if>
            <if test="dIsLockoutUsing != null">d_is_lockout_using = #{dIsLockoutUsing},</if>
            <if test="dLockoutUsingContent != null">d_lockout_using_content = #{dLockoutUsingContent},</if>
            <if test="dIsRemovePipe != null">d_is_remove_pipe = #{dIsRemovePipe},</if>
            <if test="dIsDisPipes != null">d_is_dis_pipes = #{dIsDisPipes},</if>
            <if test="dIsInsertBlindPlage != null">d_is_insert_blind_plage = #{dIsInsertBlindPlage},</if>
            <if test="dIsMecSecure != null">d_is_mec_secure = #{dIsMecSecure},</if>
            <if test="dMecSecureContent != null">d_mec_secure_content = #{dMecSecureContent},</if>
            <if test="dIsClean != null">d_is_clean = #{dIsClean},</if>
            <if test="dCleanContent != null">d_clean_content = #{dCleanContent},</if>
            <if test="dIsFlush != null">d_is_flush = #{dIsFlush},</if>
            <if test="dFlushContent != null">d_flush_content = #{dFlushContent},</if>
            <if test="dIsFloodWater != null">d_is_flood_water = #{dIsFloodWater},</if>
            <if test="dIsProInertGas != null">d_is_pro_inert_gas = #{dIsProInertGas},</if>
            <if test="dProInertGasContent != null">d_pro_inert_gas_content = #{dProInertGasContent},</if>
            <if test="dIsGasAnalysis != null">d_is_gas_analysis = #{dIsGasAnalysis},</if>
            <if test="dGasAnalysisContent != null">d_gas_analysis_content = #{dGasAnalysisContent},</if>
            <if test="dIsOtherDevSafe != null">d_is_other_dev_safe = #{dIsOtherDevSafe},</if>
            <if test="dOtherDevSafeContent != null">d_other_dev_safe_content = #{dOtherDevSafeContent},</if>
            <if test="dIsSiteDemarcation != null">d_is_site_demarcation = #{dIsSiteDemarcation},</if>
            <if test="dSiteDemarcationContent != null">d_site_demarcation_content = #{dSiteDemarcationContent},</if>
            <if test="dIsCloseTrucks != null">d_is_close_trucks = #{dIsCloseTrucks},</if>
            <if test="dIsDistance != null">d_is_distance = #{dIsDistance},</if>
            <if test="dDistanceContent != null">d_distance_content = #{dDistanceContent},</if>
            <if test="dIsCleanCover != null">d_is_clean_cover = #{dIsCleanCover},</if>
            <if test="dIsLeakFlanges != null">d_is_leak_flanges = #{dIsLeakFlanges},</if>
            <if test="dIsCleanAround != null">d_is_clean_around = #{dIsCleanAround},</if>
            <if test="dIsVentilate != null">d_is_ventilate = #{dIsVentilate},</if>
            <if test="dIsMecVen != null">d_is_mec_ven = #{dIsMecVen},</if>
            <if test="dMecVenContent != null">d_mec_ven_content = #{dMecVenContent},</if>
            <if test="dIsNaturalVen != null">d_is_natural_ven = #{dIsNaturalVen},</if>
            <if test="dNaturalVenContent != null">d_natural_ven_content = #{dNaturalVenContent},</if>
            <if test="dIsGasDetection != null">d_is_gas_detection = #{dIsGasDetection},</if>
            <if test="dGasDetectionContent != null">d_gas_detection_content = #{dGasDetectionContent},</if>
            <if test="dIsOtherAreaSafe != null">d_is_other_area_safe = #{dIsOtherAreaSafe},</if>
            <if test="dOtherAreaSafeContent != null">d_other_area_safe_content = #{dOtherAreaSafeContent},</if>
            <if test="dIsAlarmSystems != null">d_is_alarm_systems = #{dIsAlarmSystems},</if>
            <if test="dAlarmSystemsContent != null">d_alarm_systems_content = #{dAlarmSystemsContent},</if>
            <if test="dIsOtherMeasure != null">d_is_other_measure = #{dIsOtherMeasure},</if>
            <if test="dOtherMeasureContent != null">d_other_measure_content = #{dOtherMeasureContent},</if>
            <if test="dDangerArea61 != null">d_danger_area61 = #{dDangerArea61},</if>
            <if test="dDangerLeader61 != null">d_danger_leader61 = #{dDangerLeader61},</if>
            <if test="dDangerLeaderDate61 != null">d_danger_leader_date61 = #{dDangerLeaderDate61},</if>
            <if test="dDangerOffice61 != null">d_danger_office61 = #{dDangerOffice61},</if>
            <if test="dDangerOfficeTel61 != null">d_danger_office_tel61 = #{dDangerOfficeTel61},</if>
            <if test="dDangerOtherMeasure61 != null">d_danger_other_measure61 = #{dDangerOtherMeasure61},</if>
            <if test="dDangerArea62 != null">d_danger_area62 = #{dDangerArea62},</if>
            <if test="dDangerLeader62 != null">d_danger_leader62 = #{dDangerLeader62},</if>
            <if test="dDangerLeaderDate62 != null">d_danger_leader_date62 = #{dDangerLeaderDate62},</if>
            <if test="dDangerOffice62 != null">d_danger_office62 = #{dDangerOffice62},</if>
            <if test="dDangerOfficeTel62 != null">d_danger_office_tel62 = #{dDangerOfficeTel62},</if>
            <if test="dDangerOtherMeasure62 != null">d_danger_other_measure62 = #{dDangerOtherMeasure62},</if>
            <if test="dPartakeBriefingSign != null">d_partake_briefing_sign = #{dPartakeBriefingSign},</if>
            <if test="dPartakeBriefingDate != null">d_partake_briefing_date = #{dPartakeBriefingDate},</if>
            <if test="dSafeImplSign11 != null">d_safe_impl_sign11 = #{dSafeImplSign11},</if>
            <if test="dSafeImplDate11 != null">d_safe_impl_date11 = #{dSafeImplDate11},</if>
            <if test="dSafeImplSign12 != null">d_safe_impl_sign12 = #{dSafeImplSign12},</if>
            <if test="dSafeImplDate12 != null">d_safe_impl_date12 = #{dSafeImplDate12},</if>
            <if test="dSafeImplDate21 != null">d_safe_impl_date21 = #{dSafeImplDate21},</if>
            <if test="dSafeImplSign21 != null">d_safe_impl_sign21 = #{dSafeImplSign21},</if>
            <if test="dSafeLiftedSign21 != null">d_safe_lifted_sign21 = #{dSafeLiftedSign21},</if>
            <if test="dSafeLiftedDate21 != null">d_safe_lifted_date21 = #{dSafeLiftedDate21},</if>
            <if test="dSafeImplDate22 != null">d_safe_impl_date22 = #{dSafeImplDate22},</if>
            <if test="dSafeImplSign22 != null">d_safe_impl_sign22 = #{dSafeImplSign22},</if>
            <if test="dSafeLiftedSign22 != null">d_safe_lifted_sign22 = #{dSafeLiftedSign22},</if>
            <if test="dSafeLiftedDate22 != null">d_safe_lifted_date22 = #{dSafeLiftedDate22},</if>
            <if test="dSafeImplDate23 != null">d_safe_impl_date23 = #{dSafeImplDate23},</if>
            <if test="dSafeImplSign23 != null">d_safe_impl_sign23 = #{dSafeImplSign23},</if>
            <if test="dSafeLiftedSign23 != null">d_safe_lifted_sign23 = #{dSafeLiftedSign23},</if>
            <if test="dSafeLiftedDate23 != null">d_safe_lifted_date23 = #{dSafeLiftedDate23},</if>
            <if test="dSafeImplDate24 != null">d_safe_impl_date24 = #{dSafeImplDate24},</if>
            <if test="dSafeImplSign24 != null">d_safe_impl_sign24 = #{dSafeImplSign24},</if>
            <if test="dSafeLiftedSign24 != null">d_safe_lifted_sign24 = #{dSafeLiftedSign24},</if>
            <if test="dSafeLiftedDate24 != null">d_safe_lifted_date24 = #{dSafeLiftedDate24},</if>
            <if test="dSafeImplDate31 != null">d_safe_impl_date31 = #{dSafeImplDate31},</if>
            <if test="dSafeImplSign31 != null">d_safe_impl_sign31 = #{dSafeImplSign31},</if>
            <if test="dSafeImplDate32 != null">d_safe_impl_date32 = #{dSafeImplDate32},</if>
            <if test="dSafeImplSign32 != null">d_safe_impl_sign32 = #{dSafeImplSign32},</if>
            <if test="dSafeLiftedSign32 != null">d_safe_lifted_sign32 = #{dSafeLiftedSign32},</if>
            <if test="dSafeLiftedDate32 != null">d_safe_lifted_date32 = #{dSafeLiftedDate32},</if>
            <if test="dSafeImplDate33 != null">d_safe_impl_date33 = #{dSafeImplDate33},</if>
            <if test="dSafeImplSign33 != null">d_safe_impl_sign33 = #{dSafeImplSign33},</if>
            <if test="dSafeLiftedSign33 != null">d_safe_lifted_sign33 = #{dSafeLiftedSign33},</if>
            <if test="dSafeLiftedDate33 != null">d_safe_lifted_date33 = #{dSafeLiftedDate33},</if>
            <if test="dSafeImplDate34 != null">d_safe_impl_date34 = #{dSafeImplDate34},</if>
            <if test="dSafeImplSign34 != null">d_safe_impl_sign34 = #{dSafeImplSign34},</if>
            <if test="dSafeLiftedSign34 != null">d_safe_lifted_sign34 = #{dSafeLiftedSign34},</if>
            <if test="dSafeLiftedDate34 != null">d_safe_lifted_date34 = #{dSafeLiftedDate34},</if>
            <if test="dSafeImplDate35 != null">d_safe_impl_date35 = #{dSafeImplDate35},</if>
            <if test="dSafeImplSign35 != null">d_safe_impl_sign35 = #{dSafeImplSign35},</if>
            <if test="dSafeLiftedSign35 != null">d_safe_lifted_sign35 = #{dSafeLiftedSign35},</if>
            <if test="dSafeLiftedDate35 != null">d_safe_lifted_date35 = #{dSafeLiftedDate35},</if>
            <if test="dSafeImplDate36 != null">d_safe_impl_date36 = #{dSafeImplDate36},</if>
            <if test="dSafeImplSign36 != null">d_safe_impl_sign36 = #{dSafeImplSign36},</if>
            <if test="dSafeLiftedSign36 != null">d_safe_lifted_sign36 = #{dSafeLiftedSign36},</if>
            <if test="dSafeLiftedDate36 != null">d_safe_lifted_date36 = #{dSafeLiftedDate36},</if>
            <if test="dSafeImplDate37 != null">d_safe_impl_date37 = #{dSafeImplDate37},</if>
            <if test="dSafeImplSign37 != null">d_safe_impl_sign37 = #{dSafeImplSign37},</if>
            <if test="dSafeLiftedSign37 != null">d_safe_lifted_sign37 = #{dSafeLiftedSign37},</if>
            <if test="dSafeLiftedDate37 != null">d_safe_lifted_date37 = #{dSafeLiftedDate37},</if>
            <if test="dSafeImplDate38 != null">d_safe_impl_date38 = #{dSafeImplDate38},</if>
            <if test="dSafeImplSign38 != null">d_safe_impl_sign38 = #{dSafeImplSign38},</if>
            <if test="dSafeLiftedSign38 != null">d_safe_lifted_sign38 = #{dSafeLiftedSign38},</if>
            <if test="dSafeLiftedDate38 != null">d_safe_lifted_date38 = #{dSafeLiftedDate38},</if>
            <if test="dSafeImplDate39 != null">d_safe_impl_date39 = #{dSafeImplDate39},</if>
            <if test="dSafeImplSign39 != null">d_safe_impl_sign39 = #{dSafeImplSign39},</if>
            <if test="dSafeImplDate310 != null">d_safe_impl_date310 = #{dSafeImplDate310},</if>
            <if test="dSafeImplSign310 != null">d_safe_impl_sign310 = #{dSafeImplSign310},</if>
            <if test="dSafeImplDate311 != null">d_safe_impl_date311 = #{dSafeImplDate311},</if>
            <if test="dSafeImplSign311 != null">d_safe_impl_sign311 = #{dSafeImplSign311},</if>
            <if test="dSafeLiftedSign311 != null">d_safe_lifted_sign311 = #{dSafeLiftedSign311},</if>
            <if test="dSafeLiftedDate311 != null">d_safe_lifted_date311 = #{dSafeLiftedDate311},</if>
            <if test="dSafeImplDate312 != null">d_safe_impl_date312 = #{dSafeImplDate312},</if>
            <if test="dSafeImplSign312 != null">d_safe_impl_sign312 = #{dSafeImplSign312},</if>
            <if test="dSafeLiftedSign312 != null">d_safe_lifted_sign312 = #{dSafeLiftedSign312},</if>
            <if test="dSafeLiftedDate312 != null">d_safe_lifted_date312 = #{dSafeLiftedDate312},</if>
            <if test="dSafeImplDate313 != null">d_safe_impl_date313 = #{dSafeImplDate313},</if>
            <if test="dSafeImplSign313 != null">d_safe_impl_sign313 = #{dSafeImplSign313},</if>
            <if test="dSafeImplDate314 != null">d_safe_impl_date314 = #{dSafeImplDate314},</if>
            <if test="dSafeImplSign314 != null">d_safe_impl_sign314 = #{dSafeImplSign314},</if>
            <if test="dSafeLiftedSign314 != null">d_safe_lifted_sign314 = #{dSafeLiftedSign314},</if>
            <if test="dSafeLiftedDate314 != null">d_safe_lifted_date314 = #{dSafeLiftedDate314},</if>
            <if test="dSafeImplSign41 != null">d_safe_impl_sign41 = #{dSafeImplSign41},</if>
            <if test="dSafeImplDate41 != null">d_safe_impl_date41 = #{dSafeImplDate41},</if>
            <if test="dSafeLiftedSign41 != null">d_safe_lifted_sign41 = #{dSafeLiftedSign41},</if>
            <if test="dSafeLiftedDate41 != null">d_safe_lifted_date41 = #{dSafeLiftedDate41},</if>
            <if test="dSafeImplSign42 != null">d_safe_impl_sign42 = #{dSafeImplSign42},</if>
            <if test="dSafeImplDate42 != null">d_safe_impl_date42 = #{dSafeImplDate42},</if>
            <if test="dSafeLiftedSign42 != null">d_safe_lifted_sign42 = #{dSafeLiftedSign42},</if>
            <if test="dSafeLiftedDate42 != null">d_safe_lifted_date42 = #{dSafeLiftedDate42},</if>
            <if test="dSafeImplSign43 != null">d_safe_impl_sign43 = #{dSafeImplSign43},</if>
            <if test="dSafeImplDate43 != null">d_safe_impl_date43 = #{dSafeImplDate43},</if>
            <if test="dSafeLiftedSign44 != null">d_safe_lifted_sign44 = #{dSafeLiftedSign44},</if>
            <if test="dSafeLiftedDate44 != null">d_safe_lifted_date44 = #{dSafeLiftedDate44},</if>
            <if test="dSafeImplSign44 != null">d_safe_impl_sign44 = #{dSafeImplSign44},</if>
            <if test="dSafeImplDate44 != null">d_safe_impl_date44 = #{dSafeImplDate44},</if>
            <if test="dSafeImplSign45 != null">d_safe_impl_sign45 = #{dSafeImplSign45},</if>
            <if test="dSafeImplDate45 != null">d_safe_impl_date45 = #{dSafeImplDate45},</if>
            <if test="dSafeLiftedSign45 != null">d_safe_lifted_sign45 = #{dSafeLiftedSign45},</if>
            <if test="dSafeLiftedDate45 != null">d_safe_lifted_date45 = #{dSafeLiftedDate45},</if>
            <if test="dSafeImplSign46 != null">d_safe_impl_sign46 = #{dSafeImplSign46},</if>
            <if test="dSafeImplDate46 != null">d_safe_impl_date46 = #{dSafeImplDate46},</if>
            <if test="dSafeLiftedSign46 != null">d_safe_lifted_sign46 = #{dSafeLiftedSign46},</if>
            <if test="dSafeLiftedDate46 != null">d_safe_lifted_date46 = #{dSafeLiftedDate46},</if>
            <if test="dSafeImplSign47 != null">d_safe_impl_sign47 = #{dSafeImplSign47},</if>
            <if test="dSafeImplDate47 != null">d_safe_impl_date47 = #{dSafeImplDate47},</if>
            <if test="dSafeLiftedSign47 != null">d_safe_lifted_sign47 = #{dSafeLiftedSign47},</if>
            <if test="dSafeLiftedDate47 != null">d_safe_lifted_date47 = #{dSafeLiftedDate47},</if>
            <if test="dSafeImplSign48 != null">d_safe_impl_sign48 = #{dSafeImplSign48},</if>
            <if test="dSafeImplDate48 != null">d_safe_impl_date48 = #{dSafeImplDate48},</if>
            <if test="dSafeImplSign49 != null">d_safe_impl_sign49 = #{dSafeImplSign49},</if>
            <if test="dSafeImplDate49 != null">d_safe_impl_date49 = #{dSafeImplDate49},</if>
            <if test="dSafeLiftedSign49 != null">d_safe_lifted_sign49 = #{dSafeLiftedSign49},</if>
            <if test="dSafeLiftedDate49 != null">d_safe_lifted_date49 = #{dSafeLiftedDate49},</if>
            <if test="dSafeImplSign51 != null">d_safe_impl_sign51 = #{dSafeImplSign51},</if>
            <if test="dSafeImplDate51 != null">d_safe_impl_date51 = #{dSafeImplDate51},</if>
            <if test="dSafeLiftedSign51 != null">d_safe_lifted_sign51 = #{dSafeLiftedSign51},</if>
            <if test="dSafeLiftedDate51 != null">d_safe_lifted_date51 = #{dSafeLiftedDate51},</if>
            <if test="dSafeImplSign52 != null">d_safe_impl_sign52 = #{dSafeImplSign52},</if>
            <if test="dSafeImplDate52 != null">d_safe_impl_date52 = #{dSafeImplDate52},</if>
            <if test="dSafeLiftedSign52 != null">d_safe_lifted_sign52 = #{dSafeLiftedSign52},</if>
            <if test="dSafeLiftedDate52 != null">d_safe_lifted_date52 = #{dSafeLiftedDate52},</if>
            <if test="eIsPresent != null">e_is_present = #{eIsPresent},</if>
            <if test="eIsRequiredPpe != null">e_is_required_ppe = #{eIsRequiredPpe},</if>
            <if test="ePpeContent != null">e_ppe_content = #{ePpeContent},</if>
            <if test="eIsSafeGoggles != null">e_is_safe_goggles = #{eIsSafeGoggles},</if>
            <if test="eIsFaceShield != null">e_is_face_shield = #{eIsFaceShield},</if>
            <if test="eIsOther21 != null">e_is_other21 = #{eIsOther21},</if>
            <if test="eOther21Content != null">e_other21_content = #{eOther21Content},</if>
            <if test="eIsProtectGloves != null">e_is_protect_gloves = #{eIsProtectGloves},</if>
            <if test="eProtectGlovesContent != null">e_protect_gloves_content = #{eProtectGlovesContent},</if>
            <if test="eIsRubberBoots != null">e_is_rubber_boots = #{eIsRubberBoots},</if>
            <if test="eIsRubberApron != null">e_is_rubber_apron = #{eIsRubberApron},</if>
            <if test="eIsOther23 != null">e_is_other23 = #{eIsOther23},</if>
            <if test="eIsOther23Content != null">e_is_other23_content = #{eIsOther23Content},</if>
            <if test="eIsProtectSuit != null">e_is_protect_suit = #{eIsProtectSuit},</if>
            <if test="eProtectSuitContent != null">e_protect_suit_content = #{eProtectSuitContent},</if>
            <if test="eIsResProtect != null">e_is_res_protect = #{eIsResProtect},</if>
            <if test="eResProtectContent != null">e_res_protect_content = #{eResProtectContent},</if>
            <if test="eIsHearProtect != null">e_is_hear_protect = #{eIsHearProtect},</if>
            <if test="eHearProtectContent != null">e_hear_protect_content = #{eHearProtectContent},</if>
            <if test="eIsFallArrest != null">e_is_fall_arrest = #{eIsFallArrest},</if>
            <if test="eFallArrestContent != null">e_fall_arrest_content = #{eFallArrestContent},</if>
            <if test="eIsOtherProtect != null">e_is_other_protect = #{eIsOtherProtect},</if>
            <if test="eOtherProtectContent != null">e_other_protect_content = #{eOtherProtectContent},</if>
            <if test="eIsContineCheckAir != null">e_is_contine_check_air = #{eIsContineCheckAir},</if>
            <if test="eIsKeepWet != null">e_is_keep_wet = #{eIsKeepWet},</if>
            <if test="eIsCheckInertGasPro != null">e_is_check_inert_gas_pro = #{eIsCheckInertGasPro},</if>
            <if test="eIsWaterPro != null">e_is_water_pro = #{eIsWaterPro},</if>
            <if test="eIsKeepCheck != null">e_is_keep_check = #{eIsKeepCheck},</if>
            <if test="eIsFireWaterPipe != null">e_is_fire_water_pipe = #{eIsFireWaterPipe},</if>
            <if test="eIsProFireExt != null">e_is_pro_fire_ext = #{eIsProFireExt},</if>
            <if test="eFireExtType != null">e_fire_ext_type = #{eFireExtType},</if>
            <if test="eFireExtNum != null">e_fire_ext_num = #{eFireExtNum},</if>
            <if test="eLeaderUnit != null">e_leader_unit = #{eLeaderUnit},</if>
            <if test="eLeaderName != null">e_leader_name = #{eLeaderName},</if>
            <if test="eIsCapture != null">e_is_capture = #{eIsCapture},</if>
            <if test="eIsNaturalVen != null">e_is_natural_ven = #{eIsNaturalVen},</if>
            <if test="eNaturalVenContent != null">e_natural_ven_content = #{eNaturalVenContent},</if>
            <if test="eIsMecVen != null">e_is_mec_ven = #{eIsMecVen},</if>
            <if test="eMecVenContent != null">e_mec_ven_content = #{eMecVenContent},</if>
            <if test="eIsExxtractDust != null">e_is_exxtract_dust = #{eIsExxtractDust},</if>
            <if test="eIsAnalyzeAir != null">e_is_analyze_air = #{eIsAnalyzeAir},</if>
            <if test="eAnalyzeAirContent != null">e_analyze_air_content = #{eAnalyzeAirContent},</if>
            <if test="eAnalyzeAirInterval != null">e_analyze_air_interval = #{eAnalyzeAirInterval},</if>
            <if test="fIsFireEndCheck != null">f_is_fire_end_check = #{fIsFireEndCheck},</if>
            <if test="fProfessional != null">f_professional = #{fProfessional},</if>
            <if test="fIsNoticeD != null">f_is_notice_d = #{fIsNoticeD},</if>
            <if test="fIsOtherSafeMeasures != null">f_is_other_safe_measures = #{fIsOtherSafeMeasures},</if>
            <if test="fOtherSafeMeasuresContent != null">f_other_safe_measures_content = #{fOtherSafeMeasuresContent},</if>
            <if test="gFirstSign != null">g_first_sign = #{gFirstSign},</if>
            <if test="gFirstDate != null">g_first_date = #{gFirstDate},</if>
            <if test="gSecondSign != null">g_second_sign = #{gSecondSign},</if>
            <if test="gSecondDate != null">g_second_date = #{gSecondDate},</if>
            <if test="gThirdSign != null">g_third_sign = #{gThirdSign},</if>
            <if test="gThirdDate != null">g_third_date = #{gThirdDate},</if>
            <if test="gIsSpecialAssessment != null">g_is_special_assessment = #{gIsSpecialAssessment},</if>
            <if test="gSpecialAssessment != null">g_special_assessment = #{gSpecialAssessment},</if>
            <if test="hSafeMesSign != null">h_safe_mes_sign = #{hSafeMesSign},</if>
            <if test="hSafeMesDate != null">h_safe_mes_date = #{hSafeMesDate},</if>
            <if test="hSafeMesA4Sign != null">h_safe_mes_a4_sign = #{hSafeMesA4Sign},</if>
            <if test="hSafeMesA4Date != null">h_safe_mes_a4_date = #{hSafeMesA4Date},</if>
            <if test="iOneASign != null">i_one_a_sign = #{iOneASign},</if>
            <if test="iOneADate != null">i_one_a_date = #{iOneADate},</if>
            <if test="iOneBSign != null">i_one_b_sign = #{iOneBSign},</if>
            <if test="iOneBDate != null">i_one_b_date = #{iOneBDate},</if>
            <if test="jOneBSign != null">j_one_b_sign = #{jOneBSign},</if>
            <if test="jOneBDate != null">j_one_b_date = #{jOneBDate},</if>
            <if test="jResMemberSign != null">j_res_member_sign = #{jResMemberSign},</if>
            <if test="jResMemberDate != null">j_res_member_date = #{jResMemberDate},</if>
            <if test="jEISign != null">j_e_i_sign = #{jEISign},</if>
            <if test="jEIDate != null">j_e_i_date = #{jEIDate},</if>
            <if test="kConfirmSign != null">k_confirm_sign = #{kConfirmSign},</if>
            <if test="kConfirmDate != null">k_confirm_date = #{kConfirmDate},</if>
            <if test="lNoticeSign != null">l_notice_sign = #{lNoticeSign},</if>
            <if test="lNoticeDate != null">l_notice_date = #{lNoticeDate},</if>
            <if test="mAssessDContent != null">m_assess_d_content = #{mAssessDContent},</if>
            <if test="mAssessDSign != null">m_assess_d_sign = #{mAssessDSign},</if>
            <if test="mAssessDDate != null">m_assess_d_date = #{mAssessDDate},</if>
            <if test="mOtherLicenceOne != null">m_other_licence_one = #{mOtherLicenceOne},</if>
            <if test="mOtherLicenceTwo != null">m_other_licence_two = #{mOtherLicenceTwo},</if>
            <if test="mOtherLicenceThree != null">m_other_licence_three = #{mOtherLicenceThree},</if>
            <if test="wordUrl != null">word_url = #{wordUrl},</if>
            <if test="pdfUrl != null">pdf_url = #{pdfUrl},</if>
            <if test="dIsDisFeeder != null">d_is_dis_feeder = #{dIsDisFeeder},</if>
            <if test="eIsFaceSafe != null">e_is_face_safe = #{eIsFaceSafe},</if>
            <if test="eIsFeetSafe != null">e_is_feet_safe = #{eIsFeetSafe},</if>
            <if test="eIsVentilate != null">e_is_ventilate = #{eIsVentilate},</if>
        </trim>
        where h_id = #{hId}
    </update>

    <update id="deleteTPermitFireWorkById" parameterType="Long">
        update t_permit_fire_work set del_flag = 2 where h_id = #{hId}
    </update>

    <update id="deleteTPermitFireWorkByIds" parameterType="String">
        update t_permit_fire_work set del_flag = 2 where h_id in
        <foreach item="hId" collection="array" open="(" separator="," close=")">
            #{hId}
        </foreach>
    </update>

</mapper>
