部分代码如下:
Map <String, String> findAuditMap = WebUtils.getParametersStartingWith(
request, "search_");
List <CarsUseAppication> returnList = null;
if (getUserDeptauditRole(userManager.getUser(user.getId()))) {
findAuditMap.put("auditUserOneXXid_i_eq", String.valueOf(user
.getId()));
findAuditMap.put("flowId_i_eq", "0");
returnList = carsUseAppicationManager
.findCarsUseAppication(findAuditMap);////这里报错 调用下面这个方法
}
public List findCarsUseAppication(Map filter) {
Map <String,String> orderMap = new HashMap <String,String>();
orderMap.put("id","desc");
return carsUseAppicationDao.findAllCommonBy(filter,orderMap);
}
异常信息:
java.lang.ClassCastException: java.lang.String
at cn.firstsoft.modules.cars.service.logic.CarsUseAppicationManager.findCarsUseAppication(CarsUseAppicationManager.java:45)
at cn.firstsoft.modules.cars.service.logic.CarsUseAppicationManager$$FastClassByCGLIB$$fc976de5.invoke()
请问如何解决!
------解决方法--------------------------------------------------------
carsUseAppicationDao.findAllCommonBy(filter,orderMap); 返回什么类型?String?