|
@@ -72,8 +72,11 @@ public class StationService {
|
|
|
}
|
|
|
|
|
|
public StationVO getStationInfo(Long stationId) {
|
|
|
- StationVO vo = new StationVO();
|
|
|
CareStation stationInfo = this.careStationService.getById(stationId);
|
|
|
+ if(stationInfo == null){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ StationVO vo = new StationVO();
|
|
|
BeanUtil.copyProperties(stationInfo,vo);
|
|
|
QueryWrapper<CareDevice> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.lambda().eq(CareDevice::getStationId,stationId);
|