select nike_name FROM ti_personal WHERE cust_id=#car_cust_id# public String getnike_nameByObj(Object obj) {
String nike_name="";
Map ti_personal = (Hashtable)obj;
List list = queryList.getList("getListBynike_name",ti_personal);
if(list!=null&&list.size()>0){
Hashtable cMap=(Hashtable)list.get(0);
if(cMap.get("nike_name")!=null){
nike_name=cMap.get("nike_name").toString();
}
}
return nike_name;
}
String nike_name = "";
if(request.getParameter("nike_name") != null){
nike_name = request.getParameter("niek_name").toString();
}
Ti_personalInfo ti_personalInfo = new Ti_personalInfo();
Hashtable map = new Hashtable();
map.put("cust_id", car_cust_id);
nike_name=ti_personalInfo.getnike_nameByObj(map);
總共三段邏輯 一個(gè)是ibatis的配置文件sql語(yǔ)句,第二寫(xiě)的是方法,三是頁(yè)面接收從數(shù)據(jù)庫(kù)查值
就是1個(gè)頁(yè)面點(diǎn)擊跳轉(zhuǎn)另一個(gè)頁(yè)面,要把上個(gè)頁(yè)面的值顯示到跳轉(zhuǎn)的頁(yè)面.是ibatis
這段業(yè)務(wù)邏輯寫(xiě)的對(duì)嗎 謝謝大神回答!ibatis
慕碼人8056858
2018-07-24 10:13:42