소스 검색

添加时间筛选

gushoubang 1 년 전
부모
커밋
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>