Browse Source

浦东接口调整:船舶基础信息接口判断港区内船舶增加船名判断条件(非空判断)

sbj 4 months ago
parent
commit
09083a5217

+ 2 - 2
ghjg-item-datashare-server/src/main/resources/mapper/CommonMapper.xml

@@ -401,10 +401,10 @@
         select count(1) from ghjg_dynamic.vw_gpsinfo_realtime t
         left join ghjg_basics.mvw_boat_info b on t.deviceid = b.mmsi
         where 1=1
-            <if test="mmsi != null">
+            <if test="mmsi != null and mmsi != ''">
                 and t.deviceid = #{mmsi}
             </if>
-            <if test="shipName != null">
+            <if test="shipName != null and shipName != ''">
                 and b.ship_name_cn = #{shipName}
             </if>
           and t.GPSTIME > sysdate - 30