|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.zhehekeji.web.service;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.zhehekeji.core.util.Assert;
|
|
|
|
|
@ -107,7 +108,7 @@ public class CameraService {
|
|
|
|
|
|
|
|
|
|
public PageInfo<Camera> cameras(StreetSearch streetSearch) {
|
|
|
|
|
PageHelper.startPage(streetSearch.getPageNum(), streetSearch.getPageSize());
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>(0));
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectList(new QueryWrapper<Camera>().orderByAsc("(REPLACE(name,\"巷道\",\"\")+0)"));
|
|
|
|
|
if(cameras.size() > 0){
|
|
|
|
|
if(streetSearch.getSearchType() == null || streetSearch.getSearchType() == 0){
|
|
|
|
|
CountDownLatch latch = new CountDownLatch(cameras.size());
|
|
|
|
|
@ -163,7 +164,8 @@ public class CameraService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Camera> allCameras(){
|
|
|
|
|
return cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectList(new QueryWrapper<Camera>().orderByAsc("(REPLACE(name,\"巷道\",\"\")+0)"));
|
|
|
|
|
return cameras;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|