tao.mo

common-dependencies | 修改 | 修改日志记录

mt
2025年1月13日19:07:54
...@@ -2,6 +2,8 @@ package com.fedex.connect.common.dependencies.aspect; ...@@ -2,6 +2,8 @@ package com.fedex.connect.common.dependencies.aspect;
2 2
3 import com.fedex.connect.common.dependencies.annotation.OperationMethodLog; 3 import com.fedex.connect.common.dependencies.annotation.OperationMethodLog;
4 import com.fedex.connect.common.dependencies.contants.AnnotationConstants; 4 import com.fedex.connect.common.dependencies.contants.AnnotationConstants;
5 +import com.fedex.connect.common.dependencies.contants.BaseConstants;
6 +import com.fedex.connect.common.dependencies.contants.SystemDefaultUserConstants;
5 import com.fedex.connect.common.dependencies.date.vo.ResponseVo; 7 import com.fedex.connect.common.dependencies.date.vo.ResponseVo;
6 import com.fedex.connect.common.dependencies.enums.BaseResponseCode; 8 import com.fedex.connect.common.dependencies.enums.BaseResponseCode;
7 import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil; 9 import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil;
...@@ -173,7 +175,12 @@ public class OperationLogAspect { ...@@ -173,7 +175,12 @@ public class OperationLogAspect {
173 log.setResult(resultJson); 175 log.setResult(resultJson);
174 } 176 }
175 //基础字段赋值 177 //基础字段赋值
176 - AssignmentFieldUtils.assignmentTableBaseField(log); 178 + log.setCreateTime(new Date());
179 + log.setCreateUserId(SystemDefaultUserConstants.SYSTEM_USER_KEYS.ID);
180 + log.setCreateUserName(SystemDefaultUserConstants.SYSTEM_USER_KEYS.USER_NAME);
181 + log.setModifyTime(new Date());
182 + log.setModifyUserId(SystemDefaultUserConstants.SYSTEM_USER_KEYS.ID);
183 + log.setModifyUserName(SystemDefaultUserConstants.SYSTEM_USER_KEYS.USER_NAME);
177 // 日志插入数据库 184 // 日志插入数据库
178 logger.info("插入日志:" + JsonUtils.objectToJson(log)); 185 logger.info("插入日志:" + JsonUtils.objectToJson(log));
179 operationRepository.insert(log); 186 operationRepository.insert(log);
......