From a9d64eb20fc006e4915631bd1496b050f399b798 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期三, 28 二月 2024 17:52:13 +0800
Subject: [PATCH] 三一车辆模型修改提交
---
ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarServiceImpl.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarServiceImpl.java b/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarServiceImpl.java
index 624076b..ea18e26 100644
--- a/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarServiceImpl.java
@@ -441,13 +441,15 @@
public Map<String, Object> getArdSyCarAndDeptByCarId(String carId) {
Map<String, Object> result = ardSyCarMapper.getArdSyCarAndDeptByCarId(carId);
if (result != null) {
- if (result.get("carPicture") != null) {
+ /*if (result.get("carPicture") != null) {
if (!((String) result.get("carPicture")).equals("")) {
- /*String url = ((String) result.get("carPicture")).split("sycar")[0];
- String carModel = url + (String) result.get("carModel");*/
String carModel = this.minioEndpoint + "/" + (String) result.get("carModel");
result.put("carModel", carModel);
}
+ }*/
+ if(result.get("carModel") != null || "".equals(result.get("carModel"))){
+ String carModel = this.minioEndpoint + "/" + (String) result.get("carModel");
+ result.put("carModel", carModel);
}
}
return result;
--
Gitblit v1.9.3