From 2fc94ba7b517125a7ed9771b48bb5d383021bc91 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期日, 20 十月 2024 01:57:09 +0800
Subject: [PATCH] 优化楼层数据获取

---
 repository/captureRepo.go |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/repository/captureRepo.go b/repository/captureRepo.go
index bb82cf5..9941a4a 100644
--- a/repository/captureRepo.go
+++ b/repository/captureRepo.go
@@ -3,6 +3,7 @@
 import (
 	"encoding/base64"
 	"encoding/json"
+	"gat1400Exchange/nvcs"
 	"time"
 
 	"gat1400Exchange/client"
@@ -10,7 +11,6 @@
 	"gat1400Exchange/models"
 	"gat1400Exchange/pkg"
 	"gat1400Exchange/pkg/logger"
-	"gat1400Exchange/service"
 	"gat1400Exchange/util"
 	"gat1400Exchange/vo"
 )
@@ -224,11 +224,11 @@
 			var dbPos models.Positions
 			if err := dbPos.FindMovePosition(faceAppearTime.Unix()+5, floor); err == nil {
 				switch dbPos.RunDir {
-				case service.RunUp:
+				case nvcs.RunUp:
 					runDir = "in"
-				case service.RunDown:
+				case nvcs.RunDown:
 					runDir = "out"
-				case service.RunStop:
+				case nvcs.RunStop:
 					runDir = ""
 				}
 
@@ -291,11 +291,11 @@
 			var dbPos models.Positions
 			if err := dbPos.FindMovePosition(faceAppearTime.Unix()+5, floor); err == nil {
 				switch dbPos.RunDir {
-				case service.RunUp:
+				case nvcs.RunUp:
 					runDir = "1"
-				case service.RunDown:
+				case nvcs.RunDown:
 					runDir = "2"
-				case service.RunStop:
+				case nvcs.RunStop:
 					runDir = "0"
 				}
 

--
Gitblit v1.8.0