|  |  | 
 |  |  | import com.github.pagehelper.PageInfo; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.util.ObjectUtils; | 
 |  |  | import org.springframework.util.StringUtils; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public boolean checkPushAuthority(String callId, String sign) { | 
 |  |  |         if (StringUtils.isEmpty(callId)) { | 
 |  |  |         if (ObjectUtils.isEmpty(callId)) { | 
 |  |  |             return userMapper.checkPushAuthorityByCallId(sign).size() > 0; | 
 |  |  |         }else { | 
 |  |  |             return userMapper.checkPushAuthorityByCallIdAndSign(callId, sign).size() > 0; | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public int resetPushKey(int id) { | 
 |  |  |         return userMapper.resetPushKey(id); | 
 |  |  |     public int changePushKey(int id, String pushKey) { | 
 |  |  |         return userMapper.changePushKey(id,pushKey); | 
 |  |  |     } | 
 |  |  | } |