为什么-本人的查询语句不返回数据清单

J2EE 码拜 7年前 (2017-04-23) 931次浏览
大师帮看下,SQL没问题,谢谢
控制层代码

	//模糊查询
	@RequestMapping("/getfinds")
	public String getfind(HttpServletRequest request) {

		String knm=request.getParameter("knm");
		//	if(null != keywords && !"".equals(keywords)){
		if(!"".equals(knm)&&knm!=null){
			// 获取模糊 库位
			List<StorLocation> locationlists = storageservice.getFinds(knm);
			System.out.println(locationlists.get(1));
			request.setAttribute("locationlist",locationlists ); 
			return "assetsManagement/location";
		}
		return "locationHome";

	}
解决方案

40

看不出来什么问题。
打印出sql日志,替换到数据库执行。

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明为什么-本人的查询语句不返回数据清单
喜欢 (0)
[1034331897@qq.com]
分享 (0)