|  |  | 
 |  |  | import doumeemes.core.utils.Constants; | 
 |  |  | import doumeemes.core.utils.HttpsUtil; | 
 |  |  | import doumeemes.core.utils.Utils; | 
 |  |  | import doumeemes.dao.business.model.Company; | 
 |  |  | import doumeemes.dao.business.model.CompanyUser; | 
 |  |  | import doumeemes.dao.business.model.Department; | 
 |  |  | import doumeemes.dao.ext.CompanyExtMapper; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SystemLoginLogService systemLoginLogService; | 
 |  |  |     @Autowired | 
 |  |  |     private CompanyExtMapper companyExtMapper; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |         if(Objects.isNull(department)){ | 
 |  |  |             throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未查询到绑定部门信息"); | 
 |  |  |         } | 
 |  |  |         Company company = companyExtMapper.selectById(department.getCompanyId()); | 
 |  |  |         if(Objects.isNull(company)||company.getStatus().equals(Constants.ZERO)){ | 
 |  |  |             wxLoginVO.setLoginStatus(Constants.ONE); | 
 |  |  |             return wxLoginVO; | 
 |  |  |         } | 
 |  |  |         SystemUser systemUser = systemUserMapper.selectById(companyUser.getUserId()); | 
 |  |  |         //查询用户数据 | 
 |  |  |         LoginDTO dto = new LoginDTO(); | 
 |  |  | 
 |  |  |             wxLoginVO.setLoginStatus(Constants.ZERO); | 
 |  |  |             wxLoginVO.setSession(session); | 
 |  |  |             return wxLoginVO; | 
 |  |  |         }catch (BusinessException e) { | 
 |  |  |             wxLoginVO.setLoginStatus(Constants.ONE); | 
 |  |  |             return wxLoginVO; | 
 |  |  |         }catch (AuthenticationException e) { | 
 |  |  |             BusinessException ee = null; | 
 |  |  |             loginLog.setSuccess(Boolean.FALSE); |