浏览代码

添加时间筛选

gushoubang 10 月之前
父节点
当前提交
acc2084fde
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      onemap-modules/onemap-analyse/src/main/resources/mapper/oracle/fzss/FzxzMapper.xml

+ 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>