- 更新了多个类中的导入语句,替换了模型类为对应的VO类 - 优化了部分方法的参数和返回类型,使用VO类替代模型类 - 重构了自动补全功能,使用统一的泛型方法 - 添加了缓存注解,提高了数据访问性能 - 优化了部分代码结构,提高了可维护性
34 lines
992 B
Java
34 lines
992 B
Java
package com.ecep.contract.task;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import com.ecep.contract.MessageHolder;
|
|
import com.ecep.contract.constant.CloudServiceConstant;
|
|
import com.ecep.contract.vo.CompanyVo;
|
|
|
|
import lombok.Setter;
|
|
|
|
/**
|
|
* 合并更新
|
|
*/
|
|
public class CompanyCompositeUpdateTasker extends Tasker<Object> {
|
|
private static final Logger logger = LoggerFactory.getLogger(CompanyCompositeUpdateTasker.class);
|
|
@Setter
|
|
private CompanyVo company;
|
|
|
|
@Override
|
|
protected Object execute(MessageHolder holder) throws Exception {
|
|
updateTitle("合并更新 " + company.getName());
|
|
|
|
holder.debug("1. 从 " + CloudServiceConstant.RK_NAME + " 更新...");
|
|
updateProgress(0.1, 1);
|
|
holder.debug("2. 从 " + CloudServiceConstant.U8_NAME + " 更新...");
|
|
updateProgress(0.3, 1);
|
|
holder.debug("3. 从 " + CloudServiceConstant.TYC_NAME + " 更新...");
|
|
updateProgress(1, 1);
|
|
return null;
|
|
}
|
|
|
|
}
|