mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-14 05:33:42 +08:00
update lib
This commit is contained in:
@@ -48,11 +48,11 @@ public class LoggingAspect {
|
||||
return processWithLogging(joinPoint, aopLog);
|
||||
}
|
||||
|
||||
// @Around("execution(* com.zl.mjga.service..*(..))")
|
||||
// public Object logService(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||
// AopLog aopLog = new AopLog();
|
||||
// return processWithLogging(joinPoint, aopLog);
|
||||
// }
|
||||
// @Around("execution(* com.zl.mjga.service..*(..))")
|
||||
// public Object logService(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||
// AopLog aopLog = new AopLog();
|
||||
// return processWithLogging(joinPoint, aopLog);
|
||||
// }
|
||||
|
||||
private Object processWithLogging(ProceedingJoinPoint joinPoint, AopLog aopLog) throws Throwable {
|
||||
if (shouldSkipLogging(joinPoint) || !isUserAuthenticated()) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package com.zl.mjga.dto.aoplog;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@@ -47,14 +47,16 @@ public class AopLogRepository extends AopLogDao {
|
||||
.where(buildConditions(queryDto));
|
||||
}
|
||||
|
||||
|
||||
public SelectConditionStep<Record> selectByWithoutReturnValue(AopLogQueryDto queryDto) {
|
||||
return ctx()
|
||||
.select(AOP_LOG.asterisk().except(AOP_LOG.RETURN_VALUE, AOP_LOG.METHOD_ARGS), USER.USERNAME, DSL.count().over().as("total_count"))
|
||||
.from(AOP_LOG)
|
||||
.leftJoin(USER)
|
||||
.on(AOP_LOG.USER_ID.eq(USER.ID))
|
||||
.where(buildConditions(queryDto));
|
||||
.select(
|
||||
AOP_LOG.asterisk().except(AOP_LOG.RETURN_VALUE, AOP_LOG.METHOD_ARGS),
|
||||
USER.USERNAME,
|
||||
DSL.count().over().as("total_count"))
|
||||
.from(AOP_LOG)
|
||||
.leftJoin(USER)
|
||||
.on(AOP_LOG.USER_ID.eq(USER.ID))
|
||||
.where(buildConditions(queryDto));
|
||||
}
|
||||
|
||||
private Condition buildConditions(AopLogQueryDto queryDto) {
|
||||
|
||||
Reference in New Issue
Block a user