From ca0e816fe57482b8f43f22f7a0b6fe7c57a53f42 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期三, 01 七月 2020 11:12:17 +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