|
@@ -0,0 +1,105 @@
|
|
|
|
+<?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.FireLossMapper">
|
|
|
|
+
|
|
|
|
+ <resultMap id="FireLossResultMap" type="fireLoss">
|
|
|
|
+ <id property="id" column="id"/>
|
|
|
|
+ <result property="eventId" column="event_id"/>
|
|
|
|
+ <result property="reportUnit" column="report_unit"/>
|
|
|
|
+ <result property="reportTimeYear" column="report_time_year"/>
|
|
|
|
+ <result property="reportTimeMonth" column="report_time_month"/>
|
|
|
|
+ <result property="reportTimeDay" column="report_time_day"/>
|
|
|
|
+ <result property="forestFireLossTotal" column="forest_fire_loss_total"/>
|
|
|
|
+ <result property="fireLossTotal" column="fire_loss_total"/>
|
|
|
|
+ <result property="forestArea" column="forest_area"/>
|
|
|
|
+ <result property="forestPrice" column="forest_price"/>
|
|
|
|
+ <result property="treesNumber" column="trees_number"/>
|
|
|
|
+ <result property="treesPrice" column="trees_price"/>
|
|
|
|
+ <result property="minorInjuriesNumber" column="minor_injuries_number"/>
|
|
|
|
+ <result property="minorInjuriesPrice" column="minor_injuries_price"/>
|
|
|
|
+ <result property="seriouslyInjuredNumber" column="seriously_injured_number"/>
|
|
|
|
+ <result property="seriouslyInjuredPrice" column="seriously_injured_price"/>
|
|
|
|
+ <result property="deathNumber" column="death_number"/>
|
|
|
|
+ <result property="deathPrice" column="death_price"/>
|
|
|
|
+ <result property="otherFireLossPrice" column="other_fire_loss_price"/>
|
|
|
|
+ <result property="blazesPriceTotal" column="blazes_price_total"/>
|
|
|
|
+ <result property="artificialDays" column="artificial_days"/>
|
|
|
|
+ <result property="artificialPrice" column="artificial_price"/>
|
|
|
|
+ <result property="vehicleNumber" column="vehicle_number"/>
|
|
|
|
+ <result property="carNumber" column="car_number"/>
|
|
|
|
+ <result property="vehiclePrice" column="vehicle_price"/>
|
|
|
|
+ <result property="planeNumber" column="plane_number"/>
|
|
|
|
+ <result property="planePrice" column="plane_price"/>
|
|
|
|
+ <result property="otherBlazesPrice" column="other_blazes_price"/>
|
|
|
|
+ <result property="note" column="note"/>
|
|
|
|
+ </resultMap>
|
|
|
|
+
|
|
|
|
+ <insert id="insertFireLoss" parameterType="fireLoss">
|
|
|
|
+ INSERT INTO event_fire_loss
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="id != null">id,</if>
|
|
|
|
+ <if test="eventId != null">event_id,</if>
|
|
|
|
+ <if test="reportUnit != null">report_unit,</if>
|
|
|
|
+ <if test="reportTimeYear != null">report_time_year,</if>
|
|
|
|
+ <if test="reportTimeMonth != null">report_time_month,</if>
|
|
|
|
+ <if test="reportTimeDay != null">report_time_day,</if>
|
|
|
|
+ <if test="forestFireLossTotal != null">forest_fire_loss_total,</if>
|
|
|
|
+ <if test="fireLossTotal != null">fire_loss_total,</if>
|
|
|
|
+ <if test="forestArea != null">forest_area,</if>
|
|
|
|
+ <if test="forestPrice != null">forest_price,</if>
|
|
|
|
+ <if test="treesNumber != null">trees_number,</if>
|
|
|
|
+ <if test="treesPrice != null">trees_price,</if>
|
|
|
|
+ <if test="minorInjuriesNumber != null">minor_injuries_number,</if>
|
|
|
|
+ <if test="minorInjuriesPrice != null">minor_injuries_price,</if>
|
|
|
|
+ <if test="seriouslyInjuredNumber != null">seriously_injured_number,</if>
|
|
|
|
+ <if test="seriouslyInjuredPrice != null">seriously_injured_price,</if>
|
|
|
|
+ <if test="deathNumber != null">death_number,</if>
|
|
|
|
+ <if test="deathPrice != null">death_price,</if>
|
|
|
|
+ <if test="otherFireLossPrice != null">other_fire_loss_price,</if>
|
|
|
|
+ <if test="blazesPriceTotal != null">blazes_price_total,</if>
|
|
|
|
+ <if test="artificialDays != null">artificial_days,</if>
|
|
|
|
+ <if test="artificialPrice != null">artificial_price,</if>
|
|
|
|
+ <if test="vehicleNumber != null">vehicle_number,</if>
|
|
|
|
+ <if test="carNumber != null">car_number,</if>
|
|
|
|
+ <if test="vehiclePrice != null">vehicle_price,</if>
|
|
|
|
+ <if test="planeNumber != null">plane_number,</if>
|
|
|
|
+ <if test="planePrice != null">plane_price,</if>
|
|
|
|
+ <if test="otherBlazesPrice != null">other_blazes_price,</if>
|
|
|
|
+ <if test="note != null">note,</if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
|
+ <if test="eventId != null">#{eventId},</if>
|
|
|
|
+ <if test="reportUnit != null">#{reportUnit},</if>
|
|
|
|
+ <if test="reportTimeYear != null">#{reportTimeYear},</if>
|
|
|
|
+ <if test="reportTimeMonth != null">#{reportTimeMonth},</if>
|
|
|
|
+ <if test="reportTimeDay != null">#{reportTimeDay},</if>
|
|
|
|
+ <if test="forestFireLossTotal != null">#{forestFireLossTotal},</if>
|
|
|
|
+ <if test="fireLossTotal != null">#{fireLossTotal},</if>
|
|
|
|
+ <if test="forestArea != null">#{forestArea},</if>
|
|
|
|
+ <if test="forestPrice != null">#{forestPrice},</if>
|
|
|
|
+ <if test="treesNumber != null">#{treesNumber},</if>
|
|
|
|
+ <if test="treesPrice != null">#{treesPrice},</if>
|
|
|
|
+ <if test="minorInjuriesNumber != null">#{minorInjuriesNumber},</if>
|
|
|
|
+ <if test="minorInjuriesPrice != null">#{minorInjuriesPrice},</if>
|
|
|
|
+ <if test="seriouslyInjuredNumber != null">#{seriouslyInjuredNumber},</if>
|
|
|
|
+ <if test="seriouslyInjuredPrice != null">#{seriouslyInjuredPrice},</if>
|
|
|
|
+ <if test="deathNumber != null">#{deathNumber},</if>
|
|
|
|
+ <if test="deathPrice != null">#{deathPrice},</if>
|
|
|
|
+ <if test="otherFireLossPrice != null">#{otherFireLossPrice},</if>
|
|
|
|
+ <if test="blazesPriceTotal != null">#{blazesPriceTotal},</if>
|
|
|
|
+ <if test="artificialDays != null">#{artificialDays},</if>
|
|
|
|
+ <if test="artificialPrice != null">#{artificialPrice},</if>
|
|
|
|
+ <if test="vehicleNumber != null">#{vehicleNumber},</if>
|
|
|
|
+ <if test="carNumber != null">#{carNumber},</if>
|
|
|
|
+ <if test="vehiclePrice != null">#{vehiclePrice},</if>
|
|
|
|
+ <if test="planeNumber != null">#{planeNumber},</if>
|
|
|
|
+ <if test="planePrice != null">#{planePrice},</if>
|
|
|
|
+ <if test="otherBlazesPrice != null">#{otherBlazesPrice},</if>
|
|
|
|
+ <if test="note != null">#{note},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+</mapper>
|