mirror of https://gitee.com/stylefeng/roses
【7.0.3】更新日志详情接口
parent
2bc6412861
commit
05b6732736
|
@ -29,6 +29,7 @@ import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 日志管理的查询参数
|
* 日志管理的查询参数
|
||||||
|
@ -43,6 +44,7 @@ public class LogManagerRequest extends BaseRequest {
|
||||||
/**
|
/**
|
||||||
* 单条日志id
|
* 单条日志id
|
||||||
*/
|
*/
|
||||||
|
@NotNull(message = "日志id不能为空", groups = {detail.class})
|
||||||
private Long logId;
|
private Long logId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -137,7 +137,9 @@ public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> impleme
|
||||||
Long userId = logManagerRequest.getUserId();
|
Long userId = logManagerRequest.getUserId();
|
||||||
String clientIp = logManagerRequest.getClientIp();
|
String clientIp = logManagerRequest.getClientIp();
|
||||||
String url = logManagerRequest.getRequestUrl();
|
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.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(name), SysLog::getLogContent, name);
|
||||||
queryWrapper.like(StrUtil.isNotEmpty(appName), SysLog::getAppName, appName);
|
queryWrapper.like(StrUtil.isNotEmpty(appName), SysLog::getAppName, appName);
|
||||||
|
|
Loading…
Reference in New Issue