|
|
|
@ -329,6 +329,25 @@ public class TdEngineController {
|
|
|
|
|
return R.fail(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@InnerAuth
|
|
|
|
|
@PostMapping("/getDeviceLocation")
|
|
|
|
|
public R<?> getDeviceLocation(@Validated @RequestBody TdSelectDto tdSelectDto) {
|
|
|
|
|
try {
|
|
|
|
|
return R.ok(this.tdEngineService.getDeviceLocation(tdSelectDto));
|
|
|
|
|
} catch (UncategorizedSQLException e) {
|
|
|
|
|
String message = e.getCause().getMessage();
|
|
|
|
|
try {
|
|
|
|
|
message = message.substring(message.lastIndexOf("invalid operation"));
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
}
|
|
|
|
|
log.error(message);
|
|
|
|
|
return R.fail(message);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error(e.getMessage());
|
|
|
|
|
return R.fail(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return R<Map < String, Map < String, Object>>>
|
|
|
|
|