|

楼主 |
发表于 2017-2-23 21:47:45
|
显示全部楼层
本帖最后由 lwcompany 于 2017-2-24 08:06 编辑
刚才都设置完了才出现这种情况的呀
public static void updataSkdwPower(String fDWBH,String fDWMC,List<String> fYHBH,List<String> fYHMC,String fQY){
tring range ="select jstkdwspower from GU_JTSKDWS_POWER jstkdwspower where jstkdwspower.fDWMC like '" + fullDCondition+"'";
String delSql = "delete from GU_JTSKDWS_POWER jstkdwspower where jstkdwspower.fDWMC like '"+fullDCondition+"'";
KSQL.executeUpdate(delSql, null, jtzjrbbModel, null);
for(String str:fYHBH){
//Object obj = it.next();
if((FullfDWMC!=null )&&(!FullfDWMC.equals(""))){
// 插入新标记
String insertSql ="insert into GU_JTSKDWS_POWER jstkdwspower(jstkdwspower,jstkdwspower.version,jstkdwspower.fDWBH,jstkdwspower.fDWMC,jstkdwspower.fYHBH,jstkdwspower.fYHMC)"+
"values(guid(),'0','"+fDWBH+"','"+fDWMC+"','"+str+"','"+fYHMC+"')";
Map<String, Object> param = new HashMap<String, Object>();
KSQL.executeUpdate(insertSql, param, jtzjrbbModel, null);
}
}
前台
2-1接收选择管理员设置信息
Model.prototype.dlgManagerSetReceive = function(event){
debugger;
var fskdwspower= this.comp("skdwspowerbizData");//收款单位权限,对应栏目管理员dmanager(oa_km_fdmanager;)
var rows = event.data;
//得到选中的信息
var response;//后加
var params = new biz.Request.ActionParam();//后加
for(var i in rows){
var fcode = rows.val('sCode');
var fsname = rows.val('sName');
var fdwbh = this.comp('treeData').getCurrentRow().val("fDWBH");
var fdwmc = this.comp('treeData').getCurrentRow().val("fDWMC");
//LIST参数后加
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;
}
}
});
}
|
|