|
@@ -7,6 +7,7 @@ import java.util.Map;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
+import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -44,6 +45,7 @@ public class IndexController extends BaseController {
|
|
|
@Autowired
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
|
|
|
+ @Autowired
|
|
|
private SysUserCashAccountDetailDao sysUserCashAccountDetailDao;
|
|
|
|
|
|
@ApiOperation(value = "获取首页数据")
|
|
@@ -77,8 +79,19 @@ public class IndexController extends BaseController {
|
|
|
Integer demoGroupNum = demoGroupDao.queryCurrentMonthCoursesNum(organId);
|
|
|
|
|
|
Map<String, Object> incomeExpendMap = sysUserCashAccountDetailDao.queryStatistics();
|
|
|
+
|
|
|
+ ModelMap model = new ModelMap();
|
|
|
+ model.put("musicDatas", musicDatas);
|
|
|
+ model.put("teacherDatas", teacherDatas);
|
|
|
+ model.put("studentDatas", studentDatas);
|
|
|
+ model.put("vipDatas", vipDatas);
|
|
|
+ model.put("demoDatas", demoDatas);
|
|
|
+ model.put("musicGroupNum", musicGroupNum);
|
|
|
+ model.put("vipGroupNum", vipGroupNum);
|
|
|
+ model.put("demoGroupNum", demoGroupNum);
|
|
|
+ model.put("incomeExpendMap", incomeExpendMap);
|
|
|
|
|
|
- return succeed();
|
|
|
+ return succeed(model);
|
|
|
}
|
|
|
|
|
|
}
|