Browse Source

Fix complement data date order will change due to use set (#13487)

3.2.0-release
dddyszy 2 years ago committed by GitHub
parent
commit
19ffd64e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java

5
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java

@ -1274,9 +1274,8 @@ public class ExecutorServiceImpl extends BaseServiceImpl implements ExecutorServ
*/
private String removeDuplicates(String scheduleTimeList) {
if (StringUtils.isNotEmpty(scheduleTimeList)) {
Set<String> dateSet =
Arrays.stream(scheduleTimeList.split(COMMA)).map(String::trim).collect(Collectors.toSet());
return String.join(COMMA, dateSet);
return Arrays.stream(scheduleTimeList.split(COMMA)).map(String::trim).distinct()
.collect(Collectors.joining(COMMA));
}
return null;
}

Loading…
Cancel
Save