|  |  | 
 |  |  | package com.dy.sso.busi; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
 |  |  | import com.dy.pipIrrGlobal.daoBa.BaCaptchaMapper; | 
 |  |  | import com.dy.pipIrrGlobal.daoBa.BaUserMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoBa.BaUser; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  |  | 
 |  |  | @Slf4j | 
 |  |  | @Service | 
 |  |  | public class SsoSv { | 
 |  |  |  | 
 |  |  |     private BaUserMapper baUserMapper; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  | 
 |  |  |         this.baUserMapper = baUserMapper ; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private BaCaptchaMapper baCaptchaMapper; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 需要BaUserMapper.xml | 
 |  |  | 
 |  |  |         return null ; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 得到所有用户手机号 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public List<String> getPhones(){ | 
 |  |  |         return baUserMapper.getPhones() ; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 依据验证码token获取验证字符 | 
 |  |  |      * @param token | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public Map getCodeByToken(String token) { | 
 |  |  |         return baCaptchaMapper.getCodeByToken(token); | 
 |  |  |     } | 
 |  |  | } |