修改分页条数
parent
07436331f3
commit
880307cc01
|
@ -19,6 +19,11 @@
|
|||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-rule-server</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
|
|
|
@ -3,7 +3,6 @@ package com.muyu.task.server.service.impl;
|
|||
import com.muyu.common.domian.*;
|
||||
import com.muyu.common.domian.basic.abstracts.DataTaskAbstracts;
|
||||
import com.muyu.remote.feign.RuleFeign;
|
||||
import com.muyu.rule.common.basic.BasicEngine;
|
||||
import com.muyu.rule.common.domain.RuleEngineVersion;
|
||||
import com.muyu.task.server.service.*;
|
||||
import com.muyu.task.server.thread.OptimizedPrioritizedThreadPool;
|
||||
|
@ -367,9 +366,10 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
|
|||
/**
|
||||
* 存放实例化引擎的容器
|
||||
*/
|
||||
public static Map<String, BasicEngine<DataValue>> engineMap = new ConcurrentHashMap<>();
|
||||
public static Map<String, BasicEngine<DataValue[]>> engineRowMap = new ConcurrentHashMap<>();
|
||||
public static Map<String, BasicEngine<DataValue[][]>> engineDataSetMap = new ConcurrentHashMap<>();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void executeTheRule(DataValue[][] dataValues, HashMap<String, String> map, Long newBasicId,
|
||||
Long tableId, Long taskId) {
|
||||
|
@ -397,19 +397,10 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
|
|||
Callable<DataValue[][]> task = () -> {
|
||||
DataValue[][] prevResult = finalCurrentFuture.get();
|
||||
if (data.getRuleId().equals("3")) {
|
||||
BasicEngine<DataValue[][]> basicEngine = engineDataSetMap.get(data.getClassName());
|
||||
basicEngine.set(prevResult);
|
||||
basicEngine.execution();
|
||||
DataValue[][] dataValues1 = basicEngine.get();
|
||||
|
||||
}
|
||||
if (data.getRuleId().equals("1")) {
|
||||
for (DataValue[] values : prevResult) {
|
||||
for (DataValue value : values) {
|
||||
BasicEngine<DataValue> dataValueBasicEngine = engineMap.get(data.getClassName());
|
||||
dataValueBasicEngine.set(value);
|
||||
dataValueBasicEngine.execution();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return prevResult;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue