From 0a4c32ca70dd7543596ac7234b06db343917f65e Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期一, 19 六月 2023 14:53:58 +0800
Subject: [PATCH] 新建接口
---
igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml | 30 ++++++++++++++++++++++++++++--
1 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml b/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml
index a8c6f85..f1d0bbd 100644
--- a/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml
+++ b/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml
@@ -116,8 +116,6 @@
SELECT EP_INC_ AS epSum,
EQ_INC_ AS eqSum,
ES_INC_ AS esSum,
- EP_ AS ep,
- EQ_ AS eq,
ES_ AS es,
DEPOT_ID_ AS depotId,
UPDATE_TIME_ AS updateTime
@@ -134,4 +132,32 @@
</where>
ORDER BY UPDATE_TIME_ desc
</select>
+ <!-- 鐢靛瓙宸℃洿璁板綍-->
+ <select id="getPatrol" resultType="com.ld.igds.phone35.dto.DtoPatrol">
+ SELECT ID_ AS id,
+ USER_NAME_ AS userName,
+ LONGITUDE_ As longitude,
+ LATITUDE_ AS latitude,
+ IMG_NAME_ AS base64Img,
+ CREATE_TIME_ AS createTime
+ FROM D_SEC_PATROL_RECORD
+ <where>
+ <if test="param.companyId != null and companyId != ''">AND COMPANY_ID_ = #{param.companyId}</if>
+ <if test="param.deptId != null and param.deptId != ''">AND DEPT_ID_ = #{param.deptId}</if>
+ <if test="param.startTime != null and param.endTime != null">AND CREATE_TIME_ between #{param.startTime}
+ and #{param.endTime}
+ </if>
+ </where>
+ </select>
+ <!-- 鐩戞帶璁惧鍒楄〃-->
+ <select id="getCamera" resultType="com.ld.igds.phone35.dto.DtoVideo">
+
+ SELECT ID_ AS id,
+ TYPE_ AS type,
+ PLAY_TYPE_ AS playType,
+ NAME_ AS name
+ FROM D_SEC_CAMERA
+ WHERE COMPANY_ID_ = #{param.companyId}
+ AND DEPT_ID_ = #{param.deptId}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3