feat: 添加VendorGroupRequireFileTypeVo及相关服务功能
refactor: 重构多个服务类和方法,优化代码结构 fix: 修复PermissionVo中code字段更名为key的问题 docs: 更新create_vo.md文档,添加新创建的VO记录 perf: 优化WebSocketClientService中的session关闭逻辑 style: 清理无用导入和注释,统一代码格式
This commit is contained in:
@@ -251,12 +251,13 @@ public class UITools {
|
||||
public static <T extends IdentityEntity, TV extends IdentityViewModel<T>> AutoCompletionBinding<T> autoCompletion(
|
||||
TextField textField, ObjectProperty<Integer> idProperty, QueryService<T, TV> queryService) {
|
||||
Integer id = idProperty.get();
|
||||
T entity = queryService.findById(id);
|
||||
|
||||
StringConverter<T> converter = queryService.getStringConverter();
|
||||
if (id != null) {
|
||||
T entity = queryService.findById(id);
|
||||
// 先赋值
|
||||
textField.textProperty().set(converter.toString(entity));
|
||||
}
|
||||
|
||||
// 先赋值
|
||||
textField.textProperty().set(converter.toString(entity));
|
||||
// 监听 property 变化
|
||||
idProperty.addListener((observable, oldValue, newValue) -> {
|
||||
T newEntity = queryService.findById(newValue);
|
||||
|
||||
Reference in New Issue
Block a user