From dfd2060bdcc0de929b4770a6a4a580c17bd72104 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 17 十二月 2025 16:31:40 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html    |   23 +++++++++++++++--------
 fzzy-igdss-web/src/main/java/com/fzzy/sys/controller/security/SnapRecordController.java |    9 +++++++++
 fzzy-igdss-core/src/main/java/com/fzzy/igds/service/SnapRecordService.java              |    9 +++------
 fzzy-igdss-web/src/main/resources/templates/security/eventInfo/eventInfo.html           |    1 -
 4 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/SnapRecordService.java b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/SnapRecordService.java
index 2a4acd5..eafab22 100644
--- a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/SnapRecordService.java
+++ b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/SnapRecordService.java
@@ -44,16 +44,13 @@
         param.setCompanyId(ContextUtil.getCompanyId());
         queryWrapper.eq("company_id", param.getCompanyId());
 
+        //搴撳尯妫�绱�
         if (StringUtils.isNotBlank(param.getDeptId())) {
             queryWrapper.eq("dept_id", param.getDeptId());
         }
-
-        if (StringUtils.isNotBlank(param.getDepotId())) {
-            queryWrapper.eq("depot_id", param.getDepotId());
-        }
-        //鏍囩妫�绱�
+        // 鏀跺偍鍏徃妫�绱�
         if (StringUtils.isNotBlank(param.getKey())) {
-            queryWrapper.like("tags", param.getKey());
+            queryWrapper.apply("dept_id IN (SELECT dept_id FROM sys_dept WHERE parent_id = {0})", param.getKey());
         }
         //鎶撴媿鏃堕棿妫�绱�
         if (param.getStart() != null && param.getEnd() != null) {
diff --git a/fzzy-igdss-web/src/main/java/com/fzzy/sys/controller/security/SnapRecordController.java b/fzzy-igdss-web/src/main/java/com/fzzy/sys/controller/security/SnapRecordController.java
index a4666b4..6d12ca1 100644
--- a/fzzy-igdss-web/src/main/java/com/fzzy/sys/controller/security/SnapRecordController.java
+++ b/fzzy-igdss-web/src/main/java/com/fzzy/sys/controller/security/SnapRecordController.java
@@ -2,6 +2,7 @@
 
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.fzzy.igds.constant.RespCodeEnum;
+import com.fzzy.igds.constant.WarnType;
 import com.fzzy.igds.data.IgdsBaseParam;
 import com.fzzy.igds.data.PageResponse;
 import com.fzzy.igds.domain.SnapRecord;
@@ -16,6 +17,10 @@
 import org.springframework.web.bind.annotation.ResponseBody;
 
 import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 
 
 @Slf4j
@@ -46,8 +51,12 @@
         model.addAttribute("currentPage", images.getCurrent());
         model.addAttribute("totalItems", images.getTotal());
         model.addAttribute("pageSize", images.getSize());
+        //璁惧鏁版嵁
         model.addAttribute("cameraList", commonManager.listCameraData());
+        //搴撳尯鏁版嵁
         model.addAttribute("deptList", commonManager.listDeptData());
+        //鍏徃鏁版嵁
+        model.addAttribute("companyList", commonManager.listCompanyData());
         return prefix + "/snapRecord";
     }
 
diff --git a/fzzy-igdss-web/src/main/resources/templates/security/eventInfo/eventInfo.html b/fzzy-igdss-web/src/main/resources/templates/security/eventInfo/eventInfo.html
index 3879d24..c913678 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/eventInfo/eventInfo.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/eventInfo/eventInfo.html
@@ -142,7 +142,6 @@
     var deptList = [[${deptList}]];
     var bizTypeList = [[${bizTypeList}]];
     var companyList = [[${companyList}]];
-
     var currentPage = [[${currentPage}]];
     var totalItems = [[${totalItems}]];
     var pageSize = [[${pageSize}]];
diff --git a/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html b/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html
index b10c88c..318cc3d 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html
@@ -1,13 +1,14 @@
 <!DOCTYPE html>
-<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="renderer" content="webkit">
     <th:block th:include="include :: header('鏅鸿兘鎶撴媿')"/>
-    <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui-ruoyi/css/layui.css}"/>
+    <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui/css/layui.css}"/>
     <link rel="stylesheet" th:href="@{/security/snap/snapRecord-style.css}">
+    <th:block th:include="include :: select2-css" />
 </head>
 <body class="gray-bg">
 <div class="container-div">
@@ -18,20 +19,24 @@
                 <div class="select-list">
                     <ul>
                         <li>
-                            鏀跺偍鍏徃锛�<select name="companyId">
-                            <option value="all">鎵�鏈�</option>
+                            鏀跺偍鍏徃锛�<select  class="form-control" name="key">
+                            <option value="">鎵�鏈�</option>
+                            <option th:each="company : ${companyList}" th:value="${company.id}" th:text="${company.dwmc}">
+                            </option>
                         </select>
                         </li>
                         <li>
-                            鎵�閫夊簱鍖猴細<select name="deptId">
+                            鎵�閫夊簱鍖猴細<select class="form-control" name="deptId">
                             <option value="">鎵�鏈�</option>
+                            <option th:each="dept : ${deptList}" th:value="${dept.id}" th:text="${dept.kqmc}">
+                            </option>
                         </select>
                         </li>
                         <li class="select-time">
                             <label style="width: 100px">鎶撴媿鏃堕棿锛�</label>
-                            <input type="text" class="time-input" style="width: 120px;" id="start" placeholder="寮�濮嬫椂闂�" name="params[begin]"/>
+                            <input type="text" class="time-input" style="width: 120px;" id="start" placeholder="寮�濮嬫椂闂�" name="start"/>
                             <span>-</span>
-                            <input type="text" class="time-input" style="width: 120px;" id="end" placeholder="缁撴潫鏃堕棿" name="params[end]"/>
+                            <input type="text" class="time-input" style="width: 120px;" id="end" placeholder="缁撴潫鏃堕棿" name="end"/>
                         </li>
                         <li>
                             <a class="btn btn-primary btn-rounded btn-sm" onclick="searchRecord()"><i
@@ -135,11 +140,13 @@
     </div>
 </div>
 <th:block th:include="include :: footer"/>
-<script th:src="@{/ajax/libs/layui-ruoyi/layui.js}"></script>
+<script th:src="@{/ajax/libs/layui/layui.js}"></script>
+<th:block th:include="include :: select2-js" />
 <script th:src="@{/security/snap/snapRecord.js}"></script>
 <script th:inline="javascript">
     var cameraList = [[${cameraList}]];
     var deptList = [[${deptList}]];
+    var companyList = [[${companyList}]];
     var currentPage = [[${currentPage}]];
     var totalItems = [[${totalItems}]];
     var pageSize = [[${pageSize}]];

--
Gitblit v1.9.3