From 4e7ae7e903a07389607cf47ad8f2bbd5e8ccd8d6 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 30 八月 2023 10:18:50 +0800
Subject: [PATCH] 元数据查询接口添加传感器类型、元数据类型、开始日期、结束日期参数

---
 src/main/resources/mapper/data/MetaMapper.xml |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/data/MetaMapper.xml b/src/main/resources/mapper/data/MetaMapper.xml
index 5e89121..e3a0c7b 100644
--- a/src/main/resources/mapper/data/MetaMapper.xml
+++ b/src/main/resources/mapper/data/MetaMapper.xml
@@ -17,6 +17,18 @@
             <if test="name != null">
                 and upper(name) like #{name}
             </if>
+            <if test="sensorType != null">
+                and sensortype = #{sensorType}
+            </if>
+            <if test="mataType != null">
+                and mata_type = #{mataType}
+            </if>
+            <if test="startDate != null">
+                and acq_time >= #{startDate}
+            </if>
+            <if test="endDate != null">
+                and acq_time &lt;= #{endDate}
+            </if>
             <if test="wkt != null">
                 and ${wkt}
             </if>
@@ -40,6 +52,18 @@
             <if test="name != null">
                 and upper(name) like #{name}
             </if>
+            <if test="sensorType != null">
+                and sensortype = #{sensorType}
+            </if>
+            <if test="mataType != null">
+                and mata_type = #{mataType}
+            </if>
+            <if test="startDate != null">
+                and acq_time >= #{startDate}
+            </if>
+            <if test="endDate != null">
+                and acq_time &lt;= #{endDate}
+            </if>
             <if test="wkt != null">
                 and ${wkt}
             </if>

--
Gitblit v1.9.3