| | |
| | | package com.yeshi.fanli.service.impl.push;
|
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void bindUid(Long uid, Long deviceActiveId) {
|
| | | DeviceTokenOPPO oldOppo = deviceTokenOPPOMapper.selectByDeviceActiveId(deviceActiveId);
|
| | | if (oldOppo != null) {
|
| | | DeviceTokenOPPO update = new DeviceTokenOPPO();
|
| | | update.setId(oldOppo.getId());
|
| | | update.setUid(uid);
|
| | | update.setUpdateTime(new Date());
|
| | | deviceTokenOPPOMapper.updateByPrimaryKeySelective(update);
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countDeviceToken(List<Integer> versionList) {
|
| | | return deviceTokenOPPOMapper.countDeviceToken(versionList);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<DeviceTokenOPPO> listDeviceToken(int page, int pageSize, List<Integer> versionList) {
|
| | | return deviceTokenOPPOMapper.listDeviceToken((page - 1) * pageSize, pageSize, versionList);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<DeviceTokenOPPO> listByUid(Long uid, List<Integer> verisonList) {
|
| | | return deviceTokenOPPOMapper.listByUid(uid, verisonList);
|
| | | }
|
| | |
|
| | | }
|