|
|
@ -9,6 +9,7 @@ import com.yxt.oms.biz.func.commonmethod.CommonMethod; |
|
|
|
import com.yxt.oms.biz.func.commonmethod.DataRule; |
|
|
|
import com.yxt.oms.feign.goods.basebrandinfo.*; |
|
|
|
import com.yxt.oms.utils.OrgPathQuery; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -50,8 +51,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); |
|
|
|
} |
|
|
|
|
|
|
|