|
|
@@ -4,13 +4,18 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.template.common.utils.CommonUtil;
|
|
|
import com.template.common.utils.RequestUtils;
|
|
|
import com.template.config.ParkConfig;
|
|
|
import com.template.config.ScheduleConfig;
|
|
|
import com.template.model.pojo.SmartCarAccess;
|
|
|
import com.template.mapper.SmartCarAccessMapper;
|
|
|
+import com.template.model.result.PageUtils;
|
|
|
+import com.template.model.vo.SmartAccessVo;
|
|
|
+import com.template.model.vo.SmartCarAccessVo;
|
|
|
import com.template.services.SmartCarAccessService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -39,6 +44,9 @@ public class SmartCarAccessServiceImpl extends ServiceImpl<SmartCarAccessMapper,
|
|
|
@Resource
|
|
|
private ScheduleConfig scheduleConfig;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ SmartCarAccessMapper smartCarAccessMapper;
|
|
|
+
|
|
|
private Integer page = 0;
|
|
|
private Integer size = 20;
|
|
|
|
|
|
@@ -279,5 +287,12 @@ public class SmartCarAccessServiceImpl extends ServiceImpl<SmartCarAccessMapper,
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ @Override
|
|
|
+ public PageUtils<SmartCarAccessVo> getPage(Integer currentPage, Integer pageCount, String keyWord, String type, String startTime, String endTime) {
|
|
|
+ Page<SmartCarAccessVo> page = new Page<>();
|
|
|
+ page.setCurrent(currentPage);
|
|
|
+ page.setSize(pageCount);
|
|
|
+ IPage<SmartCarAccessVo> datas = smartCarAccessMapper.getPage(page,keyWord,type,startTime,endTime);
|
|
|
+ return new PageUtils(datas);
|
|
|
+ }
|
|
|
}
|