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 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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue