Browse Source

fix return, obj error (#1855)

pull/2/head
Jave-Chen 5 years ago committed by dailidong
parent
commit
16913bacd7
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ExecutorService.java
  2. 11
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/DateInterval.java

2
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ExecutorService.java

@ -551,6 +551,8 @@ public class ExecutorService extends BaseService{
command.setCommandParam(JSONUtils.toJson(cmdParam));
return processDao.createCommand(command);
}
return 0;
}
/**

11
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/DateInterval.java

@ -35,12 +35,15 @@ public class DateInterval {
@Override
public boolean equals(Object obj) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DateInterval that = (DateInterval) o;
if (obj == null || getClass() != obj.getClass()) {
return false;
} else if (this == obj) {
return true;
} else {
DateInterval that = (DateInterval) obj;
return startTime.equals(that.startTime) &&
endTime.equals(that.endTime);
}
}
public Date getStartTime() {

Loading…
Cancel
Save