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

构建和规则引擎bug修复及达梦数据库驱动升级(解决游标报错)

上级 c05b6522
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
<!--达梦数据库--> <!--达梦数据库-->
<dependency> <dependency>
<groupId>com.dameng</groupId> <groupId>com.dameng</groupId>
<artifactId>Dm7JdbcDriver17</artifactId> <artifactId>Dm8JdbcDriver18</artifactId>
<version>7.6.0.165</version> <version>8.1.1.49</version>
</dependency> </dependency>
......
...@@ -133,9 +133,12 @@ public class DABuildExService extends DABuildServiceImpl { ...@@ -133,9 +133,12 @@ public class DABuildExService extends DABuildServiceImpl {
liteDataService.processDataModel(et.getModelId(), et.getLastRuntime(), new LiteDataCallback<List<EntityObj>>() { liteDataService.processDataModel(et.getModelId(), et.getLastRuntime(), new LiteDataCallback<List<EntityObj>>() {
@Override @Override
public void total(Integer total) { public void total(Integer total) {
String state = "FINISH";
if(total > 0)
state = "RUNNING";
et.setTotal(total); et.setTotal(total);
et.setProcessed(0); et.setProcessed(0);
et.setState("RUNNING"); et.setState(state);
update(et); update(et);
} }
......
...@@ -97,9 +97,12 @@ public class RuleEngineExService extends RuleEngineServiceImpl { ...@@ -97,9 +97,12 @@ public class RuleEngineExService extends RuleEngineServiceImpl {
liteDataService.processDataModel(et.getModelId(), et.getLastRuntime(), new LiteDataCallback<List<EntityObj>>() { liteDataService.processDataModel(et.getModelId(), et.getLastRuntime(), new LiteDataCallback<List<EntityObj>>() {
@Override @Override
public void total(Integer total) { public void total(Integer total) {
String state = "FINISH";
if(total > 0)
state = "RUNNING";
et.setTotal(total); et.setTotal(total);
et.setProcessed(0); et.setProcessed(0);
et.setState("RUNNING"); et.setState(state);
update(et); update(et);
} }
......
...@@ -169,6 +169,11 @@ public class DbEntityService extends ServiceImpl<DbEntityMapper, EntityObj> impl ...@@ -169,6 +169,11 @@ public class DbEntityService extends ServiceImpl<DbEntityMapper, EntityObj> impl
callback.total(total); callback.total(total);
//没有业务数据时,不进行后续操作
if(total == 0){
return;
}
MyBatisCursorItemReader myMyBatisCursorItemReader =new MyBatisCursorItemReader(); MyBatisCursorItemReader myMyBatisCursorItemReader =new MyBatisCursorItemReader();
try{ try{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册