Browse Source

优化设备管控记录

develop
zhaoxianglong 4 months ago
parent
commit
5b7b29ff87
  1. 4
      zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java

4
zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java

@ -474,7 +474,11 @@ public class OperationLogAspect {
} }
operLog.setOperName(loginUser.getUsername()); operLog.setOperName(loginUser.getUsername());
operLog.setOperLocation(loginUser.getLoginLocation()); operLog.setOperLocation(loginUser.getLoginLocation());
if (devices.size() > UniversalEnum.ONE.getNumber()) {
operLog.setOperType(UniversalEnum.TWO.getValue()); operLog.setOperType(UniversalEnum.TWO.getValue());
} else {
operLog.setOperType(UniversalEnum.ZERO.getValue());
}
} else { } else {
operLog.setOperName(UniversalEnum.SERVER.getValue()); operLog.setOperName(UniversalEnum.SERVER.getValue());
operLog.setDeptName(UniversalEnum.SERVER.getValue()); operLog.setDeptName(UniversalEnum.SERVER.getValue());

Loading…
Cancel
Save