@@ -198,10 +198,15 @@ public class DABuildExService extends DABuildServiceImpl {
ex.printStackTrace();
}
StringupdateSql="UPDATE ibzdabuild SET processed=(CASE WHEN processed is null then 0 else processed end+#{et.count}),lastruntime=CASE WHEN total <= processed THEN #{et.runtime} ELSE lastruntime END,"+
"BUILDSTATE=CASE WHEN total <= processed THEN 'FINISH' ELSE BUILDSTATE END WHERE buildid = #{et.engineId}";
StringupdateSql="UPDATE ibzdabuild SET processed=(CASE WHEN processed is null then 0 else processed end+#{et.count}) WHERE buildid = #{et.engineId}";
HashMap<String,Object>param=newHashMap<>();
param.put("count",engineMQMsg.getCount());
param.put("engineId",engineMQMsg.getEngineId());
this.execute(updateSql,param);
updateSql="UPDATE ibzdabuild SET lastruntime=#{et.runtime},"+
"BUILDSTATE='FINISH' WHERE buildid = #{et.engineId} and total <= processed";
@@ -154,10 +154,15 @@ public class RuleEngineExService extends RuleEngineServiceImpl {
ex.printStackTrace();
}
StringupdateSql="UPDATE ibzruleengine SET processed=(CASE WHEN processed is null then 0 else processed end+#{et.count}),lastruntime=CASE WHEN total <= processed THEN #{et.runtime} ELSE lastruntime END,"+
"EXECSTATE=CASE WHEN total <= processed THEN 'FINISH' ELSE EXECSTATE END WHERE engineid = #{et.engineId}";
StringupdateSql="UPDATE ibzruleengine SET processed=(CASE WHEN processed is null then 0 else processed end+#{et.count}) WHERE engineid = #{et.engineId}";
HashMap<String,Object>param=newHashMap<>();
param.put("count",engineMQMsg.getCount());
param.put("engineId",engineMQMsg.getEngineId());
this.execute(updateSql,param);
updateSql="UPDATE ibzruleengine SET lastruntime=#{et.runtime},"+
"EXECSTATE='FINISH' WHERE engineid = #{et.engineId} and total <= processed ";