From 6d33f770806ef059629b94cf74cb48a09b86502c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 11 十月 2019 10:54:18 +0800 Subject: [PATCH] 抖音修改,饿了么初步集成,唯品会初步集成 --- fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceTokenOPPOServiceImpl.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceTokenOPPOServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceTokenOPPOServiceImpl.java index b6a77af..4e2c3f5 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceTokenOPPOServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceTokenOPPOServiceImpl.java @@ -48,6 +48,18 @@ } @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); } -- Gitblit v1.8.0