From b267af1b816f646fa02c6f4983ebb3f9825cc192 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期六, 13 四月 2024 15:00:44 +0800
Subject: [PATCH] 单据管理:1.销售账号,在系统里面单据管理这里A销售员做的单子,在它的账号只显示自己的客户信息,不同的账号,看不到别人的信息,管理员是可以全部看的 2.增加客户名称,操作员搜索

---
 src/main/resources/mapper/ViewStayTimeMapper.xml |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/resources/mapper/ViewStayTimeMapper.xml b/src/main/resources/mapper/ViewStayTimeMapper.xml
index f345519..5038b29 100644
--- a/src/main/resources/mapper/ViewStayTimeMapper.xml
+++ b/src/main/resources/mapper/ViewStayTimeMapper.xml
@@ -51,10 +51,10 @@
 	(
 	SELECT
 	GETDATE() AS today
-	, CONVERT(decimal, DATEDIFF(second,man_loc_detl.create_time, GETDATE()) / 86400.0, 9) AS stay_time
-	, man_loc_detl.*
-	FROM man_loc_detl
-	INNER JOIN man_node ON man_loc_detl.loc_no = man_node.name
+	, CONVERT(decimal, DATEDIFF(second,asr_pla_detl.pakin_time, GETDATE()) / 86400.0, 9) AS stay_time
+	, asr_pla_detl.*
+	FROM asr_pla_detl
+	INNER JOIN man_node ON asr_pla_detl.loc_no = man_node.name
 	where 1=1
 	<include refid="viewStayTimeConditionSql"></include>
 	) ts
@@ -72,10 +72,10 @@
 	(
 	SELECT
 	GETDATE() AS today
-	, CONVERT(decimal, DATEDIFF(second,man_loc_detl.create_time, GETDATE()) / 86400.0, 9) AS stay_time
-	, man_loc_detl.*
-	FROM man_loc_detl
-	INNER JOIN man_node ON man_loc_detl.loc_no = man_node.name
+	, CONVERT(decimal, DATEDIFF(second,asr_pla_detl.create_time, GETDATE()) / 86400.0, 9) AS stay_time
+	, asr_pla_detl.*
+	FROM asr_pla_detl
+	INNER JOIN man_node ON asr_pla_detl.loc_no = man_node.name
 	where 1=1
 	<include refid="viewStayTimeConditionSql"></include>
 	) t

--
Gitblit v1.9.1