商品
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user