admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceTokenHWServiceImpl.java
@@ -6,6 +6,7 @@
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yeshi.fanli.dao.mybatis.push.DeviceTokenHWMapper;
import com.yeshi.fanli.entity.bus.user.UserInfo;
@@ -30,6 +31,7 @@
      return count == null ? 0 : count;
   }
   @Transactional
   @Override
   public void addDeviceToken(String token, String device, Long uid, int version) {
      if (StringUtil.isNullOrEmpty(device))
@@ -38,7 +40,7 @@
      if (uid != null && uid == 0)
         uid = null;
      List<DeviceTokenHW> list = deviceTokenHWMapper.selectByDevice(device);
      List<DeviceTokenHW> list = deviceTokenHWMapper.selectByDeviceForUpdate(device);
      if (list == null || list.size() == 0) {
         DeviceTokenHW deviceTokenHW = new DeviceTokenHW();
         deviceTokenHW.setDevice(device);