|
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Double
而使用single查询则没有问题
是因为组合查询这里都处理成了整型么?
String query_equNetweight_begin = request.getParameter("equNetweight_begin");
String query_equNetweight_end = request.getParameter("equNetweight_end");
if(StringUtil.isNotEmpty(query_equNetweight_begin)){
cq.ge("equNetweight", Integer.parseInt(query_equNetweight_begin));
}
if(StringUtil.isNotEmpty(query_equNetweight_end)){
cq.le("equNetweight", Integer.parseInt(query_equNetweight_end));
}
|
|