日志列表接口
This commit is contained in:
@@ -2,7 +2,6 @@ package com.czg.service.system.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.czg.product.entity.ShopProdUnit;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.czg.service.system.mapper.OperationLogMapper;
|
||||
import com.czg.system.dto.OperationLogDTO;
|
||||
@@ -30,15 +29,15 @@ public class OperationLogServiceImpl extends ServiceImpl<OperationLogMapper, Ope
|
||||
if (StrUtil.isNotEmpty(param.getOperation())) {
|
||||
queryWrapper.like(OperationLog::getOperation, param.getOperation());
|
||||
}
|
||||
if (param.getBeginTime() != null) {
|
||||
queryWrapper.ge(OperationLog::getCreateTime, param.getBeginTime());
|
||||
if (StrUtil.isNotBlank(param.getStartTime())) {
|
||||
queryWrapper.ge(OperationLog::getCreateTime, param.getStartTime());
|
||||
}
|
||||
if (param.getEndTime() != null) {
|
||||
if (StrUtil.isNotBlank(param.getEndTime())) {
|
||||
queryWrapper.le(OperationLog::getCreateTime, param.getEndTime());
|
||||
}
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
queryWrapper.eq(ShopProdUnit::getShopId, shopId);
|
||||
queryWrapper.orderBy(ShopProdUnit::getId, false);
|
||||
queryWrapper.eq(OperationLog::getShopId, shopId);
|
||||
queryWrapper.orderBy(OperationLog::getId, false);
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
@@ -54,4 +53,4 @@ public class OperationLogServiceImpl extends ServiceImpl<OperationLogMapper, Ope
|
||||
return super.listAs(queryWrapper, OperationLogDTO.class);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user