|
|
@ -9,12 +9,15 @@ import com.yxt.wms.biz.func.commonmethod.CommonMethod; |
|
|
|
import com.yxt.wms.biz.func.commonmethod.DataRule; |
|
|
|
import com.yxt.wms.feign.base.basebrandinfo.*; |
|
|
|
import com.yxt.wms.utils.OrgPathQuery; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import static org.aspectj.weaver.tools.cache.SimpleCacheFactory.path; |
|
|
|
|
|
|
|
/** |
|
|
|
* @author wangpengfei |
|
|
|
* @date 2024/2/26 13:40 |
|
|
@ -51,8 +54,10 @@ public class BaseBrandInfoService extends MybatisBaseService<BaseBrandInfoMapper |
|
|
|
} |
|
|
|
public ResultBean<String> saveOrUpdate(BaseBrandInfoDto dto) { |
|
|
|
String urlPrefix = fileUploadComponent.getUrlPrefix(); |
|
|
|
String path = dto.getImage().substring(urlPrefix.length()); |
|
|
|
dto.setImage(path); |
|
|
|
if (StringUtils.isNotBlank(dto.getImage())){ |
|
|
|
String path = dto.getImage().substring(urlPrefix.length()); |
|
|
|
dto.setImage(path); |
|
|
|
} |
|
|
|
return baseBrandInfoFeign.saveOrUpdate(dto); |
|
|
|
} |
|
|
|
|
|
|
|