提交 16913bac 编写于 作者: J Jave-Chen 提交者: dailidong

fix return, obj error (#1855)

上级 d371745d
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册