|
@@ -3,6 +3,7 @@ package com.template.services.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
+import com.template.common.utils.TimeExchange;
|
|
|
import com.template.mapper.SmartScreenshotRecordMapper;
|
|
import com.template.mapper.SmartScreenshotRecordMapper;
|
|
|
import com.template.model.pojo.SmartScreenshotRecord;
|
|
import com.template.model.pojo.SmartScreenshotRecord;
|
|
|
import com.template.model.pojo.SmartScreenshotRecord;
|
|
import com.template.model.pojo.SmartScreenshotRecord;
|
|
@@ -20,7 +21,7 @@ import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* <p>
|
|
* <p>
|
|
|
- * 服务实现类
|
|
|
|
|
|
|
+ * 服务实现类
|
|
|
* </p>
|
|
* </p>
|
|
|
*
|
|
*
|
|
|
* @author ceshi
|
|
* @author ceshi
|
|
@@ -48,7 +49,7 @@ public class SmartScreenshotRecordServiceImpl extends ServiceImpl<SmartScreensho
|
|
|
Page<SmartScreenshotRecord> page = new Page<>(currentPage, pageCount);
|
|
Page<SmartScreenshotRecord> page = new Page<>(currentPage, pageCount);
|
|
|
QueryWrapper<SmartScreenshotRecord> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<SmartScreenshotRecord> queryWrapper = new QueryWrapper<>();
|
|
|
//queryWrapper.like(StringUtils.hasText(name), "name", name);
|
|
//queryWrapper.like(StringUtils.hasText(name), "name", name);
|
|
|
- IPage<SmartScreenshotRecord> result = smartScreenshotRecordMapper.selectPage(page,queryWrapper);
|
|
|
|
|
|
|
+ IPage<SmartScreenshotRecord> result = smartScreenshotRecordMapper.selectPage(page, queryWrapper);
|
|
|
return new PageUtils<>(result);
|
|
return new PageUtils<>(result);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -75,7 +76,8 @@ public class SmartScreenshotRecordServiceImpl extends ServiceImpl<SmartScreensho
|
|
|
public int querySmartScreenshotRecords(int userId) {
|
|
public int querySmartScreenshotRecords(int userId) {
|
|
|
QueryWrapper<SmartScreenshotRecord> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<SmartScreenshotRecord> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq(userId > 0, "user_id", userId);
|
|
queryWrapper.eq(userId > 0, "user_id", userId);
|
|
|
- queryWrapper.eq("is_freeze", 0);
|
|
|
|
|
|
|
+ queryWrapper.ge("create_time", TimeExchange.getLastYear(-1));
|
|
|
|
|
+ //queryWrapper.eq("is_freeze", 0);
|
|
|
Integer count = smartScreenshotRecordMapper.selectCount(queryWrapper);
|
|
Integer count = smartScreenshotRecordMapper.selectCount(queryWrapper);
|
|
|
return count;
|
|
return count;
|
|
|
}
|
|
}
|