feat(u8): 添加用友U8配置窗口和数据迁移功能
新增用友U8配置窗口,支持日期和文本配置项的编辑与保存。实现从CloudInfo到CloudYu的数据迁移任务,优化任务执行方式。重构多个同步任务类继承Tasker基类,统一任务处理逻辑。扩展YongYouU8Service功能,添加配置相关接口。调整UI布局和菜单项,增加配置入口。 refactor: 重命名CompanyTableCell为EmployeeRoleTableCell style: 清理无用导入和格式化代码 fix: 修复ContractTypeSyncTask中分类和方向字段设置错误
This commit is contained in:
@@ -78,7 +78,11 @@ public enum ContractFileType {
|
||||
/**
|
||||
* 重大项目决策记录单
|
||||
*/
|
||||
CriticalProjectDecisionRecord(true, true)
|
||||
CriticalProjectDecisionRecord(true, true),
|
||||
/**
|
||||
* 顾客满意度调查表
|
||||
*/
|
||||
CustomerSatisfactionSurvey(true, false),
|
||||
;
|
||||
|
||||
final boolean supportCustomer;
|
||||
|
||||
@@ -22,6 +22,7 @@ public class BankStringConverter extends EntityStringConverter<Bank> {
|
||||
|
||||
@PostConstruct
|
||||
private void init() {
|
||||
// #2
|
||||
setInitialized(project -> service.findById(project.getId()));
|
||||
setSuggestion(service::search);
|
||||
setFromString(service::findByName);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.ecep.contract.manager.ds.other.service;
|
||||
|
||||
import com.ecep.contract.manager.ds.other.model.SysConf;
|
||||
import com.ecep.contract.manager.ds.other.repository.SysConfRepository;
|
||||
import java.time.Instant;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cache.annotation.CacheConfig;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
@@ -9,7 +9,8 @@ import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.Instant;
|
||||
import com.ecep.contract.manager.ds.other.model.SysConf;
|
||||
import com.ecep.contract.manager.ds.other.repository.SysConfRepository;
|
||||
|
||||
@Lazy
|
||||
@Service
|
||||
@@ -22,6 +23,11 @@ public class SysConfService {
|
||||
return repository.findById(key).orElse(null);
|
||||
}
|
||||
|
||||
@CacheEvict(key = "#p0.id")
|
||||
public SysConf save(SysConf conf) {
|
||||
return repository.save(conf);
|
||||
}
|
||||
|
||||
@CacheEvict(key = "#p0")
|
||||
public SysConf set(String key, String value) {
|
||||
SysConf conf = findById(key);
|
||||
|
||||
Reference in New Issue
Block a user