Bladeren bron

添加时间筛选

gushoubang 1 jaar geleden
bovenliggende
commit
acc2084fde

+ 2 - 2
onemap-modules/onemap-analyse/src/main/resources/mapper/oracle/fzss/FzxzMapper.xml

@@ -73,10 +73,10 @@
             and xmmc like '%'||#{name}||'%'
         </if>
         <if test="startTime != null and startTime != ''">
-            and cjsj &gt;= to_date(#{startTime}, 'YYYY-MM-DD')
+            and cjsj &gt;= TO_TIMESTAMP(#{startTime}, 'YYYY-MM-DD HH24:MI:SS')
         </if>
         <if test="endTime != null and endTime != ''">
-            and cjsj &lt;= to_date(#{endTime}, 'YYYY-MM-DD')
+            and cjsj &lt;= TO_TIMESTAMP(#{endTime}, 'YYYY-MM-DD HH24:MI:SS')
         </if>
         order by cjsj desc
     </select>