|
@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="longitude" column="longitude" />
|
|
|
<result property="latitude" column="latitude" />
|
|
|
<result property="shipTime" column="ship_time" />
|
|
|
+ <result property="did" column="did" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCruiseShipMappingVo">
|
|
@@ -23,7 +24,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
b.ship_name,
|
|
|
c.longitude,
|
|
|
c.latitude,
|
|
|
- c.ship_time
|
|
|
+ c.ship_time,
|
|
|
+ c.did
|
|
|
FROM
|
|
|
cruise_ship_mapping c
|
|
|
left join basic_cruise_ship b ON c.did = b.registration_number
|
|
@@ -118,4 +120,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{item.status},#{item.alerts},#{item.gpsTime},#{item.rcvTime}, NOW())
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
+
|
|
|
+<!-- <insert id="saveEquipmentHistoryLocation" parameterType="List">-->
|
|
|
+<!-- insert into equipment_history_location ( did,-->
|
|
|
+<!-- longitude,latitude,lon,lat,speed,direct,gps_time,rcv_time,ship_time)-->
|
|
|
+<!-- values-->
|
|
|
+<!-- <foreach collection="list" item="item" separator=",">-->
|
|
|
+<!-- (#{item.did}, #{item.longitude}, #{item.latitude}, #{item.lon}, #{item.lat},-->
|
|
|
+<!-- #{item.speed}, #{item.direct},#{item.alerts},#{item.gpsTime},#{item.rcvTime}, NOW())-->
|
|
|
+<!-- </foreach>-->
|
|
|
+<!-- </insert>-->
|
|
|
</mapper>
|