管道基础大数据平台系统开发-【后端】-Server
13693261870
2023-06-12 13301ea21fe2a1c5878050780d6bd946871e27c3
src/main/java/com/lf/server/controller/all/BaseQueryController.java
@@ -28,6 +28,7 @@
import com.lf.server.service.show.DataLibService;
import com.lf.server.service.sys.AttachService;
import com.lf.server.service.sys.DepService;
import com.lf.server.service.sys.DownlogService;
import com.lf.server.service.sys.TokenService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
@@ -64,7 +65,10 @@
    DataLibService dataLibService;
    @Autowired
    DownloadService downloadService;
    public DownlogService downlogService;
    @Autowired
    public DownloadService downloadService;
    @Autowired
    BaseQueryService baseQueryService;
@@ -196,7 +200,7 @@
            if (StringHelper.isEmpty(wkt)) {
                return fail("WKT不能为空", null);
            }
            if (null == limit || limit < 1 || limit > StaticData.ONE_HUNDRED) {
            if (null == limit || limit < 1 || limit > StaticData.I100) {
                limit = 20;
            }
            if (null == buffer || buffer < 0 || buffer > StaticData.ONE_HUNDRED_THOUSAND) {
@@ -710,11 +714,11 @@
                return fail("用户未登录", null);
            }
            int count = downloadService.selectCountForUser(ue.getId(), 4, name);
            int count = downloadService.selectCountForUser(ue.getId(), "3,4", name);
            if (count == 0) {
                return success(0, null);
            }
            List<DownloadEntity> rs = downloadService.selectByPageForUser(ue.getId(), 4, name, pageSize, pageSize * (pageIndex - 1));
            List<DownloadEntity> rs = downloadService.selectByPageForUser(ue.getId(), "3,4", name, pageSize, pageSize * (pageIndex - 1));
            return success(count, rs);
        } catch (Exception ex) {