|
|
|
@ -100,6 +100,13 @@ public class IcdFileConfigServiceImpl implements IcdFileConfigService {
|
|
|
|
|
throw new Exception("未找到该项");
|
|
|
|
|
}
|
|
|
|
|
IcdConfigType r = optional.get();
|
|
|
|
|
if (r.getTableName() != null && !r.getTableName().equals(item.getTableName())) {
|
|
|
|
|
List<IcdConfigTypeAtt> attList = attRepository.findByIcdConfigTypeId(r.getId());
|
|
|
|
|
for (IcdConfigTypeAtt att : attList) {
|
|
|
|
|
att.setColName(null);
|
|
|
|
|
}
|
|
|
|
|
attRepository.saveAll(attList);
|
|
|
|
|
}
|
|
|
|
|
r.setTableName(item.getTableName());
|
|
|
|
|
repository.save(r);
|
|
|
|
|
}
|
|
|
|
|