修改分页条数
parent
8de16c3ef8
commit
635e3f5d01
|
@ -1,14 +1,19 @@
|
||||||
package com.muyu.remote.feign;
|
package com.muyu.remote.feign;
|
||||||
|
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.muyu.common.core.domain.Result;
|
||||||
|
import com.muyu.common.domain.DataValue;
|
||||||
import com.muyu.remote.feign.Factory.RuleFactory;
|
import com.muyu.remote.feign.Factory.RuleFactory;
|
||||||
import com.muyu.rule.common.domain.RuleEngineVersion;
|
import com.muyu.rule.common.domain.RuleEngineVersion;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
||||||
@FeignClient(value = "cloud-etl-rule",fallbackFactory= RuleFactory.class)
|
@FeignClient(value = "cloud-etl-rule",fallbackFactory= RuleFactory.class)
|
||||||
public interface RuleFeign {
|
public interface RuleFeign {
|
||||||
@PostMapping("/version/findVersionById/{id}")
|
@PostMapping("/version/findVersionById/{id}")
|
||||||
public Result<RuleEngineVersion> findVersionById(@PathVariable("id") Long id);
|
public Result<RuleEngineVersion> findVersionById(@PathVariable("id") Long id);
|
||||||
|
@PostMapping("/version/testEngine/{className}")
|
||||||
|
public Result testEngine(@PathVariable("className") String className,@RequestBody DataValue dataValue);
|
||||||
}
|
}
|
||||||
|
|
|
@ -398,6 +398,7 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
|
||||||
log.info(finalCurrentFuture);
|
log.info(finalCurrentFuture);
|
||||||
Callable<DataValue[][]> task = () -> {
|
Callable<DataValue[][]> task = () -> {
|
||||||
DataValue[][] prevResult = finalCurrentFuture.get();
|
DataValue[][] prevResult = finalCurrentFuture.get();
|
||||||
|
log.info(data.getClassName());
|
||||||
if (data.getRuleId().equals("3")) {
|
if (data.getRuleId().equals("3")) {
|
||||||
BasicEngine<DataValue[][]> basicEngine = engineDataSetMap.get(data.getClassName());
|
BasicEngine<DataValue[][]> basicEngine = engineDataSetMap.get(data.getClassName());
|
||||||
basicEngine.set(prevResult);
|
basicEngine.set(prevResult);
|
||||||
|
@ -407,9 +408,7 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
|
||||||
if (data.getRuleId().equals("1")) {
|
if (data.getRuleId().equals("1")) {
|
||||||
for (DataValue[] values : prevResult) {
|
for (DataValue[] values : prevResult) {
|
||||||
for (DataValue value : values) {
|
for (DataValue value : values) {
|
||||||
BasicEngine<DataValue> dataValueBasicEngine = engineMap.get(data.getClassName());
|
ruleFeign.testEngine(data.getClassName(),value);
|
||||||
dataValueBasicEngine.set(value);
|
|
||||||
dataValueBasicEngine.execution();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue