From 83d5842ce68af7ab306f8f546fa7c11d94ad87bc Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 18 三月 2026 22:40:40 +0800
Subject: [PATCH] update
---
xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpTaskServiceImpl.java | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpTaskServiceImpl.java b/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpTaskServiceImpl.java
index f275acf..1cee6ec 100644
--- a/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpTaskServiceImpl.java
+++ b/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpTaskServiceImpl.java
@@ -149,8 +149,10 @@
String vehiclePictures = workBenchVO.getVehiclePictures();
if (StringUtils.isNotBlank(vehiclePictures)) {
JSONObject jsonObject = JSONObject.parseObject(vehiclePictures);
+ //1
String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
- workBenchVO.setVehiclePictures(downloadUrl);
+ jsonObject.put("url", downloadUrl);
+ workBenchVO.setVehiclePictures(jsonObject.toJSONString());
}
}
@@ -437,6 +439,7 @@
ArrayList<String> list = new ArrayList<>(jsonArray.size());
for (Object o : jsonArray) {
JSONObject jsonObject = JSONObject.parseObject(o.toString());
+ // 2
String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
list.add(downloadUrl);
}
@@ -538,6 +541,7 @@
ArrayList<String> list = new ArrayList<>(jsonArray.size());
for (Object o : jsonArray) {
JSONObject jsonObject = JSONObject.parseObject(o.toString());
+ // 2
String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
list.add(downloadUrl);
}
@@ -587,18 +591,18 @@
String startChargingPicture = res.getStartChargingPicture();
if (StringUtils.isNotBlank(startChargingPicture)) {
JSONArray jsonArray = JSONArray.parseArray(startChargingPicture);
- ArrayList<String> list = new ArrayList<>(jsonArray.size());
for (Object o : jsonArray) {
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ //1
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
- list.add(downloadUrl);
+ jsonObject.put("url", downloadUrl);
}
- res.setStartChargingPicture(String.join(",", list));
+ res.setStartChargingPicture(JSONArray.toJSONString(jsonArray));
}
res.setStartTime(chargingRecord.getStartTime());
@@ -610,18 +614,18 @@
String endChargingPicture = chargingRecord.getEndChargingPicture();
if (StringUtils.isNotBlank(endChargingPicture)) {
JSONArray jsonArray = JSONArray.parseArray(endChargingPicture);
- ArrayList<String> list = new ArrayList<>(jsonArray.size());
for (Object o : jsonArray) {
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ //1
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
- list.add(downloadUrl);
+ jsonObject.put("url", downloadUrl);
}
- res.setEndChargingPicture(String.join(",", list));
+ res.setEndChargingPicture(JSONArray.toJSONString(jsonArray));
}
res.setEndTime(chargingRecord.getEndTime());
@@ -693,6 +697,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -837,6 +842,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -858,6 +864,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -882,6 +889,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -903,6 +911,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -923,6 +932,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -1028,6 +1038,7 @@
ArrayList<String> list = new ArrayList<>(jsonArray.size());
for (Object o : jsonArray) {
JSONObject jsonObject = JSONObject.parseObject(o.toString());
+ // 2
String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
list.add(downloadUrl);
}
@@ -1253,6 +1264,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -1573,6 +1585,7 @@
if(vehicle.getVehiclePictures()!=null){
JSONObject jsonObject = JSONObject.parseObject(vehicle.getVehiclePictures());
+ // 2
String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
taskManagementDetectionDetailVO.setVehiclePictures(downloadUrl);
}
@@ -1598,6 +1611,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -1620,6 +1634,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -1640,6 +1655,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -1660,6 +1676,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
@@ -1681,6 +1698,7 @@
JSONObject jsonObject = JSONObject.parseObject(o.toString());
String downloadUrl = null;
try {
+ // 2
downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
--
Gitblit v1.7.1