This commit is contained in:
2024-05-11 17:04:35 +08:00
parent 3bab50119e
commit 6394e8e12f

View File

@@ -74,6 +74,7 @@ public class GoodsSkuExtendService extends MybatisBaseService<GoodsSkuExtendMapp
BeanUtil.copyProperties(dto, wmsGoods);
wmsGoods.setModifyTime(new Date());
for (UrlsVo url : dto.getUrls()) {
wmsGoods.setPicUrl("");
String urlPrefix = fileUploadComponent.getUrlPrefix();
String path = url.getUrl().substring(urlPrefix.length());
if(StringUtils.isBlank(dto.getPicUrl())){
@@ -82,11 +83,6 @@ public class GoodsSkuExtendService extends MybatisBaseService<GoodsSkuExtendMapp
wmsGoods.setPicUrl(wmsGoods.getPicUrl()+","+path);
}
}
if (StringUtils.isNotBlank(dto.getPicUrl())) {
String urlPrefix = fileUploadComponent.getUrlPrefix();
String path = dto.getPicUrl().substring(urlPrefix.length());
wmsGoods.setPicUrl(path);
}
baseMapper.updateById(wmsGoods);
} else {