|
|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.zhehekeji.web.service;
|
|
|
|
package com.zhehekeji.web.service;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.zhehekeji.core.util.Assert;
|
|
|
|
import com.zhehekeji.core.util.Assert;
|
|
|
|
@ -172,22 +173,15 @@ public class CameraService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<Camera> allCameras1(){
|
|
|
|
public List<Camera> allCameras1(){
|
|
|
|
|
|
|
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
|
|
|
|
return cameras.stream().filter(camera -> {
|
|
|
|
List<Camera> cameras = cameraMapper.selectList(new QueryWrapper<>());
|
|
|
|
int index = Integer.parseInt(camera.getName().substring(2, 4));
|
|
|
|
return cameras;
|
|
|
|
boolean b = index >= 1 && index <= 5;
|
|
|
|
|
|
|
|
return b;
|
|
|
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Camera> allCameras2(){
|
|
|
|
public List<Camera> allCameras2(){
|
|
|
|
|
|
|
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
return cameras.stream().filter(camera -> {
|
|
|
|
return cameras;
|
|
|
|
int index = Integer.parseInt(camera.getName().substring(2, 4));
|
|
|
|
|
|
|
|
boolean b = index >= 6 && index <= 10;
|
|
|
|
|
|
|
|
return b;
|
|
|
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Camera> allCameras3(){
|
|
|
|
public List<Camera> allCameras3(){
|
|
|
|
|