北京经济技术开发区经开区虚拟城市项目-【后端】-服务,Poi,企业,地块等定制接口
13693261870
2023-10-07 b7f0283f5b7506013e890a55f3adf849457f7e9d
src/main/java/com/smartearth/poiexcel/controller/EntController.java
@@ -47,6 +47,21 @@
    @Value("${address.code.url}")
    private String addressCodeUrl;
    @ApiOperation(value = "根据名称模糊查询企业")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "企业名称或地址", dataType = "String", paramType = "query", example = "")
    })
    @GetMapping({"/selectByName"})
    public ResponseMsg<Object> selectByName(String name) {
        try {
            List<EntEntity> list = qiYeMapper.selectByName(StringHelper.getLikeStr(name));
            return success(null == list ? 0 : list.size(), list);
        } catch (Exception ex) {
            return fail(ex, -1);
        }
    }
    @ApiOperation(value = "查询令牌")
    @GetMapping({"/selectToken"})
    public ResponseMsg<Object> selectToken() {
@@ -59,7 +74,7 @@
        }
    }
    @ApiOperation(value = "查询企业")
    @ApiOperation(value = "查询企业信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "startDate", value = "开始日期", dataType = "String", paramType = "query", example = "2023-06-29"),
@@ -130,7 +145,7 @@
        }
    }
    @ApiOperation(value = "分页查询")
    @ApiOperation(value = "分页查询企业")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")