|
@@ -2,6 +2,7 @@ package com.usoftchina.bi.server.service.dashboard;
|
|
|
|
|
|
|
|
import com.usoftchina.bi.core.base.RepCode;
|
|
import com.usoftchina.bi.core.base.RepCode;
|
|
|
import com.usoftchina.bi.core.base.RepEntity;
|
|
import com.usoftchina.bi.core.base.RepEntity;
|
|
|
|
|
+import com.usoftchina.bi.core.utils.GetTokenDataUtil;
|
|
|
import com.usoftchina.bi.server.dao.dashboard.DashBoardMenuMapper;
|
|
import com.usoftchina.bi.server.dao.dashboard.DashBoardMenuMapper;
|
|
|
import com.usoftchina.bi.server.model.vo.configVo.DashBoardMenuInfo;
|
|
import com.usoftchina.bi.server.model.vo.configVo.DashBoardMenuInfo;
|
|
|
import com.usoftchina.bi.server.model.vo.configVo.DashBoardUpdateMenuInfo;
|
|
import com.usoftchina.bi.server.model.vo.configVo.DashBoardUpdateMenuInfo;
|
|
@@ -56,8 +57,9 @@ public class DashBoardMenuService {
|
|
|
dashBoardMenuMapper.updateDashBoardMenu(dashBoardUpdateMenuInfo);
|
|
dashBoardMenuMapper.updateDashBoardMenu(dashBoardUpdateMenuInfo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public RepEntity getDashBoardByMenuId(int menuId){
|
|
|
|
|
- return new RepEntity(RepCode.success, dashBoardMenuMapper.getDashBoardByMenuId(menuId));
|
|
|
|
|
|
|
+ public RepEntity getDashBoardByMenuId(String token, int menuId){
|
|
|
|
|
+ int userId = Integer.parseInt(GetTokenDataUtil.getTokenData(token).get("id"));
|
|
|
|
|
+ return new RepEntity(RepCode.success, dashBoardMenuMapper.getDashBoardByMenuId(userId, menuId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|