@Component public class ActionLogUtil extends Object implements org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
ActionLogUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addActionLog(String objectType,
String objectId,
String log)
操作人用当前登录人,没有登录人写NULL
操作时间用当前时间 |
static void |
addActionLog(String objectType,
String objectId,
String log,
Date operateTime)
操作人用当前登录人,没有登录人写NULL
|
static void |
addActionLog(String objectType,
String objectId,
String log,
String operator)
操作时间用当前时间
|
static void |
addActionLog(String objectType,
String objectId,
String logValue,
String operator,
Date operateTime)
指定操作人和操作时间记录日志
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public static void addActionLog(String objectType, String objectId, String log)
objectType - objectId - log - public static void addActionLog(String objectType, String objectId, String log, String operator)
objectType - objectId - log - operator - public static void addActionLog(String objectType, String objectId, String log, Date operateTime)
objectType - objectId - log - operateTime - public static void addActionLog(String objectType, String objectId, String logValue, String operator, Date operateTime)
objectType - objectId - logValue - operator - operateTime - public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2022. All rights reserved.