| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | /** |
| | | * 批量获取阿里云设备的状态 |
| | | * |
| | | * @param deviceCodeList 阿里云设备码 |
| | | * @return 设备状态列表 |
| | | */ |
| | |
| | | } |
| | | return statusList; |
| | | } |
| | | |
| | | /** |
| | | * 用户绑定灯杆 |
| | | * |
| | | * @param clientId 用户ID |
| | | * @param poleId 灯杆ID |
| | | * @return |
| | | */ |
| | | public boolean ClientBindingPole(long clientId, int poleId) { |
| | | Pole pole = getById(poleId); |
| | | if (pole == null) { |
| | | throw new BusinessException("灯杆不存在"); |
| | | } |
| | | pole.setClientId(clientId); |
| | | |
| | | return updateById(pole); |
| | | } |
| | | } |