Commit 721b7c13 by 王欣伟

山东顺骋历史数据同步

1 parent d2e88bf0
......@@ -67,4 +67,26 @@ public class TenantDeviceSyncComponentTest {
System.out.println("success");
}
@Test
public void batchAddDevice() {
String snes = "";
String modul = "http://ap.glsx.com.cn/gpsmsg/setSyncDataDevice?DeviceNO={0}&cmdBit={1}&valid={2}";
String[] snList = snes.split(",");
int cmdBit = 32;
// 0关,1开
int valid = 0;
int timeOut = 3000;
for (int i = 0; i < snList.length; i++) {
String sn = snList[i];
String url = MessageFormat.format(modul, sn, cmdBit, valid);
System.out.println("===" + url);
String result = HttpUtil.get(url, timeOut);
System.out.println(result);
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!