修改检测计划态,录波校验调整
This commit is contained in:
@@ -602,16 +602,24 @@ public class AdPlanServiceImpl extends ServiceImpl<AdPlanMapper, AdPlan> impleme
|
||||
}
|
||||
DictData dictData = dictDataService.getById(patternId);
|
||||
if (PatternEnum.CONTRAST.getValue().equals(dictData.getCode())) {
|
||||
String[] split = adPlan.getTestItem().split(StrUtil.COMMA);
|
||||
List<DictTree> dictTreeList = dictTreeService.list(new QueryWrapper<DictTree>().in("id", split).eq("state", DataStateEnum.DELETED.getCode()));
|
||||
String datasourceId = adPlan.getDatasourceId();
|
||||
if (datasourceId.contains(DataSourceEnum.REAL_DATA.getValue())
|
||||
|| datasourceId.contains(DataSourceEnum.MINUTE_STATISTICS_CP95.getValue())
|
||||
|| datasourceId.contains(DataSourceEnum.MINUTE_STATISTICS_AVG.getValue())
|
||||
|| datasourceId.contains(DataSourceEnum.MINUTE_STATISTICS_MAX.getValue())
|
||||
|| datasourceId.contains(DataSourceEnum.MINUTE_STATISTICS_MIN.getValue())) {
|
||||
String[] split = adPlan.getTestItem().split(StrUtil.COMMA);
|
||||
List<DictTree> dictTreeList = dictTreeService.list(new QueryWrapper<DictTree>().in("id", split).eq("state", DataStateEnum.DELETED.getCode()));
|
||||
|
||||
for (DictTree dictTree : dictTreeList) {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
map.put("id", dictTree.getId());
|
||||
map.put("code", dictTree.getCode());
|
||||
map.put("scriptName", dictTree.getName());
|
||||
result.add(map);
|
||||
for (DictTree dictTree : dictTreeList) {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
map.put("id", dictTree.getId());
|
||||
map.put("code", dictTree.getCode());
|
||||
map.put("scriptName", dictTree.getName());
|
||||
result.add(map);
|
||||
}
|
||||
}
|
||||
|
||||
if (StrUtil.isBlank(scriptType)) {
|
||||
if (adPlan.getDatasourceId().contains(DataSourceEnum.WAVE_DATA.getValue())) {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user