| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ltkj.db.DataSourceContextHolder; |
| | | import com.ltkj.framework.web.service.TokenService; |
| | |
| | | public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) |
| | | throws IOException, ServletException { |
| | | String hospId = request.getHeader("hospId"); |
| | | if (StrUtil.isBlank(hospId) || hospId.equals("undefined")){ |
| | | ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.success("退出成功"))); |
| | | return; |
| | | } |
| | | LambdaQueryWrapper<DictHosp> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(DictHosp::getCode,hospId); |
| | | DictHosp hosp = hospService.getOne(wrapper); |