fix the bug:changeToResultModel:can not cast Long to Double

This commit is contained in:
fanfuxiaoran 2014-02-21 11:24:09 +08:00
parent e2aa6234a3
commit 453ddf7ae2
3 changed files with 8 additions and 11 deletions

View File

@ -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;
}
}

View File

@ -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));

View File

@ -60,7 +60,6 @@ function testPlanTaskList() {
},"json");
}
function getTestPlanIdInTable(obj) {
var row = obj.parentNode.parentNode;
var testPlanName = $('#testTaskList>tbody').children("tr").eq(