diff --git a/stdiet-common/src/main/java/com/stdiet/common/utils/oss/AliyunOSSUtils.java b/stdiet-common/src/main/java/com/stdiet/common/utils/oss/AliyunOSSUtils.java index 0b77da830..0a5b163b1 100644 --- a/stdiet-common/src/main/java/com/stdiet/common/utils/oss/AliyunOSSUtils.java +++ b/stdiet-common/src/main/java/com/stdiet/common/utils/oss/AliyunOSSUtils.java @@ -3,6 +3,7 @@ package com.stdiet.common.utils.oss; import com.aliyun.oss.model.GetObjectRequest; import com.aliyun.oss.model.OSSObject; import com.stdiet.common.config.AliyunOSSConfig; +import com.stdiet.common.utils.StringUtils; import com.stdiet.common.utils.file.FileUtils; import org.springframework.web.multipart.MultipartFile; @@ -233,6 +234,9 @@ public class AliyunOSSUtils { * @return */ public static String generatePresignedUrl(String fileUrl){ + if(StringUtils.isEmpty(fileUrl)) { + return null; + } // 创建OSSClient实例。 OSS ossClient = getOssClient(); diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysCustomerMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysCustomerMapper.xml index 4e4c7bab9..89ef8a168 100644 --- a/stdiet-custom/src/main/resources/mapper/custom/SysCustomerMapper.xml +++ b/stdiet-custom/src/main/resources/mapper/custom/SysCustomerMapper.xml @@ -35,8 +35,15 @@ diff --git a/stdiet-ui/src/views/custom/customer/index.vue b/stdiet-ui/src/views/custom/customer/index.vue index e2484bd46..127446616 100644 --- a/stdiet-ui/src/views/custom/customer/index.vue +++ b/stdiet-ui/src/views/custom/customer/index.vue @@ -7,24 +7,16 @@ v-show="showSearch" label-width="86px" > - + - - - + - + + + + + + + + + - 搜索