|
|
|
@ -200,7 +200,17 @@ public class ParamBindServiceImpl implements ParamBindService {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void bindOne(Integer eqmid, Integer icdid) throws Exception {
|
|
|
|
|
@Override
|
|
|
|
|
public void generateParamindex() throws Exception {
|
|
|
|
|
List<Modev> modevList = modevRepository.findByIcdidIsNotNull();
|
|
|
|
|
if (!CollectionUtils.isEmpty(modevList)) {
|
|
|
|
|
for (Modev item : modevList) {
|
|
|
|
|
generateOne(item.getId(), item.getIcdid());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void generateOne(Integer eqmid, Integer icdid) throws Exception {
|
|
|
|
|
Optional<IcdConfigTypeInst> optionalInst = instRepository.findById(icdid);
|
|
|
|
|
if (!optionalInst.isPresent()) {
|
|
|
|
|
throw new Exception("未找到该ICD逻辑设备实例, eqmid=" + eqmid + ", icdid=" + icdid);
|
|
|
|
|