新增房金部自动检测机器人
This commit is contained in:
+2
@@ -19,6 +19,8 @@ class SnapshotMonitor extends BaseBatch {
|
||||
|
||||
// 运维组 运维警报
|
||||
static final access_token = "2307d2fec8314b3e8b4b83dd1d42da2e2051638e3e668f21e77ca01258bf682c"
|
||||
// 房金部自动检测机器人
|
||||
// https://oapi.dingtalk.com/robot/send?access_token=1b6d0d782d3c316f2d3b6b18ea5144816170dd392befbf2042a24a01fb84b736
|
||||
|
||||
static void main(String[] args) {
|
||||
runBatch(new SnapshotMonitor(), args)
|
||||
|
||||
+5
-5
@@ -19,18 +19,18 @@ class GetPoiFromExcel {
|
||||
|
||||
static void main(String[] args) {
|
||||
AtomicLong atomicLong = new AtomicLong(0)
|
||||
List<File> fileList = FileUtils.listFiles(new File("D:\\Users\\Domi\\Desktop\\房价网\\项目\\建行\\模型级联\\POI"), null, false);
|
||||
//List<File> fileList = FileUtils.listFiles(new File("D:\\Users\\Domi\\Desktop\\房价网\\项目\\建行\\模型级联\\POI"), null, false);
|
||||
List<File> fileList = FileUtils.listFiles(new File("D:\\Users\\Domi\\Desktop\\房价网\\项目\\建行\\模型级联\\高德反查无ID"), null, false);
|
||||
for (File file : fileList) {
|
||||
List<List<String>> seaweeds = ExcelUtils.read(file.getPath())
|
||||
final cityTemp = file.getName().substring(0, file.getName().indexOf("高德"))
|
||||
for (List<String> infoTemp : seaweeds) {
|
||||
final List<String> info = infoTemp
|
||||
executorService.submit(new Runnable() {
|
||||
@Override
|
||||
void run() {
|
||||
String city = cityTemp
|
||||
String region = info.get(2)
|
||||
String seaweedName = info.get(3)
|
||||
String city = info.get(0)
|
||||
String region = info.get(1)
|
||||
String seaweedName = info.get(2)
|
||||
List<AmapPoi> pois = GaoDeUtils.searchPoi(city, seaweedName, region, "120300|120301|120302");
|
||||
if (CollectionUtils.isNotEmpty(pois)) {
|
||||
String jsonStr = JSONObject.toJSONString(pois)
|
||||
|
||||
Reference in New Issue
Block a user