瀏覽代碼

漏提交的代码

yucheng 3 年之前
父節點
當前提交
56806f5758

+ 2 - 1
dc-comp/dc-mybatis/src/main/java/com/persagy/dc/mybatis/handler/AuditInfoHandler.java

@@ -37,8 +37,9 @@ public class AuditInfoHandler implements Interceptor {
         if (parameter == null || !(parameter instanceof AuditableEntity)) {
             return invocation.proceed();
         }
+        // 审计信息默认值
         AuditableEntity entity = (AuditableEntity) parameter;
-        if (SqlCommandType.INSERT == sqlCommandType || SqlCommandType.UPDATE == sqlCommandType) {
+        if (SqlCommandType.INSERT == sqlCommandType) {
             entity.setCreator(AppContext.getContext().getAccountId());
             entity.setCreationTime(new PsDateTime());
         } else {