Commit 44af3e53 by 陶光胜

观云台小程序

parent 3082ed1d
......@@ -2,6 +2,8 @@ package com.gic.cloud.web.controller;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.AttentionStoreDTO;
import com.gic.cloud.service.StoreAttentionApiService;
import com.gic.cloud.web.auth.DataAuthUtils;
import com.gic.cloud.web.auth.OnLineAuth;
import com.gic.cloud.web.auth.OnLineStore;
......@@ -50,6 +52,8 @@ public class StoreWidgetController {
private ShopApiService shopApiService;
@Autowired
private WmStoreApiService wmStoreApiService;
@Autowired
private StoreAttentionApiService storeAttentionApiService;
@RequestMapping("store-widget-index")
public RestResponse storeWidgetIndex(Integer userId, Integer enterpriseId){
......@@ -86,6 +90,10 @@ public class StoreWidgetController {
this.getOnlineItems(onlineStoreAuth, items);
}
vo.setItems(items);
Page<AttentionStoreDTO> result = this.storeAttentionApiService.pageStoreAttention(userId, enterpriseId, 1, Integer.MAX_VALUE).getResult();
if(CollectionUtils.isNotEmpty(result.getResult())){
vo.setAttentionCount(result.getTotalCount());
}
return RestResponse.success(vo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment