|
|
|
@ -7,6 +7,7 @@ import cn.hutool.system.oshi.CpuInfo;
|
|
|
|
|
import cn.iocoder.yudao.framework.common.page.PageDTO; |
|
|
|
|
import cn.iocoder.yudao.framework.common.page.PageUtil; |
|
|
|
|
import cn.iocoder.yudao.framework.common.page.PageVO; |
|
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
|
|
|
import cn.iocoder.yudao.module.farm.controller.admin.logMsg.dto.LogMsgDTO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.CpUser.CpUserDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; |
|
|
|
@ -105,7 +106,9 @@ public class LogMsgServiceImpl implements LogMsgService {
|
|
|
|
|
|
|
|
|
|
public R<PageVO<LogMsgDTO>> logMsgList(PageDTO pageDTO){ |
|
|
|
|
PageUtil.startPage(pageDTO); |
|
|
|
|
List<LogMsgDO> list = logMsgMapper.selectList(); |
|
|
|
|
LambdaQueryWrapperX<LogMsgDO> queryWrapperX = new LambdaQueryWrapperX<>(); |
|
|
|
|
queryWrapperX.orderByDesc(LogMsgDO::getId); |
|
|
|
|
List<LogMsgDO> list = logMsgMapper.selectList(queryWrapperX); |
|
|
|
|
|
|
|
|
|
List<LogMsgDTO> dtoList = BeanUtil.copyToList(list, LogMsgDTO.class); |
|
|
|
|
|
|
|
|
@ -122,7 +125,6 @@ public class LogMsgServiceImpl implements LogMsgService {
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dtoList.forEach(msg ->{ |
|
|
|
|
if (map.containsKey(msg.getUserId())){ |
|
|
|
|
CpUserDO user = map.get(msg.getUserId()); |
|
|
|
|