fix: 执行记录查询错误

This commit is contained in:
taojinlong 2023-05-24 12:35:29 +08:00
parent 834680e784
commit c08ad76baf

View File

@ -156,6 +156,12 @@ public class DataSetTableTaskLogService {
entity2.setOperator("eq");
entity2.setValue("1");
conditionEntities.add(entity2);
conditionEntities = conditionEntities.stream().map(conditionEntity -> {
if(conditionEntity.getField().equals("dataset_table_task.last_exec_status")){
conditionEntity.setField("dataset_table_task_log.status");
}
return conditionEntity;
}).collect(Collectors.toList());
request.setConditions(conditionEntities);
GridExample gridExample = request.convertExample();