错误 #28766
耗材模块-耗材入库,必填项人员id为异常值,接口返回成功
0%
描述
接口路径:https://qa.yushu.cloud/apiauto/fm-inventory-server/restConsumableServer/createConsumableWarehousingEntry
header:
Headers: groupCode=test
Accept=/
Content-Type=application/json; charset=UTF-8
入参:
{
"user_id": "2df2797670c846768970293b7ad0b666",
"person_id": "xxx",
"project_id": "Pj6006110006",
"warehouse_id": "CK60061100065d6454a28394409aa5168383b762edbc",
"warehouse_name": "",
"inbound_type": "",
"remark": "",
"inbound_date": "",
"total_amount": "",
"attachment": [
{
"type": "",
"name": "",
"key": ""
}
],
"consumables": [
{
"template_id": "HCMB3bf470fadab84e739ae998849878d8f9",
"project_template_id": "",
"name": "",
"code": "",
"unit_price": "",
"type": "",
"brand": "",
"specification": "",
"supplier": "",
"picture": "",
"unit": "",
"num": "",
"total_num": "",
"amount": "",
"goods_shelf": "",
"entry_unit_type": ""
}
]
}
响应:
{
"Item": {
"warehousing_entry_id": "RK60061100062023120700538"
},
"ResultCode": "00000",
"Result": "success"
}
预期结果:
{
"code": "A0400",
"result": "fail",
"message": "person_id 不合法",
"timestamp": 1698163686610
实际结果:
{
"Item": {
"warehousing_entry_id": "RK60061100062023120700538"
},
"ResultCode": "00000",
"Result": "success"
}