Forráskód Böngészése

包船航班接口查询sql优化

sbj 1 hónapja
szülő
commit
04fba87fb1

+ 1 - 1
ghjg-item-datashare-server/src/main/resources/mapper/WaterTemporaryFlightsMapper.xml

@@ -26,7 +26,7 @@
         from GHJG_BUSSINESS.WATER_TEMPORARY_FLIGHTS wafw
                  left join NHGIS.浦江游览码头 b on b.码头编号 = wafw.DOCK_AT_THE_DOCK
         where wafw.info_state = 3
-            <if test="startDate != null and endDate != null">
+            <if test="startDate != null and startDate != '' and endDate != null and endDate !=  ''">
                 and ((wafw.CDATE >= to_date(#{startDate},'yyyy-mm-dd hh24:mi:ss') and wafw.CDATE &lt;= to_date(#{endDate},'yyyy-mm-dd hh24:mi:ss'))
                 or (wafw.UDATE >= to_date(#{startDate},'yyyy-mm-dd hh24:mi:ss') and wafw.UDATE &lt;= to_date(#{endDate},'yyyy-mm-dd hh24:mi:ss')))
             </if>