|
|
|
|
@ -40,15 +40,9 @@ public interface ProductSpuConvert {
|
|
|
|
|
})
|
|
|
|
|
ProductSpuBO convert(ProductSpuDO spu);
|
|
|
|
|
|
|
|
|
|
@Named("translatePicUrlsFromString")
|
|
|
|
|
default List<String> translatePicUrlsFromString(String picUrls) {
|
|
|
|
|
return StringUtil.split(picUrls, ",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Mappings({})
|
|
|
|
|
List<ProductSpuBO> convert(List<ProductSpuDO> spus);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Mappings({
|
|
|
|
|
@Mapping(source = "picUrls", target = "picUrls", ignore = true)
|
|
|
|
|
})
|
|
|
|
|
@ -131,4 +125,9 @@ public interface ProductSpuConvert {
|
|
|
|
|
return spuDetailList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Named("translatePicUrlsFromString")
|
|
|
|
|
default List<String> translatePicUrlsFromString(String picUrls) {
|
|
|
|
|
return StringUtil.split(picUrls, ",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|