|
@@ -146,6 +146,21 @@ public class TdRawDeviceController extends BaseController {
|
146
|
146
|
return JSONObject.parseObject(s, ResponseBean.class);
|
147
|
147
|
}
|
148
|
148
|
|
|
149
|
+ /**
|
|
150
|
+ * 同步设备定位信息
|
|
151
|
+ *
|
|
152
|
+ * @param
|
|
153
|
+ * @return 实例对象
|
|
154
|
+ */
|
|
155
|
+ @ApiOperation("同步设备定位信息")
|
|
156
|
+ @PutMapping("/admin/raw-device/sync-loc")
|
|
157
|
+ public ResponseBean syncLoc(@ApiParam("设备类型") @RequestParam String deviceType,
|
|
158
|
+ @ApiParam("设备号") @RequestParam String deviceNo) throws Exception {
|
|
159
|
+ String url = String.format("%s/%s/sync-loc/%s", deviceServer, deviceType, deviceNo);
|
|
160
|
+ String s = httpUtils.get(url);
|
|
161
|
+ return JSONObject.parseObject(s, ResponseBean.class);
|
|
162
|
+ }
|
|
163
|
+
|
149
|
164
|
/**
|
150
|
165
|
* 通过主键删除数据
|
151
|
166
|
*
|