商品
This commit is contained in:
@@ -74,6 +74,7 @@ public class GoodsSkuExtendService extends MybatisBaseService<GoodsSkuExtendMapp
|
|||||||
BeanUtil.copyProperties(dto, wmsGoods);
|
BeanUtil.copyProperties(dto, wmsGoods);
|
||||||
wmsGoods.setModifyTime(new Date());
|
wmsGoods.setModifyTime(new Date());
|
||||||
for (UrlsVo url : dto.getUrls()) {
|
for (UrlsVo url : dto.getUrls()) {
|
||||||
|
wmsGoods.setPicUrl("");
|
||||||
String urlPrefix = fileUploadComponent.getUrlPrefix();
|
String urlPrefix = fileUploadComponent.getUrlPrefix();
|
||||||
String path = url.getUrl().substring(urlPrefix.length());
|
String path = url.getUrl().substring(urlPrefix.length());
|
||||||
if(StringUtils.isBlank(dto.getPicUrl())){
|
if(StringUtils.isBlank(dto.getPicUrl())){
|
||||||
@@ -82,11 +83,6 @@ public class GoodsSkuExtendService extends MybatisBaseService<GoodsSkuExtendMapp
|
|||||||
wmsGoods.setPicUrl(wmsGoods.getPicUrl()+","+path);
|
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);
|
baseMapper.updateById(wmsGoods);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user