管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-23 242625593d053aa842d3dd91cc426c8a109eb395
src/main/java/com/lf/server/controller/all/BaseQueryController.java
@@ -460,18 +460,18 @@
    }
    @SysLog()
    @ApiOperation(value = "根据单位ID集合查询单位")
    @ApiOperation(value = "根据单位编码数组查询单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "单位ID集合", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1,10")
            @ApiImplicitParam(name = "codes", value = "单位编码数组", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001")
    })
    @GetMapping(value = "/selectDepsByIds")
    public ResponseMsg<Object> selectDepsByIds(Integer[] ids) {
    @GetMapping(value = "/selectDepsByCodes")
    public ResponseMsg<Object> selectDepsByCodes(String[] codes) {
        try {
            if (null == ids || ids.length == 0) {
            if (null == codes || codes.length == 0) {
                return fail("单位ID集合为空");
            }
            List<IdNameEntity> list = depService.selectDepsByIds(ids);
            List<IdNameEntity> list = depService.selectDepsByCodes(codes);
            return success(list);
        } catch (Exception ex) {
@@ -566,11 +566,11 @@
                return fail("用户未登录", null);
            }
            int count = downloadService.selectCountForUser(ue.getCreateUser(), 4, name);
            int count = downloadService.selectCountForUser(ue.getId(), 4, name);
            if (count == 0) {
                return success(0, null);
            }
            List<DownloadEntity> rs = downloadService.selectByPageForUser(ue.getCreateUser(), 4, name, pageSize, pageSize * (pageIndex - 1));
            List<DownloadEntity> rs = downloadService.selectByPageForUser(ue.getId(), 4, name, pageSize, pageSize * (pageIndex - 1));
            return success(count, rs);
        } catch (Exception ex) {