|
@@ -1,7 +1,6 @@
|
|
|
package com.platform.api;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.github.pagehelper.PageInfo;
|
|
|
import com.platform.annotation.IgnoreAuth;
|
|
|
import com.platform.entity.*;
|
|
|
import com.platform.interceptor.AuthorizationInterceptor;
|
|
@@ -119,13 +118,11 @@ public class ApiBrandController extends ApiBaseAction {
|
|
|
case 11:
|
|
|
case 12:
|
|
|
case 13:
|
|
|
- params.put("type",type);
|
|
|
- Query query = new Query(params);
|
|
|
- List<BrandVo> list = recommendService.queryList(query).parallelStream().map(entity->{
|
|
|
+ List<BrandVo> list = zhiHouseService.queryRecomendsByType(type).parallelStream().map(entity->{
|
|
|
BrandVo vo = new BrandVo();
|
|
|
- vo.setName(entity.getTitle());
|
|
|
- vo.setId(entity.getConnectId().intValue());
|
|
|
- vo.setAppListPicUrl(entity.getImage());
|
|
|
+ vo.setName(entity.getString("title"));
|
|
|
+ vo.setId(entity.getInteger("connectId"));
|
|
|
+ vo.setAppListPicUrl(entity.getString("image"));
|
|
|
return vo;
|
|
|
}).collect(Collectors.toList());
|
|
|
return toResponsSuccess(new ApiPageUtils(list, 3, 3, 1));
|