feat(service): 新增QueryService接口实现,支持通用查询功能 docs(util): 完善ProxyUtils工具类的注释说明 fix(model): 修复CustomerCatalog实现IdentityEntity接口 style: 优化代码格式和导入顺序 perf(util): 提升FileUtils工具类功能,新增文件处理方法 chore: 更新README.md文件,补充UI资源路径说明 build: 更新pom.xml文件中的mainClass配置 test: 调整测试类命名和路径 ci: 更新CI配置文件中的类引用 refactor(controller): 重构表格单元格异步更新逻辑 docs(constant): 新增常量定义和注释 style: 统一代码风格和命名规范 refactor(service): 重构服务类继承关系 perf(controller): 优化表格数据加载性能 fix(service): 修复文件类型服务缓存问题 docs(model): 完善视图模型类注释 refactor(util): 重构文件工具类方法 style: 清理无用导入和代码 chore: 更新.gitignore文件 build: 调整项目依赖配置 refactor(controller): 重构控制器基类 perf(service): 优化查询服务性能 fix(controller): 修复表格数据加载异常 docs: 更新代码注释和文档 style: 统一代码缩进和格式
47 lines
1.4 KiB
Java
47 lines
1.4 KiB
Java
package com.ecep.contract.vm;
|
|
|
|
import com.ecep.contract.model.SysConf;
|
|
import javafx.beans.property.SimpleObjectProperty;
|
|
import javafx.beans.property.SimpleStringProperty;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.util.Objects;
|
|
|
|
public class SysConfViewModel extends BaseViewModel<SysConf> {
|
|
private SimpleStringProperty id = new SimpleStringProperty();
|
|
private SimpleStringProperty value = new SimpleStringProperty();
|
|
private SimpleObjectProperty<LocalDateTime> modified = new SimpleObjectProperty<>();
|
|
private SimpleObjectProperty<LocalDateTime> created = new SimpleObjectProperty<>();
|
|
|
|
@Override
|
|
protected void updateFrom(SysConf v) {
|
|
super.updateFrom(v);
|
|
id.set(v.getId());
|
|
value.set(v.getValue());
|
|
modified.set(v.getModified());
|
|
created.set(v.getCreated());
|
|
}
|
|
|
|
@Override
|
|
public boolean copyTo(SysConf v) {
|
|
boolean ret = super.copyTo(v);
|
|
if (!Objects.equals(id.get(), v.getId())) {
|
|
v.setId(id.get());
|
|
ret = true;
|
|
}
|
|
if (!Objects.equals(value.get(), v.getValue())) {
|
|
v.setValue(value.get());
|
|
ret = true;
|
|
}
|
|
if (!Objects.equals(modified.get(), v.getModified())) {
|
|
v.setModified(modified.get());
|
|
ret = true;
|
|
}
|
|
if (!Objects.equals(created.get(), v.getCreated())) {
|
|
v.setCreated(created.get());
|
|
ret = true;
|
|
}
|
|
return ret;
|
|
}
|
|
}
|