|
@@ -0,0 +1,195 @@
|
|
|
+<?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.sooka.sponest.event.eventPostDisasterAssess.mapper.FireAssessMapper">
|
|
|
+
|
|
|
+ <resultMap type="fireAssess" id="FireAssessResult">
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="eventId" column="event_id"/>
|
|
|
+ <result property="fireTime" column="fire_time"/>
|
|
|
+ <result property="foundTime" column="found_time"/>
|
|
|
+ <result property="blazesTime" column="blazes_time"/>
|
|
|
+ <result property="address" column="address"/>
|
|
|
+ <result property="firePlace" column="fire_place"/>
|
|
|
+ <result property="foundType" column="found_type"/>
|
|
|
+ <result property="longitudeD" column="longitude_d"/>
|
|
|
+ <result property="longitudeM" column="longitude_m"/>
|
|
|
+ <result property="longitudeS" column="longitude_s"/>
|
|
|
+ <result property="latitudeD" column="latitude_d"/>
|
|
|
+ <result property="latitudeM" column="latitude_m"/>
|
|
|
+ <result property="latitudeS" column="latitude_s"/>
|
|
|
+ <result property="fireSource" column="fire_source"/>
|
|
|
+ <result property="fireType" column="fire_type"/>
|
|
|
+ <result property="fireLevel" column="fire_level"/>
|
|
|
+ <result property="areaTotal" column="area_total"/>
|
|
|
+ <result property="forestLossAreaTotal" column="forest_loss_area_total"/>
|
|
|
+ <result property="originalForestArea" column="original_forest_area"/>
|
|
|
+ <result property="artificialForestArea" column="artificial_forest_area"/>
|
|
|
+ <result property="peopleTotal" column="people_total"/>
|
|
|
+ <result property="blazesTeamNumber" column="blazes_team_number"/>
|
|
|
+ <result property="policeNumber" column="police_number"/>
|
|
|
+ <result property="armyNumber" column="army_number"/>
|
|
|
+ <result property="crowdNumber" column="crowd_number"/>
|
|
|
+ <result property="windExtinguisher" column="wind_extinguisher"/>
|
|
|
+ <result property="secondTool" column="second_tool"/>
|
|
|
+ <result property="waterGun" column="water_gun"/>
|
|
|
+ <result property="elseThings" column="else_things"/>
|
|
|
+ <result property="forestComposition" column="forest_composition"/>
|
|
|
+ <result property="forestToken" column="forest_token"/>
|
|
|
+ <result property="porosities" column="porosities"/>
|
|
|
+ <result property="weather" column="weather"/>
|
|
|
+ <result property="temperature" column="temperature"/>
|
|
|
+ <result property="fireInsuranceLevel" column="fire_insurance_level"/>
|
|
|
+ <result property="windLevel" column="wind_level"/>
|
|
|
+ <result property="windDirection" column="wind_direction"/>
|
|
|
+ <result property="commandUnit" column="command_unit"/>
|
|
|
+ <result property="commandName" column="command_name"/>
|
|
|
+ <result property="commandPosition" column="command_position"/>
|
|
|
+ <result property="surveyUnit" column="survey_unit"/>
|
|
|
+ <result property="surveyName" column="survey_name"/>
|
|
|
+ <result property="surveyPosition" column="survey_position"/>
|
|
|
+ <result property="accidentName" column="accident_name"/>
|
|
|
+ <result property="accidentSex" column="accident_sex"/>
|
|
|
+ <result property="accidentAge" column="accident_age"/>
|
|
|
+ <result property="accidentPosition" column="accident_position"/>
|
|
|
+ <result property="accidentUnit" column="accident_unit"/>
|
|
|
+ <result property="dealType" column="deal_type"/>
|
|
|
+ <result property="dealNumber" column="deal_number"/>
|
|
|
+ <result property="criminalDealNumber" column="criminal_deal_number"/>
|
|
|
+ <result property="accidentDealSituation" column="accident_deal_situation"/>
|
|
|
+ <result property="responsibilityDealSituation" column="responsibility_deal_situation"/>
|
|
|
+ <result property="leadershipDealSituation" column="leadership_deal_situation"/>
|
|
|
+ <result property="townForm" column="town_form"/>
|
|
|
+ <result property="townAudit" column="town_audit"/>
|
|
|
+ <result property="cityForm" column="city_form"/>
|
|
|
+ <result property="cityAudit" column="city_audit"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <insert id="insertFireAssess" parameterType="fireAssess">
|
|
|
+ insert into event_fire_assess
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="eventId != null">event_id,</if>
|
|
|
+ <if test="fireTime != null">fire_time,</if>
|
|
|
+ <if test="foundTime != null">found_time,</if>
|
|
|
+ <if test="blazesTime != null">blazes_time,</if>
|
|
|
+ <if test="address != null">address,</if>
|
|
|
+ <if test="firePlace != null">fire_place,</if>
|
|
|
+ <if test="foundType != null">found_type,</if>
|
|
|
+ <if test="longitudeD != null">longitude_d,</if>
|
|
|
+ <if test="longitudeM != null">longitude_m,</if>
|
|
|
+ <if test="longitudeS != null">longitude_s,</if>
|
|
|
+ <if test="latitudeD != null">latitude_d,</if>
|
|
|
+ <if test="latitudeM != null">latitude_m,</if>
|
|
|
+ <if test="latitudeS != null">latitude_s,</if>
|
|
|
+ <if test="fireSource != null">fire_source,</if>
|
|
|
+ <if test="fireType != null">fire_type,</if>
|
|
|
+ <if test="fireLevel != null">fire_level,</if>
|
|
|
+ <if test="areaTotal != null">area_total,</if>
|
|
|
+ <if test="forestLossAreaTotal != null">forest_loss_area_total,</if>
|
|
|
+ <if test="originalForestArea != null">original_forest_area,</if>
|
|
|
+ <if test="artificialForestArea != null">artificial_forest_area,</if>
|
|
|
+ <if test="peopleTotal != null">people_total,</if>
|
|
|
+ <if test="blazesTeamNumber != null">blazes_team_number,</if>
|
|
|
+ <if test="policeNumber != null">police_number,</if>
|
|
|
+ <if test="armyNumber != null">army_number,</if>
|
|
|
+ <if test="crowdNumber != null">crowd_number,</if>
|
|
|
+ <if test="windExtinguisher != null">wind_extinguisher,</if>
|
|
|
+ <if test="secondTool != null">second_tool,</if>
|
|
|
+ <if test="waterGun != null">water_gun,</if>
|
|
|
+ <if test="elseThings != null">else_things,</if>
|
|
|
+ <if test="forestComposition != null">forest_composition,</if>
|
|
|
+ <if test="forestToken != null">forest_token,</if>
|
|
|
+ <if test="porosities != null">porosities,</if>
|
|
|
+ <if test="weather != null">weather,</if>
|
|
|
+ <if test="temperature != null">temperature,</if>
|
|
|
+ <if test="fireInsuranceLevel != null">fire_insurance_level,</if>
|
|
|
+ <if test="windLevel != null">wind_level,</if>
|
|
|
+ <if test="windDirection != null">wind_direction,</if>
|
|
|
+ <if test="commandUnit != null">command_unit,</if>
|
|
|
+ <if test="commandName != null">command_name,</if>
|
|
|
+ <if test="commandPosition != null">command_position,</if>
|
|
|
+ <if test="surveyUnit != null">survey_unit,</if>
|
|
|
+ <if test="surveyName != null">survey_name,</if>
|
|
|
+ <if test="surveyPosition != null">survey_position,</if>
|
|
|
+ <if test="accidentName != null">accident_name,</if>
|
|
|
+ <if test="accidentSex != null">accident_sex,</if>
|
|
|
+ <if test="accidentAge != null">accident_age,</if>
|
|
|
+ <if test="accidentPosition != null">accident_position,</if>
|
|
|
+ <if test="accidentUnit != null">accident_unit,</if>
|
|
|
+ <if test="dealType != null">deal_type,</if>
|
|
|
+ <if test="dealNumber != null">deal_number,</if>
|
|
|
+ <if test="criminalDealNumber != null">criminal_deal_number,</if>
|
|
|
+ <if test="accidentDealSituation != null">accident_deal_situation,</if>
|
|
|
+ <if test="responsibilityDealSituation != null">responsibility_deal_situation,</if>
|
|
|
+ <if test="leadershipDealSituation != null">leadership_deal_situation,</if>
|
|
|
+ <if test="townForm != null">town_form,</if>
|
|
|
+ <if test="townAudit != null">town_audit,</if>
|
|
|
+ <if test="cityForm != null">city_form,</if>
|
|
|
+ <if test="cityAudit != null">city_audit,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="eventId != null">#{eventId},</if>
|
|
|
+ <if test="fireTime != null">#{fireTime},</if>
|
|
|
+ <if test="foundTime != null">#{foundTime},</if>
|
|
|
+ <if test="blazesTime != null">#{blazesTime},</if>
|
|
|
+ <if test="address != null">#{address},</if>
|
|
|
+ <if test="firePlace != null">#{firePlace},</if>
|
|
|
+ <if test="foundType != null">#{foundType},</if>
|
|
|
+ <if test="longitudeD != null">#{longitudeD},</if>
|
|
|
+ <if test="longitudeM != null">#{longitudeM},</if>
|
|
|
+ <if test="longitudeS != null">#{longitudeS},</if>
|
|
|
+ <if test="latitudeD != null">#{latitudeD},</if>
|
|
|
+ <if test="latitudeM != null">#{latitudeM},</if>
|
|
|
+ <if test="latitudeS != null">#{latitudeS},</if>
|
|
|
+ <if test="fireSource != null">#{fireSource},</if>
|
|
|
+ <if test="fireType != null">#{fireType},</if>
|
|
|
+ <if test="fireLevel != null">#{fireLevel},</if>
|
|
|
+ <if test="areaTotal != null">#{areaTotal},</if>
|
|
|
+ <if test="forestLossAreaTotal != null">#{forestLossAreaTotal},</if>
|
|
|
+ <if test="originalForestArea != null">#{originalForestArea},</if>
|
|
|
+ <if test="artificialForestArea != null">#{artificialForestArea},</if>
|
|
|
+ <if test="peopleTotal != null">#{peopleTotal},</if>
|
|
|
+ <if test="blazesTeamNumber != null">#{blazesTeamNumber},</if>
|
|
|
+ <if test="policeNumber != null">#{policeNumber},</if>
|
|
|
+ <if test="armyNumber != null">#{armyNumber},</if>
|
|
|
+ <if test="crowdNumber != null">#{crowdNumber},</if>
|
|
|
+ <if test="windExtinguisher != null">#{windExtinguisher},</if>
|
|
|
+ <if test="secondTool != null">#{secondTool},</if>
|
|
|
+ <if test="waterGun != null">#{waterGun},</if>
|
|
|
+ <if test="elseThings != null">#{elseThings},</if>
|
|
|
+ <if test="forestComposition != null">#{forestComposition},</if>
|
|
|
+ <if test="forestToken != null">#{forestToken},</if>
|
|
|
+ <if test="porosities != null">#{porosities},</if>
|
|
|
+ <if test="weather != null">#{weather},</if>
|
|
|
+ <if test="temperature != null">#{temperature},</if>
|
|
|
+ <if test="fireInsuranceLevel != null">#{fireInsuranceLevel},</if>
|
|
|
+ <if test="windLevel != null">#{windLevel},</if>
|
|
|
+ <if test="windDirection != null">#{windDirection},</if>
|
|
|
+ <if test="commandUnit != null">#{commandUnit},</if>
|
|
|
+ <if test="commandName != null">#{commandName},</if>
|
|
|
+ <if test="commandPosition != null">#{commandPosition},</if>
|
|
|
+ <if test="surveyUnit != null">#{surveyUnit},</if>
|
|
|
+ <if test="surveyName != null">#{surveyName},</if>
|
|
|
+ <if test="surveyPosition != null">#{surveyPosition},</if>
|
|
|
+ <if test="accidentName != null">#{accidentName},</if>
|
|
|
+ <if test="accidentSex != null">#{accidentSex},</if>
|
|
|
+ <if test="accidentAge != null">#{accidentAge},</if>
|
|
|
+ <if test="accidentPosition != null">#{accidentPosition},</if>
|
|
|
+ <if test="accidentUnit != null">#{accidentUnit},</if>
|
|
|
+ <if test="dealType != null">#{dealType},</if>
|
|
|
+ <if test="dealNumber != null">#{dealNumber},</if>
|
|
|
+ <if test="criminalDealNumber != null">#{criminalDealNumber},</if>
|
|
|
+ <if test="accidentDealSituation != null">#{accidentDealSituation},</if>
|
|
|
+ <if test="responsibilityDealSituation != null">#{responsibilityDealSituation},</if>
|
|
|
+ <if test="leadershipDealSituation != null">#{leadershipDealSituation},</if>
|
|
|
+ <if test="townForm != null">#{townForm},</if>
|
|
|
+ <if test="townAudit != null">#{townAudit},</if>
|
|
|
+ <if test="cityForm != null">#{cityForm},</if>
|
|
|
+ <if test="cityAudit != null">#{cityAudit},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+</mapper>
|