فهرست منبع

解决查询不到通道的bug

jishenghua 9 ماه پیش
والد
کامیت
48c1323bcf

+ 2 - 2
gyj-iot-boot/gyjiot-server/sip-server/src/main/java/com/gyjiot/sip/service/impl/SipDeviceChannelServiceImpl.java

@@ -88,13 +88,13 @@ public class SipDeviceChannelServiceImpl implements ISipDeviceChannelService {
      */
      */
     @Override
     @Override
     public List<SipDeviceChannel> selectSipDeviceChannelList(SipDeviceChannel sipDeviceChannel) {
     public List<SipDeviceChannel> selectSipDeviceChannelList(SipDeviceChannel sipDeviceChannel) {
-        SysUser user = getLoginUser().getUser();
+//        SysUser user = getLoginUser().getUser();
 //        List<SysRole> roles=user.getRoles();
 //        List<SysRole> roles=user.getRoles();
         // 租户
         // 租户
 //        if(roles.stream().anyMatch(a->a.getRoleKey().equals("tenant"))){
 //        if(roles.stream().anyMatch(a->a.getRoleKey().equals("tenant"))){
 //            sipDeviceChannel.setTenantId(user.getUserId());
 //            sipDeviceChannel.setTenantId(user.getUserId());
 //        }
 //        }
-        sipDeviceChannel.setTenantId(user.getUserId());
+//        sipDeviceChannel.setTenantId(user.getUserId());
         List<SipDeviceChannel> list = sipDeviceChannelMapper.selectSipDeviceChannelList(sipDeviceChannel);
         List<SipDeviceChannel> list = sipDeviceChannelMapper.selectSipDeviceChannelList(sipDeviceChannel);
         List<SipDeviceChannel> newList = new ArrayList<>();
         List<SipDeviceChannel> newList = new ArrayList<>();
         if (list != null && list.size() > 0) {
         if (list != null && list.size() > 0) {