{"hidden":false,"children":[{"configs":{"serverScript":"var defaultPassword = Encrypter.getMD5('111111'),\n  createRows = Wb.decode(request.getParameter('create'));\n\nWb.each(createRows, function(rec) {\n  Wb.apply(rec, {\n    KEY_ID: SysUtil.getId(),\n    USER_ID: SysUtil.getId(),\n    DISPLAY_NAME: rec.REAL_NAME,\n    PASSWORD: defaultPassword,\n    STATUS: 1,\n    CREATE_DATE: new Date(),\n    LOGIN_TIMES: 0\n  });\n});\n\nrequest.setAttribute('create', Wb.encode(createRows));\n//默认使用app.update操作都在同一个数据库事务内\napp.update({\n  fieldsMap: {\n    EMAIL: 'STAFF_EMAIL' //把客户端STAFF_EMAIL字段名称映射为数据库实际使用的字段名称EMAIL（在select语句中使用as更名了）\n  },\n  tableName: 'WB_STAFF'\n});\n\napp.update({\n  tableName: 'WB_USER'\n});\n\napp.send(createRows); //把create中包含的数据（主要更新KEY_ID和USER_ID字段）发送到客户端以同步到表格","itemId":"module"},"expanded":true,"children":[],"type":"module"}],"roles":{},"title":"多表保存","iconCls":"","inframe":false,"pageLink":""}