Commit 951be25e by 陶光胜

观云台小程序

parent b33d8aed
......@@ -54,6 +54,8 @@ public class StoreWidgetController {
private WmStoreApiService wmStoreApiService;
@Autowired
private StoreAttentionApiService storeAttentionApiService;
@Autowired
private StoreSearchUtils storeSearchUtils;
@RequestMapping("store-widget-index")
public RestResponse storeWidgetIndex(Integer userId, Integer enterpriseId){
......@@ -352,8 +354,10 @@ public class StoreWidgetController {
}
@RequestMapping("get-store-count")
public RestResponse getStoreCount(String searchJSON){
return RestResponse.success(1);
public RestResponse getStoreCount(String searchJSON, Integer userId, Integer enterpriseId){
List<Integer> list = this.storeSearchUtils.storeSearch(userId, enterpriseId, searchJSON);
List<String> stringList = this.storeSearchUtils.onLineStoreSearch(userId, enterpriseId, searchJSON);
return RestResponse.success(list.size() + stringList.size());
}
private Map<Integer, StoreGroupVo> mapStoreGroup(Integer enterpriseId){
......
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