| | |
| | | import com.sandu.ximon.admin.param.PoleGroupParam; |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.dao.domain.PoleGroup; |
| | | import com.sandu.ximon.dao.mapper.GroupMapper; |
| | | import com.sandu.ximon.dao.mapper.PoleGroupMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | /** |
| | | * 绑定灯杆 |
| | | */ |
| | | public boolean bindPole(Long groupId,List<Long> poleList) { |
| | | public boolean bindPole(Long groupId,List<Long> poleIdList) { |
| | | PoleGroup poleGroup = getById(groupId); |
| | | if (poleGroup == null) { |
| | | throw new BusinessException("未找到该分组"); |
| | | } |
| | | return poleGroupRelationService.saveBinding(groupId,poleList); |
| | | return poleGroupRelationService.saveBinding(groupId,poleIdList); |
| | | } |
| | | } |