This commit is contained in:
ls
2025-07-23 23:00:15 +08:00
parent 66567781d5
commit b6378d9724
5 changed files with 37 additions and 26 deletions

View File

@@ -63,15 +63,17 @@ 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");
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;
}
}
}
}
if (condition1 && condition2) {
return ExperimentReviewResultEnum.UNKNOWN;
}

View File

@@ -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,15 +56,18 @@ 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");
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;
}

View File

@@ -57,15 +57,17 @@ 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");
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;
}

View File

@@ -57,15 +57,17 @@ 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");
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;
}

View File

@@ -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,