传入json:
{"Creator":"demo","NeedUpDateFields":[""],"Model":{"FID":0,"FBillNo":"","FBILLTYPEID":{"FNumber":"QTYSD01_SYS"},"FCURRENCYID":{"FNumber":"PRE001"},"FCONTACTUNITTYPE":"FIN_OTHERS","FCONTACTUNIT":{"FNumber":"QTWL0124"},"FSETTLEORGID":{"FNumber":"BJ001"},"FPAYORGID":{"FNumber":"BJ001"},"FDATE":"2016-09-20","FENDDATE_H":"2016-09-20","F_PIK_YDKH":{"FNumber":"1097"},"F_pik_HTH":"123","FAMOUNTFOR":1000.0,"FAMOUNT":1000.0,"FNOTAXAMOUNT":980.0,"FTAXAMOUNT":20.0,"F_PIK_SKLX":"测试中间款","FCreateDate":"2016-09-20T00:00:00+08:00","AR_OtherRecAble__FEntity":[{"FEntryID":0,"FCOSTDEPARTMENTID":{"FNumber":"BJ0010001"},"FCOSTID":{"FNumber":""},"FNOTAXAMOUNTFOR":980.0,"FTAXAMOUNTFOR":20.0,"FAMOUNTFOR":1000.0,"FAMOUNT":1000.0}]}}
错误提示:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"MapComplexProperty Field Error :Field Key is 【FAMOUNTFOR】","Message":" 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapCollectionProperty(Entity enity, IList`1 sourceRows, DynamicObjectCollection targetRows, HashSet`1 NeedUpDateFields, String specialReferenceTable)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)\r\n 在 Kingdee.BOS.WebApi.FormService.Save.Execute()\r\n 在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)","DIndex":0}],"SuccessEntitys":[]}}}
请老师们指导
推荐阅读