Browse Source

首页修改

xieshengjie 1 year ago
parent
commit
3425e1c5a0

+ 11 - 0
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/controller/bmk/BenchmarkingController.java

@@ -24,6 +24,7 @@ import javax.annotation.Resource;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
+import java.util.stream.Collectors;
 
 @RestController
 @RequestMapping("//benchmarking")
@@ -44,6 +45,16 @@ public class BenchmarkingController {
             return R.error(ResultMsg.error());
         }
     }
+    @GetMapping(value = "/companysByRg")
+    @ApiOperation(value = "根据区域查询公司列表", notes = "根据区域查询公司列表")
+    public R companysByRg(@RequestParam(value = "regionid", required = true) String regionid)  {
+        List<ProBasicCompany> resultList = benchmarkingService.companys().stream().filter(i->i.getRegionId().equals(regionid)).collect(Collectors.toList());
+        if (StringUtils.isNotNull(resultList)) {
+            return R.data(ResultMsg.ok(resultList));
+        } else {
+            return R.error(ResultMsg.error());
+        }
+    }
     @GetMapping(value = "/wpByCplist")
     @ApiOperation(value = "场站列表", notes = "场站列表")
     public R wpByCplist(@RequestParam(value = "companyids", required = true) String companyids,