|
@@ -4,6 +4,7 @@ import com.community.commom.mode.ResponseBean;
|
4
|
4
|
import com.community.commom.session.UserElement;
|
5
|
5
|
import com.community.huiju.common.base.BaseController;
|
6
|
6
|
import com.community.huiju.service.IndexCountServiceI;
|
|
7
|
+import com.google.common.collect.Maps;
|
7
|
8
|
import io.swagger.annotations.ApiImplicitParam;
|
8
|
9
|
import io.swagger.annotations.ApiImplicitParams;
|
9
|
10
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -35,12 +36,14 @@ public class IndexCountController extends BaseController {
|
35
|
36
|
public ResponseBean getIndexCount(HttpSession session){
|
36
|
37
|
UserElement userElement = getUserElement(session);
|
37
|
38
|
ResponseBean responseBean = new ResponseBean();
|
|
39
|
+ Map<String,Object> indexCountMap = Maps.newHashMap();
|
38
|
40
|
try {
|
39
|
|
- Map<String,Object> indexCountMap = indexCountService.getIndexCount(userElement);
|
|
41
|
+ indexCountMap = indexCountService.getIndexCount(userElement);
|
40
|
42
|
}catch (Exception e){
|
41
|
43
|
responseBean.addError(e.getMessage());
|
42
|
44
|
return responseBean;
|
43
|
45
|
}
|
|
46
|
+ responseBean.addSuccess(indexCountMap);
|
44
|
47
|
return responseBean;
|
45
|
48
|
}
|
46
|
49
|
}
|