ibitas查询结果放在Po类中,报错。
public class Po{
private int fileNum;
private String result;
private String startDate;
private String endDate;
private double duration;
private String shouldEndDate;
}
执行结果:
— The error occurred while applying a result map.
— The error happened while setting a property on the result object.
修改方法: int改为Integer,double改为Double。
原因:执行完sql后,很多fileNum相应字段为空,而int型不能赋空值,所以更换为相应的类,同理double更换为Double,代码即可正常执行。