| | |
| | | |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | | import com.sandu.ximon.admin.param.InterphoneSubParam; |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.dao.bo.InterphoneHostBo; |
| | | import com.sandu.ximon.dao.bo.InterphoneSubBo; |
| | | import com.sandu.ximon.dao.domain.InterphoneSub; |
| | | import com.sandu.ximon.dao.mapper.InterphoneSubMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | |
| | | } |
| | | return byId; |
| | | } |
| | | |
| | | /** |
| | | * 查询主机列表 |
| | | */ |
| | | public List<InterphoneSubBo> getInterphoneSubList(String keyword) { |
| | | List<InterphoneSubBo> list; |
| | | if (SecurityUtils.getClientId() == null) { |
| | | list = interphoneSubMapper.getInterphoneSubList(keyword, null); |
| | | } else { |
| | | list = interphoneSubMapper.getInterphoneSubList(keyword, SecurityUtils.getUserId()); |
| | | } |
| | | return list; |
| | | } |
| | | } |