revert 操作日志、访问日志、错误日志

This commit is contained in:
1351515658@qq.com
2024-08-24 11:48:24 +08:00
parent 00ba2d6da9
commit b63886ad6c
3 changed files with 0 additions and 15 deletions

View File

@@ -37,11 +37,6 @@ public class ApiAccessLogServiceImpl implements ApiAccessLogService {
ApiAccessLogDO apiAccessLog = BeanUtils.toBean(createDTO, ApiAccessLogDO.class);
apiAccessLog.setRequestParams(StrUtil.maxLength(apiAccessLog.getRequestParams(), REQUEST_PARAMS_MAX_LENGTH));
apiAccessLog.setResultMsg(StrUtil.maxLength(apiAccessLog.getResultMsg(), RESULT_MSG_MAX_LENGTH));
if (apiAccessLog.getUserId() != null) {
String userIdStr = apiAccessLog.getUserId().toString();
apiAccessLog.setCreator(userIdStr);
apiAccessLog.setUpdater(userIdStr);
}
if (TenantContextHolder.getTenantId() != null) {
apiAccessLogMapper.insert(apiAccessLog);
} else {

View File

@@ -40,11 +40,6 @@ public class ApiErrorLogServiceImpl implements ApiErrorLogService {
ApiErrorLogDO apiErrorLog = BeanUtils.toBean(createDTO, ApiErrorLogDO.class)
.setProcessStatus(ApiErrorLogProcessStatusEnum.INIT.getStatus());
apiErrorLog.setRequestParams(StrUtil.maxLength(apiErrorLog.getRequestParams(), REQUEST_PARAMS_MAX_LENGTH));
if (apiErrorLog.getUserId() != null) {
String userIdStr = apiErrorLog.getUserId().toString();
apiErrorLog.setCreator(userIdStr);
apiErrorLog.setUpdater(userIdStr);
}
if (TenantContextHolder.getTenantId() != null) {
apiErrorLogMapper.insert(apiErrorLog);
} else {