|
|
@@ -8,6 +8,7 @@ import com.yingyangfly.core.domain.SysOperLog;
|
|
|
import com.yingyangfly.core.dto.SysOperLogDto;
|
|
|
import com.yingyangfly.core.mapper.SysOperLogMapper;
|
|
|
import com.yingyangfly.core.service.SysOperLogService;
|
|
|
+import com.yingyangfly.core.util.Sm4Util;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -30,6 +31,14 @@ public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOper
|
|
|
if (sysOperLogDto.getStatus() != null){
|
|
|
queryWrapper.eq(SysOperLog::getStatus,sysOperLogDto.getStatus());
|
|
|
}
|
|
|
+ if (sysOperLogDto.getOperUserName() != null) {
|
|
|
+ queryWrapper.eq(SysOperLog::getOperUserName, Sm4Util.encrypt(sysOperLogDto.getOperUserName()));
|
|
|
+ }
|
|
|
+ queryWrapper.like(
|
|
|
+ StringUtils.isNotBlank(sysOperLogDto.getTitle()), // 条件判断
|
|
|
+ SysOperLog::getTitle, // 字段
|
|
|
+ sysOperLogDto.getTitle() // 值
|
|
|
+ );
|
|
|
queryWrapper.orderByDesc(SysOperLog::getOperTime);
|
|
|
Page<SysOperLog> page = new Page<>(sysOperLogDto.getPage(), sysOperLogDto.getLimit());
|
|
|
Page<SysOperLog> sysOperLogPage = baseMapper.selectPage(page, queryWrapper);
|
|
|
@@ -55,4 +64,5 @@ public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOper
|
|
|
Page<SysOperLog> sysOperLogPage = baseMapper.selectPage(page, queryWrapper);
|
|
|
return sysOperLogPage.getRecords();
|
|
|
}
|
|
|
+
|
|
|
}
|