|
|
@ -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 { |
|
|
|