Authored by Lixiaodi

销售类目查询

... ... @@ -402,8 +402,6 @@ public class ProductController {
@ApiOperation(name = "ufo.product.saleCategory", desc="商品销售类目")
@IgnoreSignature
@IgnoreSession
@RequestMapping(params = "method=ufo.product.saleCategory")
@Cachable(expire = 180)
public ApiResponse querySaleCategory() {
... ...
... ... @@ -650,6 +650,9 @@ public class ProductServiceImpl implements ProductService{
}
private String buildSaleCategoryFullUrl(String url) {
if(StringUtils.isBlank(url)) {
return "";
}
if (!StringUtils.startsWith(url, "http")){
return ImagesHelper.template2(url, "salecategoryimg").replaceAll("extent\\/\\{width}x\\{height}\\/","");
}else{
... ... @@ -740,6 +743,6 @@ public class ProductServiceImpl implements ProductService{
sc.setLink(data.getLinkDetail());
sc.setImage(buildSaleCategoryFullUrl(data.getImageUrl()));
sc.setSub(new ArrayList<>());
return null;
return sc;
}
}
... ...
... ... @@ -27,6 +27,7 @@ datasources:
- com.yohoufo.dal.product.BrandSeriesMapper
- com.yohoufo.dal.product.ProductSortMapper
- com.yohoufo.dal.product.SearchWordMapper
- com.yohoufo.dal.product.SaleCategoryMapper
ufo_order:
servers:
... ...
... ... @@ -27,6 +27,7 @@ datasources:
- com.yohoufo.dal.product.BrandSeriesMapper
- com.yohoufo.dal.product.ProductSortMapper
- com.yohoufo.dal.product.SearchWordMapper
- com.yohoufo.dal.product.SaleCategoryMapper
ufo_order:
servers:
... ...