首页>代码>spring+spring mvc+hibernate开发在线答题系统>/WTS/src/wts-authority/src/main/java/com/farm/authority/AuthUtils.java
package com.farm.authority; import javax.servlet.http.HttpSession; import com.farm.authority.domain.Organization; import com.farm.authority.service.UserServiceInter; import com.farm.core.auth.domain.LoginUser; import com.farm.util.spring.BeanFactory; import com.farm.web.constant.FarmConstant; public class AuthUtils { public static Organization getCurrentOrganization(HttpSession session) { UserServiceInter users = (UserServiceInter) BeanFactory.getBean("userServiceImpl"); LoginUser user = (LoginUser) session.getAttribute(FarmConstant.SESSION_USEROBJ); return users.getOrg(user.getId()); } }
最近下载更多
pokerf LV5
3月10日
zmy10086 LV4
2023年3月15日
朱朱啊哈 LV16
2023年1月31日
weilaizhisheng LV21
2022年9月12日
38735466 LV11
2022年8月1日
孙龙52 LV6
2022年7月22日
1178995129 LV6
2022年6月24日
th784372 LV2
2022年5月7日
微信网友_5853711597064192 LV3
2022年3月21日
192939wz LV1
2022年2月20日