|
本帖最后由 wto.2008 于 2017-11-9 10:23 编辑
现有.w是继承业务管理权限,现在SA_OPManagement中已添加了fConditionItem,fConditionValue字段,想在添加功能中添加上input里面的条件值,条件项,然后在主界面列表中显示,可是发现这么做的话sOrgID 值一样的的fConditionItem和fConditionValue都是一样的,在appendManagements又只能填3个参数,要想像appendManagements附加上条件值和条件项应该怎么实现,ksql语句应该怎么写?
public static void appendManagementsAction2(String manageTypeID,String orgID,List manageOrgIDs,String fConditionItem,String fConditionValue){
ManagementHelper.appendManagements(manageTypeID, orgID, manageOrgIDs);
//失败 ManagementHelper.appendManagements(fConditionItem,fConditionValue,manageOrgIDs);
String ksql="Update SA_OPManagement SA_OPManagement set SA_OPManagement.fConditionItem =" +" '"+fConditionItem+"', SA_OPManagement.fConditionValue = '"+fConditionValue+"' where SA_OPManagement.sManageOrgID ='"+manageOrgIDs.get(0)+"' and SA_OPManagement.sOrgID = '"+orgID+"'";
KSQL.executeUpdate(ksql, null, "/system/data",null);
}
|
|