|
@@ -1,6 +1,7 @@
|
|
|
package com.gis.web.controller;
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.gis.common.deyuan.util.ResultUtils;
|
|
|
import com.gis.common.util.Result;
|
|
@@ -22,7 +23,7 @@ import java.util.HashMap;
|
|
|
* Created by owen on 2020/10/18 0018 12:17
|
|
|
*/
|
|
|
@Slf4j
|
|
|
-@Api(tags = "大屏BI接口")
|
|
|
+@Api(tags = "v2.0-大屏BI接口")
|
|
|
@RestController
|
|
|
@RequestMapping("screen")
|
|
|
public class ScreenController {
|
|
@@ -103,17 +104,45 @@ public class ScreenController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// @ApiOperationSupport(order=2)
|
|
|
+// @ApiOperation("场景营造-社区活动")
|
|
|
+// @GetMapping("activityData/{code}")
|
|
|
+// public Result activityData(@PathVariable String code) {
|
|
|
+// String apiUrl = "/open/api/v1/community/activity-data";
|
|
|
+// HashMap<String, Object> param = new HashMap<>();
|
|
|
+// param.put("code", code);
|
|
|
+// param.put("children", "true");
|
|
|
+// return resultUtils.doGetResult(apiUrl, param);
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * by owen 2022-6-28
|
|
|
+ * @param code
|
|
|
+ * @param children
|
|
|
+ * @param topType
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "code", value = "城市/社区编码 (必传)", dataType = "String", required = true),
|
|
|
+ @ApiImplicitParam(name = "children", value = "查询下级节点 (必传), ", dataType = "String", required = true),
|
|
|
+ @ApiImplicitParam(name = "topType", value = "topType=all 查全部。 不传就默认查询进行中的", dataType = "String")
|
|
|
+ })
|
|
|
@ApiOperationSupport(order=2)
|
|
|
- @ApiOperation("场景营造-社区活动")
|
|
|
- @GetMapping("activityData/{code}")
|
|
|
- public Result activityData(@PathVariable String code) {
|
|
|
+ @ApiOperation("v2.0-场景营造-社区活动(V1)")
|
|
|
+ @GetMapping("activityData/{code}/{children}")
|
|
|
+ public Result activityData(@PathVariable String code, @PathVariable Boolean children, String topType) {
|
|
|
String apiUrl = "/open/api/v1/community/activity-data";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- param.put("children", "true");
|
|
|
+ param.put("children", children);
|
|
|
+ if (StrUtil.isNotBlank(topType)){
|
|
|
+ param.put("topType", topType);
|
|
|
+ }
|
|
|
return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@ApiOperationSupport(order=2)
|
|
|
@ApiOperation("场景营造-邻里交流,cityCode:510124112")
|
|
|
@GetMapping("interFlow/{cityCode}")
|