|
本帖最后由 YonJiao 于 2023-11-9 15:41 编辑
新架构特征对象中的id代表的是特征主键id,与老架构的自定义项是有区别的,老架构的自定义项对象中的id代表的是主表或者子表主键id。
举例:【采购订单自定义项特征更新】接口,
- {
- "datas": [
- {
- "id": "1820903698313248777",
- "purchaseOrderDefineCharacter": {
- "cgddtest_jgj01": "{ \t"linkText": "跳转百度456", \t"linkAddress": "http://www**.**" }",
- "id": "1820903698313248781" //其实新架构是做了兼容,传主表id或者特征id都能更新成功,推荐使用特征id
- },
- "purchaseOrders": [
- {
- "id": "1820903698313248778",
- "purchaseOrdersDefineCharacter": {
- "cgddtest_jgj01": "{ \t"linkText": "跳转百度456", \t"linkAddress": "http://www**.**" }",
- "id": "1820903698313248780" //其实新架构是做了兼容,传子表id或者特征id都能更新成功,推荐使用特征id
- }
- }
- ]
- }
- ]
- }
复制代码 综上所述,当调用接口进行更新特征字段值时,推荐使用特征id更新特征字段,所以建议当使用保存接口之后,将返回的特征id值保存下来,为后续更新做准备。或者更新前,先调用【详情接口】查询出特征id,再进行更新
举例:【采购订单详情查询】接口返回结果
- {
- "code": "200",
- "message": "操作成功",
- "data": {
- "vendor_code": "0001000016",
- "oriTax": 14.78,
- "invoiceVendor": 1800324697548652548,
- "modifyStatus": 0,
- "purchaseOrderDefineCharacter__cgddtest_jgj01": "{"linkText":"跳转百度1","linkAddress":"http://www**.**"}",
- "natCurrency": "1602070183514997555",
- "totalQuantity": 100,
- "id": 1820903698313248777, //表头主键id
- "bustype_code": "A20001",
- "paymentIsContract": "0",
- "purchaseOrder_allInvoiceStatus": 2,
- "isWfControlled": true,
- "natSum": 1000,
- "submitTime": "2023-09-20 11:38:20",
- "auditorId": "1602067512044290057",
- "auditTime": "2023-09-20 11:38:30",
- "natCurrency_priceDigit": 6,
- "exchRateType": "rybentc5",
- "bmake_st_purinrecord_red": true,
- "purchaseOrders": [
- {
- "discountRate": 100,
- "purUOM": 1608056268413992965,
- "oriTax": 14.78,
- "product_cCode": "0000000011",
- "priceUOM_Precision": 2,
- "product1": 1723201034954735616,
- "isRelease": 0,
- "priceUOM_Code": "001003",
- "oriUnitPriceOriginal": 9.8522,
- "isLogisticsRelated": false,
- "isExpiryDateManage": false,
- "taxitems_name": "1.5%增值税税率",
- "unit_code": "001003",
- "id": 1820903698313248778, //表体主键id
- "mainid": 1820903698313248777,
- "expenseOriMoney": 0,
- "purUOM_Name": "箱",
- "product_oUnitId": 1608056268413992965,
- "materialClassCode": "000019",
- "realProductAttribute": 1,
- "natSum": 1000,
- "product_reservation": false,
- "rowClose": false,
- "invExchRate": 1,
- "discountTaxType": "0",
- "unitExchangeTypePrice": 0,
- "isGiftProduct": false,
- "paymentClose": false,
- "plannedTotalRecPurQty": 0,
- "amountPayable": 1000,
- "inWHStatus": 2,
- "productsku_cName": "蔗糖",
- "purUOM_Code": "001003",
- "isDoLogistics": 0,
- "expenseOriSum": 0,
- "invPriceExchRate": 1,
- "isBatchManage": false,
- "releaseType": 1,
- "totalServiceMoney": 0,
- "pubts": "2023-10-21 00:24:19",
- "arrivalClose": false,
- "rowno": 1,
- "product": 1723201034954735616,
- "materialClassId": 1723198818765766660,
- "oriSum": 1000,
- "inInvoiceOrg_name": "jgj集团",
- "demandOrg_name": "jgj集团",
- "priceQty": 100,
- "priceSource": "1",
- "isRowExpenses": false,
- "paymentStauts": 1,
- "natMoney": 985.22,
- "taxitems_code": "VATR6",
- "purUOM_Precision": 2,
- "product_productOfflineRetail_purchaseUnit": 1608056268413992965,
- "arrivedStatus": 2,
- "inOrg": "1723183399803813894",
- "materialClassName": "原材料",
- "natTax": 14.78,
- "subQty": 100,
- "proDescFlag": "0",
- "smallTaxpayer": 0,
- "totalServiceNoTaxMoney": 0,
- "inInvoiceOrg": "1723183399803813894",
- "product_cName": "蔗糖",
- "closeqty": 0,
- "purchaseOrdersDefineCharacter__cgddtest_jgj01": "{"linkText":"跳转百度1","linkAddress":"http://www**.**"}",
- "oriUnitPrice": 9.8522,
- "ticketCollectionClose": false,
- "approveqty": 0,
- "unit_name": "箱",
- "taxRate": 1.5,
- "unit": 1608056268413992965,
- "productsku": 1723201034954735635,
- "hasPaymentSchedules": false,
- "plannedTotalRecUnitQty": 0,
- "productsku_cCode": "0000000011",
- "qty": 100,
- "unit_Precision": 2,
- "oriTaxUnitPrice": 10,
- "productPuType": "0",
- "oriMoney": 985.22,
- "purchaseOrdersDefineCharacter": {
- "ytenant": "rybentc5",
- "id": "1820903698313248780", //表体特征对象主键id
- "pubts": "2023-08-25 17:08:47",
- "cgddtest_jgj01": "{"linkText":"跳转百度1","linkAddress":"http://www**.**"}"
- },
- "natUnitPrice": 9.8522,
- "isLineFeedback": false,
- "demandOrg": "1723183399803813894",
- "weighFinish": false,
- "purchaseOrdersDefineCharacter__id": "1820903698313248780",
- "realProductAttributeType": 1,
- "purchaseOrdersCharacteristics": {
- "ytenant": "rybentc5",
- "id": "1820903698313248779",
- "pubts": "2023-08-25 16:46:25"
- },
- "storageqty": 0,
- "priceUOM": 1608056268413992965,
- "releaseStatus": 0,
- "warehousingClose": false,
- "totalServiceQty": 0,
- "expenseNatSum": 0,
- "isArrivalplan": false,
- "unitExchangeType": 0,
- "inOrg_name": "jgj集团",
- "lineno": 10,
- "priceUOM_Name": "箱",
- "expenseNatMoney": 0,
- "invoiceStatus": 2,
- "taxitems": "10003",
- "natTaxUnitPrice": 10,
- "payStatus": "未付款",
- "priceMark": 0,
- "bodyParallel": {
- "id": 1820903698313248778,
- "erpApplyOrderType": "1",
- "signatory": "0",
- "isMaterialClass": false,
- "rowCollaborationStatus": "1"
- }
- }
- ],
- "inventoryowner": 0,
- "status": 1,
- "verifystate": 2,
- "currency_moneyDigit": 2,
- "currency_code": "CNY",
- "vouchdate": "2023-09-20 00:00:00",
- "natCurrency_name": "人民币",
- "invoiceVendor_name": "jgj测试供应商001",
- "allPaymentStauts": 1,
- "vendor": 1800324697548652548,
- "exchRateDate": "2023-09-20 00:00:00",
- "currency": "1602070183514997555",
- "currency_priceRount": 4,
- "pubts": "2023-09-20 11:38:30",
- "org_name": "jgj集团",
- "generalPurchaseOrderType": "1",
- "isFlowCoreBill": true,
- "createDate": "2023-09-20 00:00:00",
- "auditDate": "2023-09-20 00:00:00",
- "creator": "倪帅臣",
- "oriSum": 1000,
- "exchRateType_name": "基准汇率",
- "auditor": "倪帅臣",
- "taxSettingType": 0,
- "purchaseOrder_allInWHStatus": 2,
- "createTime": "2023-09-20 11:38:10",
- "canWithDraw": 1,
- "purchaseOrderDefineCharacter": {
- "ytenant": "rybentc5",
- "id": "1820903698313248781", //表头特征对象主键id
- "pubts": "2023-09-20 11:38:11",
- "cgddtest_jgj01": "{"linkText":"跳转百度1","linkAddress":"http://www**.**"}"
- },
- "purchaseOrderDefineCharacter__id": "1820903698313248781",
- "natMoney": 985.22,
- "isMaxLimitPrice": false,
- "isFeedback": false,
- "currency_priceDigit": 6,
- "phasedInvoice": false,
- "masterOrgKeyField": "org",
- "bEffectStock": true,
- "bustype_name": "普通采购",
- "natTax": 14.78,
- "submitter_username": "倪帅臣",
- "directShipment": "1",
- "isAllowAdjustPrice": "0",
- "maturityDate": "2023-08-25 00:00:00",
- "storagenum": 0,
- "vendor_name": "jgj测试供应商001",
- "socialStatus": "false",
- "barCode": "st_purchaseorder|1820903698313248777",
- "isContract": false,
- "natCurrency_moneyDigit": 2,
- "isMaterialClass": false,
- "closeIsCollaboration": false,
- "exchRateType_Digit": 6,
- "moneysum": 1000,
- "oriMoney": 985.22,
- "purchaseOrder_allArrivedStatus": 2,
- "paymentProcess": 0,
- "natCurrency_code": "CNY",
- "submitter": "0f059088-9c92-4769-a3e7-8f1a341cc3df",
- "code": "000023",
- "creatorId": 1602067512044290057,
- "bizFlow": "a1c5e1a8-6fbe-11ed-8d77-fa163e279374",
- "exchRate": 1,
- "isExeDetailedReconciliation": false,
- "bizstatus": 1,
- "bizFlow_version": "V1.0",
- "accountDate": "2023-08-25 00:00:00",
- "currency_name": "人民币",
- "org": "1723183399803813894",
- "bmake_st_purinrecord": true,
- "transTypeKeyField": "bustype",
- "bustype": "1602070183514996799",
- "retailInvestors": false,
- "currency_moneyRount": 4,
- "isVMI": false,
- "approvenum": 0,
- "bizFlow_name": "普通订货(无到货)",
- "headParallel": {
- "isERPApproval": false,
- "approvalStatus": 0,
- "orderSource": "4",
- "id": 1820903698313248777,
- "isConQuantity": false,
- "orderCollaborationStatus": 1,
- "sendErpMsg": false,
- "isConPrice": false,
- "businessType": 1
- }
- }
- }
复制代码
|
|