|
@@ -1,11 +1,16 @@
|
|
|
package com.gis.web.controller;
|
|
|
|
|
|
|
|
|
+import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.gis.common.deyuan.util.CommonUtil;
|
|
|
import com.gis.common.deyuan.util.ResultUtils;
|
|
|
import com.gis.common.util.Result;
|
|
|
+import com.gis.web.dto.PageDto;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -55,6 +60,21 @@ public class ScreenController {
|
|
|
return ResultUtils.doGet(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "code", value = "行政编码 (必传)", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "labelType", value = "标签类型, residential:小区, house:房屋,proprietor:人员 ", dataType = "String")
|
|
|
+ })
|
|
|
+ @ApiOperationSupport(order=1)
|
|
|
+ @ApiOperation("街道概况-查询社区各类标签的使用详情")
|
|
|
+ @GetMapping("labelUsed/{code}/{labelType}")
|
|
|
+ public JSONObject labelUsed(@PathVariable String code, @PathVariable String labelType) {
|
|
|
+ String apiUrl = "/open/api/v1/community/label-used";
|
|
|
+ HashMap<String, Object> param = new HashMap<>();
|
|
|
+ param.put("code", code);
|
|
|
+ param.put("labelType", labelType);
|
|
|
+ return ResultUtils.doGet(apiUrl, param);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
|
@ApiOperation("场景营造-社区活动")
|
|
@@ -68,7 +88,7 @@ public class ScreenController {
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
|
- @ApiOperation("场景营造-邻里交流,cityCode:460300")
|
|
|
+ @ApiOperation("场景营造-邻里交流,cityCode:510124112")
|
|
|
@GetMapping("interFlow/{cityCode}")
|
|
|
public Result interFlow(@PathVariable String cityCode) {
|
|
|
String apiUrl = "/open/api/v1/community/statistics/interflow";
|
|
@@ -98,12 +118,13 @@ public class ScreenController {
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
|
- @ApiOperation("场景营造-可信生活圈:5f3de3d925892e0001e10312")
|
|
|
+ @ApiOperation("场景营造-可信生活圈")
|
|
|
@GetMapping("businessData/{code}")
|
|
|
public Result businessData(@PathVariable String code) {
|
|
|
String apiUrl = "/open/api/v1/community/business-data";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
- param.put("group", code);
|
|
|
+ param.put("group", "5f3de3d925892e0001e10312");
|
|
|
+ param.put("cityCode", code);
|
|
|
|
|
|
return ResultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
@@ -140,30 +161,89 @@ public class ScreenController {
|
|
|
|
|
|
|
|
|
|
|
|
- @ApiOperation("就业发展-就业专栏(code:510100)")
|
|
|
+ @ApiOperation("就业发展-就业专栏(code:510124112)")
|
|
|
@GetMapping("getStatistics/{code}")
|
|
|
public Result getStatistics(@PathVariable String code) {
|
|
|
String apiUrl = "/open/api/v1/community/deyuan/getStatistics";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("cityCode", code);
|
|
|
+// param.put("type", "DYNAMICTOP");
|
|
|
// 商家分组编码
|
|
|
- param.put("group", "5f34e07ffb01d500019698ea");
|
|
|
+ param.put("group", "5f3de3d925892e0001e10312");
|
|
|
return Result.success(ResultUtils.doGet(apiUrl, param));
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation("网格治理-一键报警")
|
|
|
- @GetMapping("getInfo/{code}")
|
|
|
- public Result getInfo(@PathVariable String code) {
|
|
|
+ /**
|
|
|
+ * 2021-02-19
|
|
|
+ * @param code 行政编码
|
|
|
+ * @param xzLevel 行政级别
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("网格治理-一键报警, 510124112006:4, 510124112:3")
|
|
|
+ @GetMapping("getInfo/{code}/{xzLevel}")
|
|
|
+ public Result getInfo(@PathVariable String code, @PathVariable String xzLevel) {
|
|
|
String apiUrl = "/open/api/v1/sspReportInfo/getInfo";
|
|
|
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("xzCode", code);
|
|
|
- param.put("xzLevel", "1");
|
|
|
+ param.put("xzLevel", xzLevel);
|
|
|
param.put("topic", "111");
|
|
|
return Result.success(ResultUtils.doGet(apiUrl, param));
|
|
|
}
|
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "code", value = "行政编码 (必传)", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "xzLevel", value = "行政级别(必传), ", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "topic", value = "查询主题, DB 表示待办, YB 表示已办 (必传), ", dataType = "String")
|
|
|
+ })
|
|
|
+ @ApiOperation("网格治理-一键报警(已办/代办), 510124112006:4, 510124112:3")
|
|
|
+ @GetMapping("sspReportInfo/{code}/{xzLevel}/{topic}")
|
|
|
+ public Result sspReportInfo(@PathVariable String code, @PathVariable String xzLevel, @PathVariable String topic) {
|
|
|
+ String apiUrl = "/open/api/v1/sspReportInfo/getInfoList";
|
|
|
+
|
|
|
+ HashMap<String, Object> param = new HashMap<>();
|
|
|
+ param.put("xzCode", code);
|
|
|
+ param.put("xzLevel", xzLevel);
|
|
|
+ param.put("topic", topic);
|
|
|
+ return Result.success(ResultUtils.doGet(apiUrl, param));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+// @ApiOperation("智慧门禁健康码推送")
|
|
|
+// @GetMapping("health/{code}")
|
|
|
+// public Result health(@PathVariable String code) {
|
|
|
+// String apiUrl = "/open/api/v1/ entrance-guard/health/pull";
|
|
|
+// HashMap<String, Object> param = new HashMap<>();
|
|
|
+// param.put("code", code);
|
|
|
+// return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+// }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 2021-02-19
|
|
|
+ * 新增接口
|
|
|
+ * @param pageDto
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("网格治理-走访打更")
|
|
|
+ @PostMapping("zfSignin/querySign")
|
|
|
+ public Result zfSignin(@RequestBody PageDto pageDto) {
|
|
|
+ String apiUrl = "/open/api/v1/zfSignin/querySign";
|
|
|
+ HashMap<String, Object> param = new HashMap<>();
|
|
|
+ param.put("townCode", pageDto.getCode());
|
|
|
+ Integer pageSize = pageDto.getPageSize();
|
|
|
+ Integer pageNum = pageDto.getPageNum();
|
|
|
+ if (pageSize <= 0) {
|
|
|
+ pageSize = 10;
|
|
|
+ }
|
|
|
+ if (pageNum <= 0) {
|
|
|
+ pageNum = 1;
|
|
|
+ }
|
|
|
+ param.put("size", pageSize);
|
|
|
+ param.put("page", pageNum);
|
|
|
+ return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
|