|
|
@ -9,6 +9,8 @@ import com.hw.ems.base.domain.BaseLineMonitor;
|
|
|
|
import com.hw.ems.base.mapper.BaseLineLossMapper;
|
|
|
|
import com.hw.ems.base.mapper.BaseLineLossMapper;
|
|
|
|
import com.hw.ems.base.mapper.BaseLineMonitorMapper;
|
|
|
|
import com.hw.ems.base.mapper.BaseLineMonitorMapper;
|
|
|
|
import com.hw.ems.base.service.IBaseLineMonitorService;
|
|
|
|
import com.hw.ems.base.service.IBaseLineMonitorService;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
@ -23,6 +25,8 @@ import java.util.stream.Collectors;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
public class BaseLineMonitorServiceImpl implements IBaseLineMonitorService {
|
|
|
|
public class BaseLineMonitorServiceImpl implements IBaseLineMonitorService {
|
|
|
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(BaseLineMonitorServiceImpl.class);
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private BaseLineMonitorMapper baseLineMonitorMapper;
|
|
|
|
private BaseLineMonitorMapper baseLineMonitorMapper;
|
|
|
|
|
|
|
|
|
|
|
@ -189,7 +193,7 @@ public class BaseLineMonitorServiceImpl implements IBaseLineMonitorService {
|
|
|
|
.anyMatch(parent -> info.getObjid().equals(parent.getParentId())))
|
|
|
|
.anyMatch(parent -> info.getObjid().equals(parent.getParentId())))
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
System.out.println("查询计量设备有子集的父级List异常:" + e.getMessage());
|
|
|
|
log.error("查询计量设备有子集的父级List异常:" + e.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|