webapi中保存接口支持批量保存吗
金蝶云社区-云小爱
云小爱
0人赞赏了该文章 3023次浏览 未经作者许可,禁止转载编辑于2016年01月25日 10:26:51
在用http请求调用webapi的Save接口中,单条单据保存成功了。现在如果需要一次性传多条单据记录过去进行保存,是否需要每条都调用一次Save接口?支持传多条记录批量保存吗?
单条json:(付款单保存)
{"Creator":"demo","NeedUpDateFields":[""],"Model":{"FID":0,"FBillNo":"","FBillTypeID":{"FNumber":"FKDLX02_SYS"},"FPAYBILLENTRY":[{"FSETTLETYPEID":{"FNumber":"JSFS01_SYS"},"FPAYTOTALAMOUNTFOR":5,"FREALPAYAMOUNTFOR_D":"5"}],"FISINIT":false,"FDepartment":{"FDEPTID":0,"FNUMBER":"002","FNAME":"002"},"FCURRENCYID":{"FNUMBER":"PRE001"},"FMAINBOOKID":{"FNUMBER":"PRE001"},"FEXCHANGERATE":"1.0000","FSETTLERATE":"1.0000","FSETTLECUR":{"FNUMBER":"PRE001"},"FPAYTOTALAMOUNTFOR_H":"5.00","FPAYAMOUNTFOR":5,"FSETTLEORGID":{"FOrgID":0,"FNUMBER":"01","FNAME":"01"},"FCONTACTUNITTYPE":"BD_Customer","FCONTACTUNIT":{"FItemID":0,"FNumber":"AAE","FName":"AAE"},"FRECTUNITTYPE":"BD_Customer","FRECTUNIT":{"FNUMBER":"AAE"}}}