|
|
@ -3,6 +3,7 @@ package com.ruoyi.code.camera.service.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.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
|
|
|
import com.ruoyi.code.sctaationinfo.domain.ScStationInfo; |
|
|
|
import com.ruoyi.common.core.page.R; |
|
|
|
import com.ruoyi.common.core.page.R; |
|
|
|
import com.ruoyi.common.utils.Query; |
|
|
|
import com.ruoyi.common.utils.Query; |
|
|
|
import com.ruoyi.code.camera.domain.Camera; |
|
|
|
import com.ruoyi.code.camera.domain.Camera; |
|
|
@ -29,9 +30,10 @@ public class CameraServiceImpl extends ServiceImpl<CameraMapper, Camera> impleme |
|
|
|
{ |
|
|
|
{ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R queryPage(Map<String, Object> params) { |
|
|
|
public R queryPage(Map<String, Object> params) { |
|
|
|
IPage<Camera> page = this.page( |
|
|
|
IPage<Camera> page = baseMapper.queryPage( |
|
|
|
new Query<Camera>().getPage(params), |
|
|
|
new Query<Camera>().getPage(params), |
|
|
|
new QueryWrapper<Camera>() |
|
|
|
params |
|
|
|
|
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return R.ok().put("count", page.getTotal()).put("data", page.getRecords()); |
|
|
|
return R.ok().put("count", page.getTotal()).put("data", page.getRecords()); |
|
|
|