<?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.usky.fire.mapper.DemFireStatisticsMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.usky.fire.domain.DemFireStatistics">
        <id column="id" property="id" />
        <result column="fire_number" property="fireNumber" />
        <result column="fill_time" property="fillTime" />
        <result column="user_name" property="userName" />
        <result column="brief_report" property="briefReport" />
        <result column="fire_case_url" property="fireCaseUrl" />
        <result column="fire_rescue_form" property="fireRescueForm" />
        <result column="mobilization_desc" property="mobilizationDesc" />
        <result column="fire_time_text" property="fireTimeText" />
        <result column="fire_time" property="fireTime" />
        <result column="fire_address" property="fireAddress" />
        <result column="company_code" property="companyCode" />
        <result column="owner_name" property="ownerName" />
        <result column="fire_build_spread" property="fireBuildSpread" />
        <result column="flash_over" property="flashOver" />
        <result column="door_window_open" property="doorWindowOpen" />
        <result column="fire_process" property="fireProcess" />
        <result column="direct_property_loss" property="directPropertyLoss" />
        <result column="burned_area" property="burnedArea" />
        <result column="affected_house" property="affectedHouse" />
        <result column="victim_number" property="victimNumber" />
        <result column="death_toll" property="deathToll" />
        <result column="injured_number" property="injuredNumber" />
        <result column="major_fire" property="majorFire" />
        <result column="file_case" property="fileCase" />
        <result column="investigate_number" property="investigateNumber" />
        <result column="suggest_handle_number" property="suggestHandleNumber" />
        <result column="review_status" property="reviewStatus" />
        <result column="last_reviewer" property="lastReviewer" />
        <result column="modify_reason" property="modifyReason" />
        <result column="under_investiga" property="underInvestiga" />
        <result column="returnee" property="returnee" />
        <result column="fire_grade" property="fireGrade" />
        <result column="minor_injurie_number" property="minorInjurieNumber" />
        <result column="seriously_injure_number" property="seriouslyInjureNumber" />
        <result column="site_disposal_expense" property="siteDisposalExpense" />
        <result column="personal_injury_death" property="personalInjuryDeath" />
        <result column="direct_economic_loss" property="directEconomicLoss" />
        <result column="subordinate_fire_brigade" property="subordinateFireBrigade" />
        <result column="subordinate_brigade" property="subordinateBrigade" />
        <result column="subordinate_detachment" property="subordinateDetachment" />
        <result column="subordinate_corps" property="subordinateCorps" />
        <result column="subordinate_district" property="subordinateDistrict" />
        <result column="administrative_division" property="administrativeDivision" />
        <result column="type_id1" property="typeId1" />
        <result column="type_id2" property="typeId2" />
        <result column="type_id3" property="typeId3" />
        <result column="type_id4" property="typeId4" />
        <result column="type_id5" property="typeId5" />
        <result column="creator" property="creator" />
        <result column="create_time" property="createTime" />
        <result column="update_person" property="updatePerson" />
        <result column="update_time" property="updateTime" />
        <result column="longitude" property="longitude" />
        <result column="latitude" property="latitude" />
        <result column="district" property="district" />
        <result column="street" property="street" />
    </resultMap>

    <update id="updateList" parameterType="java.util.List">
        <foreach collection="list" item="item" index="index" separator=";">
            UPDATE dem_fire_statistics
            SET longitude = #{item.longitude},latitude = #{item.latitude},district = #{item.district},street = #{item.street}
            WHERE fire_number = #{item.id}
        </foreach>
    </update>

</mapper>
