|
@@ -2,7 +2,9 @@ package com.yc.education.controller.admin;
|
|
|
|
|
|
import com.yc.education.controller.BaseController;
|
|
|
import com.yc.education.model.Admins;
|
|
|
+import com.yc.education.model.Feedback;
|
|
|
import com.yc.education.service.AdminsService;
|
|
|
+import com.yc.education.service.IFeedBackService;
|
|
|
import com.yc.education.util.AjaxMessage;
|
|
|
import com.yc.education.util.AppConst;
|
|
|
import com.yc.education.util.SM4;
|
|
@@ -37,6 +39,8 @@ public class AdminsBackController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private AdminsService adminsService;
|
|
|
+ @Autowired
|
|
|
+ IFeedBackService iFeedBackService; //留言回复
|
|
|
|
|
|
/**
|
|
|
* 跳转到后台管理登录页面 Lock-玄清
|
|
@@ -106,6 +110,12 @@ public class AdminsBackController extends BaseController {
|
|
|
ModelAndView result = new ModelAndView("admin/index");
|
|
|
request.getSession().setAttribute(AppConst.Session_Admin, admin);
|
|
|
result.addObject("admin", admin);
|
|
|
+ List<Feedback> feedbackList = iFeedBackService.listFeedBackInfo(null,"0",1,Integer.MAX_VALUE);
|
|
|
+ if(feedbackList != null){
|
|
|
+ result.addObject("unread", feedbackList.size());
|
|
|
+ }else{
|
|
|
+ result.addObject("unread", 0);
|
|
|
+ }
|
|
|
return result;
|
|
|
}else{
|
|
|
ModelAndView result = new ModelAndView("admin/login");
|