| | |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.dao.domain.InterphoneHost; |
| | | import com.sandu.ximon.dao.domain.InterphoneHostSubPole; |
| | | import com.sandu.ximon.dao.domain.InterphoneSub; |
| | | import com.sandu.ximon.dao.mapper.InterphoneHostSubPoleMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | InterphoneHostSubPole pole = new InterphoneHostSubPole(); |
| | | InterphoneHost host = SpringContextHolder.getBean(InterphoneHostService.class).getById(hostId); |
| | | InterphoneHost sub = SpringContextHolder.getBean(InterphoneHostService.class).getById(subId); |
| | | InterphoneSub sub = SpringContextHolder.getBean(InterphoneSubService.class).getById(subId); |
| | | if (host == null || sub == null) { |
| | | throw new BusinessException("主设备或子设备不存在"); |
| | | } |