|
@@ -3,6 +3,59 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.system.mapper.GasCommonMapper">
|
|
|
+ <insert id="saveHuiHAisInfo" parameterType="huiHAisInfo">
|
|
|
+ insert into ais_ship_info
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="ship_no != null">ship_no,</if>
|
|
|
+ <if test="mmsi != null">mmsi,</if>
|
|
|
+ <if test="speed != null">speed,</if>
|
|
|
+ <if test="head != null">head,</if>
|
|
|
+ <if test="rate != null">rate,</if>
|
|
|
+ <if test="course != null">course,</if>
|
|
|
+ <if test="tel != null">tel,</if>
|
|
|
+ <if test="power != null">power,</if>
|
|
|
+ <if test="lat != null">lat,</if>
|
|
|
+ <if test="lng != null">lng,</if>
|
|
|
+ <if test="ship_id != null">ship_id,</if>
|
|
|
+ <if test="receive != null">receive,</if>
|
|
|
+ <if test="length != null">length,</if>
|
|
|
+ <if test="shipname_cn != null">shipname_cn,</if>
|
|
|
+ <if test="ship_type != null">ship_type,</if>
|
|
|
+ <if test="ship_reg_no != null">ship_reg_no,</if>
|
|
|
+ <if test="depth != null">depth,</if>
|
|
|
+ <if test="draught != null">draught,</if>
|
|
|
+ <if test="width != null">width,</if>
|
|
|
+ <if test="ship_type_code != null">ship_type_code,</if>
|
|
|
+ <if test="shipname != null">shipname,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="ship_no != null">#{ship_no},</if>
|
|
|
+ <if test="mmsi != null">#{mmsi},</if>
|
|
|
+ <if test="speed != null">#{speed},</if>
|
|
|
+ <if test="head != null">#{head},</if>
|
|
|
+ <if test="rate != null">#{rate},</if>
|
|
|
+ <if test="course != null">#{course},</if>
|
|
|
+ <if test="tel != null">#{tel},</if>
|
|
|
+ <if test="power != null">#{power},</if>
|
|
|
+ <if test="lat != null">#{lat},</if>
|
|
|
+ <if test="lng != null">#{lng},</if>
|
|
|
+ <if test="ship_id != null">#{ship_id},</if>
|
|
|
+ <if test="receive != null">#{receive},</if>
|
|
|
+ <if test="length != null">#{length},</if>
|
|
|
+ <if test="shipname_cn != null">#{shipname_cn},</if>
|
|
|
+ <if test="ship_type != null">#{ship_type},</if>
|
|
|
+ <if test="ship_reg_no != null">#{ship_reg_no},</if>
|
|
|
+ <if test="depth != null">#{depth},</if>
|
|
|
+ <if test="draught != null">#{draught},</if>
|
|
|
+ <if test="width != null">#{width},</if>
|
|
|
+ <if test="ship_type_code != null">#{ship_type_code},</if>
|
|
|
+ <if test="shipname != null">#{shipname},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
|
|
|
<select id="querySemInstrument" resultType="java.util.Map">
|
|
|
select id,
|