cn.pacPacinforeport cannot be cast to java.util.List
Sql sql = Sqls.fetchEntity("CALL proc_pacinfosum(@vyear,@hospitalid)");
sql.setEntity(dao.getEntity(Pacinforeport.class));
sql.params().set("vyear", year);
sql.params().set("hospitalid", this.getLoginHospital().getId());
dao.execute(sql);
return super.nutzRet(0, "数据查询成功!", sql.getList(Pacinforeport.class));
import org.nutz.dao.entity.annotation.Column;
public class Pacinforeport {
@Column(hump = true)
private String type;
@Column(hump = true)
private String optionval;
@Column(hump = true)
private int y1;
@Column(hump = true)
private int y2;
@Column(hump = true)
private int y3;
@Column(hump = true)
private int y4;
@Column(hump = true)
private int y5;
@Column(hump = true)
private int y6;
@Column(hump = true)
private int y7;
@Column(hump = true)
private int y8;
@Column(hump = true)
private int y9;
@Column(hump = true)
private int y10;
@Column(hump = true)
private int y11;
@Column(hump = true)
private int y12;
/**
* @return type
*/
public String getType() {
return type;
}
/**
* @param type 要设置的 type
*/
public void setType(String type) {
this.type = type;
}
/**
* @return optionval
*/
public String getOptionval() {
return optionval;
}
/**
* @param optionval 要设置的 optionval
*/
public void setOptionval(String optionval) {
this.optionval = optionval;
}
/**
* @return y1
*/
public int getY1() {
return y1;
}
/**
* @param y1 要设置的 y1
*/
public void setY1(int y1) {
this.y1 = y1;
}
/**
* @return y2
*/
public int getY2() {
return y2;
}
/**
* @param y2 要设置的 y2
*/
public void setY2(int y2) {
this.y2 = y2;
}
/**
* @return y3
*/
public int getY3() {
return y3;
}
/**
* @param y3 要设置的 y3
*/
public void setY3(int y3) {
this.y3 = y3;
}
/**
* @return y4
*/
public int getY4() {
return y4;
}
/**
* @param y4 要设置的 y4
*/
public void setY4(int y4) {
this.y4 = y4;
}
/**
* @return y5
*/
public int getY5() {
return y5;
}
/**
* @param y5 要设置的 y5
*/
public void setY5(int y5) {
this.y5 = y5;
}
/**
* @return y6
*/
public int getY6() {
return y6;
}
/**
* @param y6 要设置的 y6
*/
public void setY6(int y6) {
this.y6 = y6;
}
/**
* @return y7
*/
public int getY7() {
return y7;
}
/**
* @param y7 要设置的 y7
*/
public void setY7(int y7) {
this.y7 = y7;
}
/**
* @return y8
*/
public int getY8() {
return y8;
}
/**
* @param y8 要设置的 y8
*/
public void setY8(int y8) {
this.y8 = y8;
}
/**
* @return y9
*/
public int getY9() {
return y9;
}
/**
* @param y9 要设置的 y9
*/
public void setY9(int y9) {
this.y9 = y9;
}
/**
* @return y10
*/
public int getY10() {
return y10;
}
/**
* @param y10 要设置的 y10
*/
public void setY10(int y10) {
this.y10 = y10;
}
/**
* @return y11
*/
public int getY11() {
return y11;
}
/**
* @param y11 要设置的 y11
*/
public void setY11(int y11) {
this.y11 = y11;
}
/**
* @return y12
*/
public int getY12() {
return y12;
}
/**
* @param y12 要设置的 y12
*/
public void setY12(int y12) {
this.y12 = y12;
}
}