fix return, obj error (#1855)
This commit is contained in:
parent
d371745ddf
commit
16913bacd7
|
|
@ -550,7 +550,9 @@ public class ExecutorService extends BaseService{
|
|||
}else{
|
||||
command.setCommandParam(JSONUtils.toJson(cmdParam));
|
||||
return processDao.createCommand(command);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue