| | |
| | | import doumeemes.dao.ext.DepartmentExtMapper; |
| | | import doumeemes.dao.ext.dto.QueryCompanyUserExtDTO; |
| | | import doumeemes.dao.ext.dto.WxLoginDTO; |
| | | import doumeemes.dao.ext.dto.WxLoginOutDTO; |
| | | import doumeemes.dao.ext.vo.CompanyUserExtListVO; |
| | | import doumeemes.dao.ext.vo.WxLoginVO; |
| | | import doumeemes.dao.system.SystemUserMapper; |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未查询到绑定部门信息"); |
| | | } |
| | | Company company = companyExtMapper.selectById(department.getCompanyId()); |
| | | if(Objects.isNull(company)||company.getStatus().equals(Constants.ONE)){ |
| | | if(Objects.isNull(company)||company.getStatus().equals(Constants.ZERO)){ |
| | | wxLoginVO.setLoginStatus(Constants.ONE); |
| | | return wxLoginVO; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void wxLoginOut(WxLoginOutDTO wxLoginOutDTO) { |
| | | if(!Objects.isNull(wxLoginOutDTO)&&!Objects.isNull(wxLoginOutDTO.getCompanyUserId())){ |
| | | companyUserExtMapper.update(null,new UpdateWrapper<CompanyUser>() |
| | | .set("UNIONID","").set("OPENID","") |
| | | .eq("id",wxLoginOutDTO.getCompanyUserId()) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | } |