xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpVehicleCleanController.java
@@ -100,7 +100,7 @@ if (StringUtils.isNotBlank(taskImage)) { JSONArray jsonArray = JSONArray.parseArray(taskImage); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -161,7 +161,7 @@ if (StringUtils.isNotBlank(taskImage)) { JSONArray jsonArray = JSONArray.parseArray(taskImage); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpVehicleDetectionController.java
@@ -114,7 +114,7 @@ if (StringUtils.isNotBlank(sensorCleaningPicture)) { JSONArray jsonArray = JSONArray.parseArray(sensorCleaningPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -132,7 +132,7 @@ if (StringUtils.isNotBlank(interactiveScreenPicture)) { JSONArray jsonArray = JSONArray.parseArray(interactiveScreenPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -150,7 +150,7 @@ if (StringUtils.isNotBlank(helpButtonPicture)) { JSONArray jsonArray = JSONArray.parseArray(helpButtonPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -168,7 +168,7 @@ if (StringUtils.isNotBlank(paymentFunctionPicture)) { JSONArray jsonArray = JSONArray.parseArray(paymentFunctionPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -186,7 +186,7 @@ if (StringUtils.isNotBlank(systemCheckPicture)) { JSONArray jsonArray = JSONArray.parseArray(systemCheckPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -227,7 +227,7 @@ if (StringUtils.isNotBlank(sensorCleaningPicture)) { JSONArray jsonArray = JSONArray.parseArray(sensorCleaningPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -245,7 +245,7 @@ if (StringUtils.isNotBlank(interactiveScreenPicture)) { JSONArray jsonArray = JSONArray.parseArray(interactiveScreenPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -263,7 +263,7 @@ if (StringUtils.isNotBlank(helpButtonPicture)) { JSONArray jsonArray = JSONArray.parseArray(helpButtonPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -281,7 +281,7 @@ if (StringUtils.isNotBlank(paymentFunctionPicture)) { JSONArray jsonArray = JSONArray.parseArray(paymentFunctionPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -299,7 +299,7 @@ if (StringUtils.isNotBlank(systemCheckPicture)) { JSONArray jsonArray = JSONArray.parseArray(systemCheckPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpVehicleRepairController.java
@@ -107,7 +107,7 @@ if (StringUtils.isNotBlank(startRepairPicture)) { JSONArray jsonArray = JSONArray.parseArray(startRepairPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -148,7 +148,7 @@ if (StringUtils.isNotBlank(startRepairPicture)) { JSONArray jsonArray = JSONArray.parseArray(startRepairPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpWorkOrderController.java
@@ -86,7 +86,7 @@ if (StringUtils.isNotBlank(problemImage)) { JSONArray jsonArray = JSONArray.parseArray(problemImage); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpChargingRecordServiceImpl.java
@@ -234,7 +234,7 @@ if (StringUtils.isNotBlank(vehiclePictures)) { JSONArray jsonArray = JSONArray.parseArray(vehiclePictures); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -253,7 +253,7 @@ if (StringUtils.isNotBlank(startChargingPicture)) { JSONArray jsonArray = JSONArray.parseArray(startChargingPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -272,7 +272,7 @@ if (StringUtils.isNotBlank(endChargingPicture)) { JSONArray jsonArray = JSONArray.parseArray(endChargingPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpTaskServiceImpl.java
@@ -437,7 +437,7 @@ if (StringUtils.isNotBlank(taskImage)) { JSONArray jsonArray = JSONArray.parseArray(taskImage); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; // 1 String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); jsonObject.put("url", downloadUrl); @@ -538,7 +538,7 @@ if (StringUtils.isNotBlank(taskImage)) { JSONArray jsonArray = JSONArray.parseArray(taskImage); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; // 1 String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); jsonObject.put("url", downloadUrl); @@ -590,7 +590,7 @@ if (StringUtils.isNotBlank(startChargingPicture)) { JSONArray jsonArray = JSONArray.parseArray(startChargingPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -613,7 +613,7 @@ if (StringUtils.isNotBlank(endChargingPicture)) { JSONArray jsonArray = JSONArray.parseArray(endChargingPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { //1 @@ -691,7 +691,7 @@ if (StringUtils.isNotBlank(startRepairPicture)) { JSONArray jsonArray = JSONArray.parseArray(startRepairPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -835,7 +835,7 @@ if (StringUtils.isNotBlank(SensorCleaningPicture)) { JSONArray jsonArray = JSONArray.parseArray(SensorCleaningPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject =(JSONObject)o; String downloadUrl = null; try { // 1 @@ -856,7 +856,7 @@ if (StringUtils.isNotBlank(InteractiveScreenPicture)) { JSONArray jsonArray = JSONArray.parseArray(InteractiveScreenPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -880,7 +880,7 @@ if (StringUtils.isNotBlank(HelpButtonPicture)) { JSONArray jsonArray = JSONArray.parseArray(HelpButtonPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject =(JSONObject)o; String downloadUrl = null; try { // 1 @@ -901,7 +901,7 @@ if (StringUtils.isNotBlank(PaymentFunctionPicture)) { JSONArray jsonArray = JSONArray.parseArray(PaymentFunctionPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -921,7 +921,7 @@ if (StringUtils.isNotBlank(SystemCheckPicture)) { JSONArray jsonArray = JSONArray.parseArray(SystemCheckPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject =(JSONObject)o; String downloadUrl = null; try { // 1 @@ -1028,7 +1028,7 @@ if (StringUtils.isNotBlank(taskImage)) { JSONArray jsonArray = JSONArray.parseArray(taskImage); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; // 1 String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); jsonObject.put("url", downloadUrl); @@ -1251,7 +1251,7 @@ if (StringUtils.isNotBlank(taskImage)) { JSONArray jsonArray = JSONArray.parseArray(taskImage); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -1598,7 +1598,7 @@ if (StringUtils.isNotBlank(SensorCleaningPicture)) { JSONArray jsonArray = JSONArray.parseArray(SensorCleaningPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -1620,7 +1620,7 @@ if (StringUtils.isNotBlank(InteractiveScreenPicture)) { JSONArray jsonArray = JSONArray.parseArray(InteractiveScreenPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -1640,7 +1640,7 @@ if (StringUtils.isNotBlank(HelpButtonPicture)) { JSONArray jsonArray = JSONArray.parseArray(HelpButtonPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -1660,7 +1660,7 @@ if (StringUtils.isNotBlank(PaymentFunctionPicture)) { JSONArray jsonArray = JSONArray.parseArray(PaymentFunctionPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -1681,7 +1681,7 @@ if (StringUtils.isNotBlank(SystemCheckPicture)) { JSONArray jsonArray = JSONArray.parseArray(SystemCheckPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpVehicleRepairServiceImpl.java
@@ -176,7 +176,7 @@ if (StringUtils.isNotBlank(RepairMoneyDetail)) { JSONArray jsonArray = JSONArray.parseArray(RepairMoneyDetail); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 @@ -197,7 +197,7 @@ if (StringUtils.isNotBlank(StartRepairPicture)) { JSONArray jsonArray = JSONArray.parseArray(StartRepairPicture); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject =(JSONObject)o; String downloadUrl = null; try { // 1 xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpBannerServiceImpl.java
@@ -2,6 +2,7 @@ import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @@ -50,16 +51,20 @@ vo.setId(item.getId()); vo.setJumpType(item.getJumpType()); vo.setJumpUrl(item.getJumpUrl()); JSONObject jsonObject = JSON.parseArray(item.getBannerPictures()).getJSONObject(0); String downloadUrl = null; try { // 1 downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); JSONArray jsonArray = JSONArray.parseArray(item.getBannerPictures()); for (Object o : jsonArray) { JSONObject jsonObject = (JSONObject) o; String downloadUrl = null; try { // 1 downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } jsonObject.put("url", downloadUrl); } jsonObject.put("url", downloadUrl); vo.setImageUrl(jsonObject.toJSONString()); vo.setImageUrl(JSONArray.toJSONString(jsonArray)); return vo; }).collect(Collectors.toList()); } @@ -71,16 +76,21 @@ PageInfo<XpBanner> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); List<XpBanner> list = this.baseMapper.pageList(pageInfo, query); for (XpBanner xpBanner : list) { JSONObject jsonObject = JSON.parseArray(xpBanner.getBannerPictures()).getJSONObject(0); String downloadUrl = null; try { // 1 downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); JSONArray jsonArray = JSONArray.parse(xpBanner.getBannerPictures()); for (Object o : jsonArray) { JSONObject jsonObject = (JSONObject) o; String downloadUrl = null; try { // 1 downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } jsonObject.put("url", downloadUrl); } jsonObject.put("url", downloadUrl); xpBanner.setBannerPictures(jsonObject.toJSONString()); xpBanner.setBannerPictures(JSONArray.toJSONString(jsonArray)); } pageInfo.setRecords(list); return pageInfo; xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpUserFeedbackServiceImpl.java
@@ -85,7 +85,7 @@ if (StringUtils.isNotBlank(feedbackPictures)) { JSONArray jsonArray = JSONArray.parseArray(feedbackPictures); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; String downloadUrl = null; try { // 1 xp-robotaxi-vehicle-convoy-boot/src/main/java/com/xiaopeng/vehicleConvoy/service/impl/XpVehicleAnnualRecordServiceImpl.java
@@ -61,7 +61,7 @@ if (StringUtils.isNotBlank(inspectionAttachments)) { JSONArray jsonArray = JSONArray.parseArray(inspectionAttachments); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; // 1 String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); jsonObject.put("url", downloadUrl); @@ -77,7 +77,7 @@ if (StringUtils.isNotBlank(operationQualification)) { JSONArray jsonArray = JSONArray.parseArray(operationQualification); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; // 1 String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); jsonObject.put("url", downloadUrl); @@ -90,7 +90,7 @@ if (StringUtils.isNotBlank(policyInformation)) { JSONArray jsonArray = JSONArray.parseArray(policyInformation); for (Object o : jsonArray) { JSONObject jsonObject = JSONObject.parseObject(o.toString()); JSONObject jsonObject = (JSONObject)o; // 1 String downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true); jsonObject.put("url", downloadUrl);