review
This commit is contained in:
@@ -63,12 +63,14 @@ public class ESCC225001Executor extends BaseExecutor implements IExperimentRevie
|
||||
List<ExperimentAnnealProcess> experimentAnnealProcessList = experimentAnnealProcessService.getByExperimentId(experiment.getId());
|
||||
for (ExperimentAnnealProcess experimentAnnealProcess : experimentAnnealProcessList) {
|
||||
String deviationCondition = experimentAnnealProcess.getDeviationCondition();
|
||||
JSONObject jsonObject = JSON.parseObject(deviationCondition);
|
||||
if (jsonObject.containsKey("offsetCondition")) {
|
||||
String offsetCondition = jsonObject.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz") || StringUtils.contains(offsetCondition, "jtpz")) {
|
||||
condition2 = true;
|
||||
break;
|
||||
List<JSONObject> jsonArray = JSON.parseArray(deviationCondition, JSONObject.class);
|
||||
for (JSONObject s : jsonArray) {
|
||||
if (s.containsKey("offsetCondition")) {
|
||||
String offsetCondition = s.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz") || StringUtils.contains(offsetCondition, "jtpz")) {
|
||||
condition2 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
*/
|
||||
package org.jeecg.modules.database.service.executor;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.alibaba.fastjson2.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jeecg.modules.database.constant.ExperimentReviewProcessType;
|
||||
import org.jeecg.modules.database.constant.ExperimentReviewResultEnum;
|
||||
@@ -57,14 +56,17 @@ public class ESCC2290006Executor extends BaseExecutor implements IExperimentRevi
|
||||
List<ExperimentAnnealProcess> experimentAnnealProcessList = experimentAnnealProcessService.getByExperimentId(experiment.getId());
|
||||
for (ExperimentAnnealProcess experimentAnnealProcess : experimentAnnealProcessList) {
|
||||
String deviationCondition = experimentAnnealProcess.getDeviationCondition();
|
||||
JSONObject jsonObject = JSON.parseObject(deviationCondition);
|
||||
if (jsonObject.containsKey("offsetCondition")) {
|
||||
String offsetCondition = jsonObject.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz")) {
|
||||
condition1 = true;
|
||||
break;
|
||||
List<JSONObject> jsonArray = JSON.parseArray(deviationCondition, JSONObject.class);
|
||||
for (JSONObject s : jsonArray) {
|
||||
if (s.containsKey("offsetCondition")) {
|
||||
String offsetCondition = s.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz")) {
|
||||
condition1 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (condition1) {
|
||||
return ExperimentReviewResultEnum.HIGH;
|
||||
|
||||
@@ -57,12 +57,14 @@ public class GJB548C10Executor extends BaseExecutor implements IExperimentReview
|
||||
List<ExperimentAnnealProcess> experimentAnnealProcessList = experimentAnnealProcessService.getByExperimentId(experiment.getId());
|
||||
for (ExperimentAnnealProcess experimentAnnealProcess : experimentAnnealProcessList) {
|
||||
String deviationCondition = experimentAnnealProcess.getDeviationCondition();
|
||||
JSONObject jsonObject = JSON.parseObject(deviationCondition);
|
||||
if (jsonObject.containsKey("offsetCondition")) {
|
||||
String offsetCondition = jsonObject.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz")) {
|
||||
condition1 = true;
|
||||
break;
|
||||
List<JSONObject> jsonArray = JSON.parseArray(deviationCondition, JSONObject.class);
|
||||
for (JSONObject s : jsonArray) {
|
||||
if (s.containsKey("offsetCondition")) {
|
||||
String offsetCondition = s.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz")) {
|
||||
condition1 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,12 +57,14 @@ public class QJ1000410Executor extends BaseExecutor implements IExperimentReview
|
||||
List<ExperimentAnnealProcess> experimentAnnealProcessList = experimentAnnealProcessService.getByExperimentId(experiment.getId());
|
||||
for (ExperimentAnnealProcess experimentAnnealProcess : experimentAnnealProcessList) {
|
||||
String deviationCondition = experimentAnnealProcess.getDeviationCondition();
|
||||
JSONObject jsonObject = JSON.parseObject(deviationCondition);
|
||||
if (jsonObject.containsKey("offsetCondition")) {
|
||||
String offsetCondition = jsonObject.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz")) {
|
||||
condition1 = true;
|
||||
break;
|
||||
List<JSONObject> jsonArray = JSON.parseArray(deviationCondition, JSONObject.class);
|
||||
for (JSONObject s : jsonArray) {
|
||||
if (s.containsKey("offsetCondition")) {
|
||||
String offsetCondition = s.getString("offsetCondition");
|
||||
if (StringUtils.contains(offsetCondition, "dtpz")) {
|
||||
condition1 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ public class ExperimentReviewServiceImpl extends ServiceImpl<ExperimentReviewRes
|
||||
result.setProcessType(processType);
|
||||
result.setSampleId(sampleInfo.getId());
|
||||
result.setSampleName(sampleInfo.getSampleName());
|
||||
result.setNeedAnneal(experimentReview.getNeedAnneal());
|
||||
result.setNeedBurnin(experimentReview.getNeedBurnin());
|
||||
result.setNeedRadiation(experimentReview.getNeedRadiation());
|
||||
for (int i = 0; i < ruleList.size(); i++) {
|
||||
ExperimentReviewRule rule = ruleList.get(i);
|
||||
String executeResult = executorHolder.execute(rule.getProcessType() + rule.getPriority(), experiment, sampleInfo,
|
||||
|
||||
Reference in New Issue
Block a user