|
版本: |
BeX5V3.2 |
小版本号: |
|
|
|
数据库: |
MySQL |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows XP |
浏览器: |
Firefox |
|
|
前台代码
for(var i in rows){
var listParam = new biz.Request.ListParam();
listParam.add(fcode);
listParam.add(fsname);
params.setList("fYHBH",listParam);
params.setList("fYHMC",listParam);
params.setString("fDWBH", fdwbh);
params.setString("fDWMC", fdwmc );
//后加
biz.Request.sendBizRequest({
"context" : this.getContext(),
"action" : "updataSkdwPower",
"parameters" : params,
"callback" : function(callbackData) {
callbackData.ignoreError = false;
console.log(callbackData);
if (callbackData.state) {
response = callbackData.response;
var data = me.comp('skdwspowerbizData');
justep.Util.hint("同步调用成功");
data.setValue('skdwspower',rows[i].val('fYHMC'));//只能得到一个list类型的值?????
}
}
});
后台传值
select f.fDWBH,f.fDWMC from GU_JTDWS f where f.fDWBH = '01001'
---------insertsql----------insert into GU_JTSKDWS_POWER jstkdwspower(jstkdwspower,jstkdwspower.version,jstkdwspower.fDWBH,jstkdwspower.fDWMC,jstkdwspower.fYHBH,jstkdwspower.fYHMC)values(guid(),'0','01001','永大电梯','lyff','刘艳芬')
{"fYHBH":"lyff","fYHMC":"刘艳芬"}
01001
select f.fDWBH,f.fDWMC from GU_JTDWS f where f.fDWBH = '01001'
---------insertsql----------insert into GU_JTSKDWS_POWER jstkdwspower(jstkdwspower,jstkdwspower.version,jstkdwspower.fDWBH,jstkdwspower.fDWMC,jstkdwspower.fYHBH,jstkdwspower.fYHMC)values(guid(),'0','01001','永大电梯','cyx','陈永祥')
{"fYHBH":"cyx","fYHMC":"陈永祥"}
后台action是
public static JSONObject updataSkdwPower(String fDWBH,String fDWMC,List<String> fYHBH,List<String> fYHMC,String fQY){
。。。。。。。
System.out.println(json);
return json;
}
数据库是
131bb9b7fee411e6ab2ab8975a3bf4bf 0 01001 永大电梯 lyff 刘艳芬
13225296fee411e6ab2ab8975a3bf4bf 0 01001 永大电梯 cyx 陈永祥
但前台只显示如图所示
|
-
只显示一个list类型的值
|