|
|
|
@ -113,11 +113,12 @@ public class ParamBindServiceImpl implements ParamBindService {
|
|
|
|
|
for (IcdConfigTypeAtt att : attList) {
|
|
|
|
|
if (StringUtils.isBlank(att.getColName())) {
|
|
|
|
|
msgList.add(att.getDoName() + "该属性还未配置绑定字段");
|
|
|
|
|
}
|
|
|
|
|
String paramindex = param + "$" + att.getLastName();
|
|
|
|
|
Optional<Rptparamindex> optionalRpt = rptparamindexRepository.findById(paramindex);
|
|
|
|
|
if (!optionalRpt.isPresent()) {
|
|
|
|
|
throw new Exception("未找到该Rptparamindex,对象参引=" + paramindex);
|
|
|
|
|
} else {
|
|
|
|
|
String paramindex = param + "$" + att.getLastName();
|
|
|
|
|
Optional<Rptparamindex> optionalRpt = rptparamindexRepository.findById(paramindex);
|
|
|
|
|
if (!optionalRpt.isPresent()) {
|
|
|
|
|
throw new Exception("未找到该Rptparamindex,对象参引=" + paramindex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -125,11 +126,11 @@ public class ParamBindServiceImpl implements ParamBindService {
|
|
|
|
|
if (StringUtils.isBlank(type.getTableName())) {
|
|
|
|
|
msgList.add("该ICD配置类型还未设置对应的tableName");
|
|
|
|
|
} else if (!type.getTableName().equals(modevType.getTablename())) {
|
|
|
|
|
msgList.add("该ICD配置类型的tableName和该监测装置类型的tableName不一致");
|
|
|
|
|
msgList.add("该ICD配置类型的tableName(" + type.getTableName() + ")和该监测装置类型的tableName(" + modevType.getTablename() + ")不一致");
|
|
|
|
|
}
|
|
|
|
|
if (msgList.size() > 0) {
|
|
|
|
|
String message = msgList.stream().collect(Collectors.joining(","));
|
|
|
|
|
resp.setErrorMsg(message);
|
|
|
|
|
String message = msgList.stream().collect(Collectors.joining("\n\r"));
|
|
|
|
|
resp.setWarnMsg(message);
|
|
|
|
|
}
|
|
|
|
|
return resp;
|
|
|
|
|
}
|
|
|
|
|