feat(设备管理):新增航线管理,执行任务时候根据二维码参数获取航线链接,二维码启用状态校验以及优化

This commit is contained in:
2025-03-30 11:14:59 +08:00
parent edfa579b7a
commit f761f434b6
@@ -83,12 +83,14 @@ public class ApiDeviceController {
}
}
try {
assert property != null;
if (ControlEnum.contains(ControlEnum.valueOf(property.toUpperCase()))) {
jsonObject = gson.fromJson(controlMessageConstant.CONTROL_MESSAGE_MAP.get(property), JsonObject.class);
JsonObject data = jsonObject.getAsJsonObject("data");
data.addProperty("order_no", value);
data.addProperty("waylineUrl", orderCenterService.getWaylineByOrderNo(value));
String waylinLinkUrl = orderCenterService.getOrderStatusByOrderNo(value);
data.addProperty("wayline_link_url", waylinLinkUrl);
}else {
return Result.succeed("暂未开放控制权限");