From 5b7b29ff8768ffa219094b7cacdc45b9d0f6c27c Mon Sep 17 00:00:00 2001 From: zhaoxianglong Date: Tue, 30 Jul 2024 09:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E7=AE=A1?= =?UTF-8?q?=E6=8E=A7=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zc/business/interfaces/OperationLogAspect.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java b/zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java index 19b1bdd8..e4d4d519 100644 --- a/zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java +++ b/zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java @@ -474,7 +474,11 @@ public class OperationLogAspect { } operLog.setOperName(loginUser.getUsername()); operLog.setOperLocation(loginUser.getLoginLocation()); - operLog.setOperType(UniversalEnum.TWO.getValue()); + if (devices.size() > UniversalEnum.ONE.getNumber()) { + operLog.setOperType(UniversalEnum.TWO.getValue()); + } else { + operLog.setOperType(UniversalEnum.ZERO.getValue()); + } } else { operLog.setOperName(UniversalEnum.SERVER.getValue()); operLog.setDeptName(UniversalEnum.SERVER.getValue());