@@ -321,7 +321,7 @@ public class RuleEngineExService extends RuleEngineServiceImpl {
log.error("构建数据错误:%1$s",ex.getMessage());
}
StringupdateSql="UPDATE `ibzruleengine` SET processed=(IFNULL(processed,0)+#{et.count}),lastruntime=CASE WHEN total = processed THEN #{et.runtime} ELSE lastruntime END WHERE engineid = #{et.engineId}";
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 WHERE engineid = #{et.engineId}";