From f059de0b3cfe92ba2980c8ce4c5772637c64e9d2 Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期六, 23 十二月 2023 17:03:34 +0800
Subject: [PATCH] 权限

---
 ard-work/src/main/java/com/ruoyi/inspect/service/impl/ArdVideoInspectRecordServiceImpl.java |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/ard-work/src/main/java/com/ruoyi/inspect/service/impl/ArdVideoInspectRecordServiceImpl.java b/ard-work/src/main/java/com/ruoyi/inspect/service/impl/ArdVideoInspectRecordServiceImpl.java
index eed0d0d..20da998 100644
--- a/ard-work/src/main/java/com/ruoyi/inspect/service/impl/ArdVideoInspectRecordServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/inspect/service/impl/ArdVideoInspectRecordServiceImpl.java
@@ -1,12 +1,15 @@
 package com.ruoyi.inspect.service.impl;
 
+import java.util.HashMap;
 import java.util.List;
 
-import org.springframework.beans.factory.annotation.Autowired;
+import com.ruoyi.common.utils.uuid.IdUtils;
 import org.springframework.stereotype.Service;
 import com.ruoyi.inspect.mapper.ArdVideoInspectRecordMapper;
 import com.ruoyi.inspect.domain.ArdVideoInspectRecord;
 import com.ruoyi.inspect.service.IArdVideoInspectRecordService;
+
+import javax.annotation.Resource;
 
 /**
  * 瑙嗛宸℃璁板綍Service涓氬姟灞傚鐞�
@@ -16,7 +19,7 @@
  */
 @Service
 public class ArdVideoInspectRecordServiceImpl implements IArdVideoInspectRecordService {
-    @Autowired
+    @Resource
     private ArdVideoInspectRecordMapper ardVideoInspectRecordMapper;
 
     /**
@@ -41,6 +44,21 @@
         return ardVideoInspectRecordMapper.selectArdVideoInspectRecordList(ardVideoInspectRecord);
     }
 
+    @Override
+    public List<HashMap> selectArdVideoInspectRecordListByStartTime(ArdVideoInspectRecord ardVideoInspectRecord) {
+        return ardVideoInspectRecordMapper.selectArdVideoInspectRecordListByStartTime(ardVideoInspectRecord);
+    }
+
+    /**
+     * 鎸夋湀浠借幏鍙栨瘡鏃ヨ褰曟枃浠舵暟閲�
+     *
+     * @param startMonth
+     * @return
+     */
+    public List<ArdVideoInspectRecord> selectArdVideoInspectRecordCountByStartMonth(String startMonth) {
+        return ardVideoInspectRecordMapper.selectArdVideoInspectRecordCountByStartMonth(startMonth);
+    }
+
     /**
      * 鏂板瑙嗛宸℃璁板綍
      *
@@ -49,8 +67,9 @@
      */
     @Override
     public int insertArdVideoInspectRecord(ArdVideoInspectRecord ardVideoInspectRecord) {
-                ardVideoInspectRecord.setUserId(SecurityUtils.getUserId());
-            return ardVideoInspectRecordMapper.insertArdVideoInspectRecord(ardVideoInspectRecord);
+        //  ardVideoInspectRecord.setUserId(SecurityUtils.getUserId());
+        ardVideoInspectRecord.setId(IdUtils.simpleUUID());
+        return ardVideoInspectRecordMapper.insertArdVideoInspectRecord(ardVideoInspectRecord);
     }
 
     /**

--
Gitblit v1.9.3