|

楼主 |
发表于 2018-3-6 14:58:43
|
显示全部楼层
以下是我写的sql:
public static void deleteFdOrg(String fdId){
HashMap<String, Object> params = new HashMap<String, Object>();
String ksql = "delete from T_MDATA_FDORG t where t.FDID='"+fdId+"' ";
KSQL.executeUpdate(ksql, params, "/dlsc/sczt/data", null);
}
调用是这样写的:
Model.prototype.deleteFdOrgBtnClick = function(event){
var orgListData=this.comp("orgListData");
var row = this.comp("orgListData").getCurrentRow();
var id = row.getID();
var name = row.val("FD_NAME");
//是否有叶子节点,1有。0 否
var isChildren=this.getIsChildren(id);
if(isChildren){
justep.Util.hint("此节点有子节点不能删除!");
}else{
biz.Request.sendBizRequest({
"context" : this.getContext(),
"dataType" : "application/json",
"action" : "deleteFdOrg",
"parameters" : params,
"callback" : function(result) {
if (result.state) {
alert(11);
orgListData.refreshData();
}
}
});
}
};
以上写法报错,说params is not defined,怎样写才算正确呢?
|
|