Pu Zhibing
9 天以前 7a4f9541331bef779a506b38a27ed5c3373c0bec
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysOperlogController.java
@@ -6,6 +6,7 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.common.core.web.page.PageInfo;
import com.ruoyi.common.security.annotation.Logical;
import com.ruoyi.system.query.SysOperLogQuery;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@@ -38,6 +39,7 @@
   private ISysOperLogService operLogService;
   
   
   @RequiresPermissions(value = {"/operationLog/list"}, logical = Logical.OR)
   @GetMapping("/list")
   @ApiOperation(value = "获取操作日志列表", tags = {"管理后台-操作日志"})
   public AjaxResult<PageInfo<SysOperLog>> list(SysOperLogQuery query) {
@@ -55,7 +57,7 @@
      if(null != query.getStartTime() && null != query.getEndTime()){
         wrapper.between(SysOperLog::getOperTime, query.getStartTime(), query.getEndTime());
      }
      PageInfo<SysOperLog> page = operLogService.page(pageInfo, wrapper);
      PageInfo<SysOperLog> page = operLogService.page(pageInfo, wrapper.orderByDesc(SysOperLog::getOperTime));
      return AjaxResult.success(page);
   }