| 
 
| 原料单价取价策略PA_nhyZPpY5有配置默認值""
 
 華為正式區調用時
 http://knowledgemaps.apps.digiwincloudlocal.com.cn/restful/service/knowledgegraph/mechanism/VariableList
 
 入參
 {
 "map": {
 "needGetDefault": true,
 "variableVoList": [
 {"variableId": "product_category_quotation_coefficient_setting"},
 {"variableId": "PA_KaDz2C8M"                                   },
 {"variableId": "labor_manufacturing_cost"                      },
 {"variableId": "skip_costing"                                  },
 {"variableId": "PA_nhyZPpY5"                                   },
 {"variableId": "system_integration"                            }
 
 }
 }
 回參
 {
 "duration": 89,
 "statusDescription": "OK",
 "response": [
 {
 "variableId": "product_category_quotation_coefficient_setting",
 "category": null,
 "fieldNameList": null,
 "result": true
 },
 {
 "variableId": "PA_KaDz2C8M",
 "category": null,
 "fieldNameList": null,
 "result": 1
 },
 {
 "variableId": "labor_manufacturing_cost",
 "category": null,
 "fieldNameList": null,
 "result": true
 },
 {
 "variableId": "skip_costing",
 "category": null,
 "fieldNameList": null,
 "result": true
 },
 {
 "variableId": "PA_nhyZPpY5",
 "category": null,
 "fieldNameList": null,
 "result": null
 },
 {
 "variableId": "system_integration",
 "category": null,
 "fieldNameList": null,
 "result": true
 }
 ],
 "profile": {
 "tenantName": "江门市和馨香精技术有限公司_001",
 "tenantSid": 860853052734464,
 "tenantId": "72010062_001",
 "userSid": 465048277103168,
 "userName": "林怡秀",
 "userId": "linyx@digiwin.com"
 },
 "uuid": "",
 "status": 200
 }
 
 不應該是null
 
 
 
 
 | 
 
最佳答案
查看完整内容 本帖最后由 陈希 于 2025-3-3 14:38 编辑 
参数默认值""会自动转化为null,需要在dtd接口请求的地方对返回值做处理,判断返回值为null时手动赋默认值 |