{"hidden":false,"children":[{"configs":{"serverScript":"var item, buffer = com.wb.common.KVBuffer.buffer,\n  data = app.get(),\n  keyName = data.KEY_NAME;\napp.run('select 1 from WB_KEY where KEY_NAME={?KEY_NAME?}', {\n  errorText: '键名 \u201c' + keyName + '\u201d 已经存在。'\n});\napp.run(\"insert into WB_KEY values({?sys.id?},{?KEY_NAME?},'1','value',{?integer.TYPE?})\", {\n  transaction: 'start' //事务用于保证缓存更新的同步\n});\nitem = new java.util.concurrent.ConcurrentHashMap();\nitem.put(data.TYPE == '1' ? '1' : SysUtil.javaInt(1), 'value');\nbuffer.put(keyName, item);","itemId":"module"},"expanded":true,"children":[],"type":"module"}],"roles":{},"title":"添加","iconCls":"","inframe":false,"pageLink":""}