fix return, obj error (#1855)

This commit is contained in:
Jave-Chen 2020-01-17 21:55:50 +08:00 committed by dailidong
parent d371745ddf
commit 16913bacd7
2 changed files with 12 additions and 7 deletions

View File

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

View File

@ -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;
return startTime.equals(that.startTime) &&
endTime.equals(that.endTime);
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() {