【7.0.3】更新日志详情接口

pull/9/head
fengshuonan 2021-04-13 11:14:49 +08:00
parent 2bc6412861
commit 05b6732736
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
*
@ -43,6 +44,7 @@ public class LogManagerRequest extends BaseRequest {
/**
* id
*/
@NotNull(message = "日志id不能为空", groups = {detail.class})
private Long logId;
/**

View File

@ -137,7 +137,9 @@ public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> impleme
Long userId = logManagerRequest.getUserId();
String clientIp = logManagerRequest.getClientIp();
String url = logManagerRequest.getRequestUrl();
Long logId = logManagerRequest.getLogId();
queryWrapper.eq(ObjectUtil.isNotEmpty(logId), SysLog::getLogId, logId);
queryWrapper.between(StrUtil.isAllNotBlank(beginDateTime, endDateTime), SysLog::getCreateTime, beginDateTime + " 00:00:00", endDateTime + " 23:59:59");
queryWrapper.like(StrUtil.isNotEmpty(name), SysLog::getLogContent, name);
queryWrapper.like(StrUtil.isNotEmpty(appName), SysLog::getAppName, appName);