|
|
|
@ -140,17 +140,115 @@
|
|
|
|
|
|
|
|
|
|
<insert id="insertList">
|
|
|
|
|
insert into terminals
|
|
|
|
|
(line_id,tower_id,cmdid, org_id, equip_name, display_name, model, essential_info_version, has_pan,
|
|
|
|
|
bs_manufacturer, bs_production_date, bs_identifier, latitude, longitude,status, create_time,
|
|
|
|
|
update_time)
|
|
|
|
|
VALUES
|
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
|
(#{item.lineid},#{item.towerid},#{item.cmdid},
|
|
|
|
|
#{item.orgId},#{item.equipName},#{item.displayName},
|
|
|
|
|
#{item.model},#{item.essentialInfoVersion},#{item.hasPan},
|
|
|
|
|
#{item.bsManufacturer},#{item.bsProductionDate},#{item.bsIdentifier},
|
|
|
|
|
#{item.latitude},#{item.longitude},#{status},
|
|
|
|
|
#{createat},#{updateat})
|
|
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
|
|
<if test="index == 0">
|
|
|
|
|
<trim prefix="(" suffix=") values " suffixOverrides=",">
|
|
|
|
|
<if test="#{item.lineid} != null">
|
|
|
|
|
line_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.towerid} != null">
|
|
|
|
|
tower_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.cmdid} != null">
|
|
|
|
|
cmdid,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.orgId} != null">
|
|
|
|
|
org_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.equipName} != null">
|
|
|
|
|
equip_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.displayName} != null">
|
|
|
|
|
display_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.model} != null">
|
|
|
|
|
model,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.essentialInfoVersion} != null">
|
|
|
|
|
essential_info_version,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.hasPan} != null">
|
|
|
|
|
has_pan,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.bsManufacturer} != null">
|
|
|
|
|
bs_manufacturer,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.bsProductionDate} != null">
|
|
|
|
|
bs_production_date,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.bsIdentifier} != null">
|
|
|
|
|
bs_identifier,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.latitude} != null">
|
|
|
|
|
latitude,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.longitude} != null">
|
|
|
|
|
longitude,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{status} != null">
|
|
|
|
|
status,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{createat} != null">
|
|
|
|
|
create_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{updateat} != null">
|
|
|
|
|
update_time,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="#{item.lineid} != null">
|
|
|
|
|
#{item.lineid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.towerid} != null">
|
|
|
|
|
#{item.towerid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.cmdid} != null">
|
|
|
|
|
#{item.cmdid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.orgId} != null">
|
|
|
|
|
#{item.orgId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.equipName} != null">
|
|
|
|
|
#{item.equipName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.displayName} != null">
|
|
|
|
|
#{item.displayName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.model} != null">
|
|
|
|
|
#{item.model},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.essentialInfoVersion} != null">
|
|
|
|
|
#{item.essentialInfoVersion},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.hasPan} != null">
|
|
|
|
|
#{item.hasPan},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.bsManufacturer} != null">
|
|
|
|
|
#{item.bsManufacturer},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.bsProductionDate} != null">
|
|
|
|
|
#{item.bsProductionDate},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.bsIdentifier} != null">
|
|
|
|
|
#{item.bsIdentifier},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.latitude} != null">
|
|
|
|
|
#{item.latitude},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{item.longitude} != null">
|
|
|
|
|
#{item.longitude},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{status} != null">
|
|
|
|
|
#{status},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{createat} != null">
|
|
|
|
|
#{createat},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="#{updateat} != null">
|
|
|
|
|
#{updateat},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|