提交 9488aca1 编写于 作者: hebao@lab.ibiz5.com's avatar hebao@lab.ibiz5.com

系统实体数据同步批量打下设置

上级 1f98e9dd
......@@ -19,6 +19,7 @@ import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.batch.MyBatisCursorItemReader;
import org.springframework.batch.item.ExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
......@@ -344,6 +345,8 @@ public class DbEntityService extends ServiceImpl<DbEntityMapper, EntityObj> impl
@Autowired
@Lazy
private SqlSessionFactory sqlSessionFactory;
@Value("${ibiz.syncBatchSize:500}")
private int processSize = 500;
@Override
public void processList(DataModel dataModel,Timestamp lastModify,LiteDataCallback callback)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册