fix the bug:changeToResultModel:can not cast Long to Double
This commit is contained in:
parent
e2aa6234a3
commit
453ddf7ae2
|
@ -4,7 +4,7 @@ import java.util.Date;
|
|||
|
||||
public class ResultModel {
|
||||
private boolean finished;
|
||||
private double data;
|
||||
private Object data;
|
||||
private Date time;
|
||||
public boolean isFinished() {
|
||||
return finished;
|
||||
|
@ -12,18 +12,16 @@ public boolean isFinished() {
|
|||
public void setFinished(boolean finished) {
|
||||
this.finished = finished;
|
||||
}
|
||||
public double getData() {
|
||||
return data;
|
||||
}
|
||||
public void setData(double d) {
|
||||
this.data = d;
|
||||
}
|
||||
public Date getTime() {
|
||||
return time;
|
||||
}
|
||||
public void setTime(Date time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
public void setData(Object data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ public class ChangeToResultModel {
|
|||
ResultModel resultModel = new ResultModel();
|
||||
|
||||
for (String fieldName : fieldNames)
|
||||
resultModel.setData((double)getSpecificFieldValue(object,
|
||||
resultModel.setData(getSpecificFieldValue(object,
|
||||
fieldName));
|
||||
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ function testPlanTaskList() {
|
|||
},"json");
|
||||
|
||||
}
|
||||
|
||||
function getTestPlanIdInTable(obj) {
|
||||
var row = obj.parentNode.parentNode;
|
||||
var testPlanName = $('#testTaskList>tbody').children("tr").eq(
|
||||
|
|
Loading…
Reference in New Issue