Browse Source

fix return, obj error (#1855)

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

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

@ -550,7 +550,9 @@ public class ExecutorService extends BaseService{
}else{ }else{
command.setCommandParam(JSONUtils.toJson(cmdParam)); command.setCommandParam(JSONUtils.toJson(cmdParam));
return processDao.createCommand(command); return processDao.createCommand(command);
} }
return 0;
} }
/** /**

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

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

Loading…
Cancel
Save