修改人员节信息 __NzF8m1w2VgBroBTh0Rh __NzF8m1w2VgBroBTh0Rh published UTF-8 post /course/sectionProgress json 0) { for (var iterator = datas.iterator(); iterator.hasNext();) { var map1 = iterator.next();//取值 var docids = map1.get("id"); } var process = getDocumentProcess(); var Info = findDocument(docids); for (var key in json) { var value = json[key]; Info.findItem(key).setValue(value); } process.doUpdate(Info); result.put("type", "update"); } else { var fromid="__5Goys2glw3Ec3O0O9mL"; var process = getDocumentProcess(); var formProcess = getFormProcess(); var subform = formProcess.doView(fromid); var Info = process.doNew(subform, getWebUser(), createParamsTable()); for (var key in json) { var value = json[key]; Info.findItem(key).setValue(value); } result.put("type", "insert"); process.doCreate(Info); } result.put("msg", "success"); result.put("code", "0"); } else { result.put("code", "-1"); result.put("msg", "身份证和节id不能为空"); }}else{ result.put("code", "-1"); result.put("msg", "请先包体传值再执行操作!"); } return result; })()]]>