| | |
| | | ProviderAccountQuery query = new ProviderAccountQuery(); |
| | | query.id = obj.getId(); |
| | | query.state = obj.getState(); |
| | | query.name = obj.getAccountName(); |
| | | query.providerId = obj.getProviderId(); |
| | | query.appKey = obj.getAppKey(); |
| | | query.appSecret = obj.getAppSecret(); |
| | | query.appKey = obj.getAppKey(); |
| | | query.appSecret = obj.getAppSecret(); |
| | | return liJinProviderAccountMapper.count(query); |
| | | } |
| | | |
| | |
| | | ProviderAccountQuery query = new ProviderAccountQuery(); |
| | | query.id = obj.getId(); |
| | | query.state = obj.getState(); |
| | | query.name = obj.getAccountName(); |
| | | query.providerId = obj.getProviderId(); |
| | | query.appKey = obj.getAppKey(); |
| | | query.appSecret = obj.getAppSecret(); |
| | | query.appKey = obj.getAppKey(); |
| | | query.appSecret = obj.getAppSecret(); |
| | | query.start = (page - 1) * pageSize; |
| | | query.count = pageSize; |
| | | return liJinProviderAccountMapper.listByPage(query); |
| | |
| | | |
| | | |
| | | @Override |
| | | public List<LiJinProviderTaoKeAccount> listByProviderId(Long providerId) { |
| | | public List<LiJinProviderTaoKeAccount> listValidByProviderId(Long providerId, Integer errorCode) { |
| | | ProviderAccountQuery query = new ProviderAccountQuery(); |
| | | query.state =1; |
| | | query.state = 1; |
| | | query.providerId = providerId; |
| | | query.start = 0; |
| | | query.count = 1000; |
| | | query.errorCode = errorCode; |
| | | return liJinProviderAccountMapper.listByPage(query); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void insertSelective(LiJinProviderTaoKeAccount t){ |
| | | public void insertSelective(LiJinProviderTaoKeAccount t) { |
| | | liJinProviderAccountMapper.insertSelective(t); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByPrimaryKeySelective(LiJinProviderTaoKeAccount t){ |
| | | public void updateByPrimaryKeySelective(LiJinProviderTaoKeAccount t) { |
| | | liJinProviderAccountMapper.updateByPrimaryKeySelective(t); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | public LiJinProviderTaoKeAccount getByAppInfo(String appKey, String appSecret){ |
| | | public LiJinProviderTaoKeAccount getByAppInfo(String appKey, String appSecret) { |
| | | LiJinProviderTaoKeAccount obj = new LiJinProviderTaoKeAccount(); |
| | | obj.setAppKey(appKey); |
| | | obj.setAppSecret(appSecret); |
| | | obj.setState(1); |
| | | List<LiJinProviderTaoKeAccount> list = listByPage(0, 100, obj); |
| | | if (list ==null && list.size() == 0) { |
| | | if (list == null && list.size() == 0) { |
| | | return null; |
| | | } |
| | | return list.get(0); |