文档
测试

查询加工单列表

POST
请求地址/router

请求地址

|环境|服务地址(HTTP/HTTPS)| |-|-| |V2正式环境(推荐)| https://gw.superboss.cc/router| **2022年4月1日**以后申请的APP Key,统一使用V2正式环境的请求地址:**https://gw.superboss.cc/router**

公共参数

调用任何一个API都必须传入的参数,目前支持的公共参数有: | 参数名称 | 参数类型 | 是否必须 | 参数描述 | | --- | --- | --- | --- | | method | string | 是 | API接口名称 | | appKey | string | 是 | 分配给应用的AppKey | | timestamp | string | 是 | 时间戳,时区为GMT+8,例如:2020-09-21 16:58:00。API服务端允许客户端请求最大时间误差为10分钟 | | format | string | 否 | 响应格式。默认为json格式,可选值:json | | version | string | 是 | API协议版本 可选值:1.0 | | sign\_method | string | 否 | 签名的摘要算法(默认 hmac),可选值为:hmac,md5,hmac-sha256。 | | sign | string | 是 | 签名 | | session | string | 是 | 授权会话信息 (即access_token,由系统分配) |

请求头

参数名
类型
描述
必填
Content-Type
string
multipart/form-data
必填

API接口地址

参数名
类型
描述
必填
method
string
stock.product.order.query
必填

请求参数

参数名
类型
描述
必填
modifiedStart
string
修改开始时间
可选
modifiedEnd
string
修改结束时间
可选
productTimeStart
string
加工时间(时分秒) 开始
可选
productTimeEnd
string
加工时间(时分秒) 结束
可选
finishedTimeStart
string
完成时间(时分秒) 开始
可选
finishedTimeEnd
string
完成时间(时分秒) 结束
可选
createdStart
string
创建时间(时分秒)开始
可选
createdEnd
string
创建时间(时分秒)结束
可选
code
string
加工单号
可选
type
string
加工类型 加工:ITEM_PROCESS;反加工:TYPE_ITEM_REVERSE_PROCESS;改码:ITEM_BARTER;标准:TYPE_NORMAL_PROCESS;印花:TYPE_ITEM_PRINT_PROCESS
可选
status
string
加工状态 待审核: WAIT_VERIFY; 待加工: WAIT_PRODUCT; 加工中: PRODUCING; 已完成: FINISHED; 已作废: CLOSED
可选
pageNo
integer
可选
pageSize
integer
可选

请求示例

示例: ----------------- ```` { "modifiedStart": "2023-11-30 00:00:00", "modifiedEnd": "2023-11-30 23:59:59", "productTimeEnd": "2023-11-30 18:00:00", "productTimeStart": "2023-11-30 08:00:00", "finishedTimeEnd": "2023-11-30 23:59:59", "finishedTimeStart": "2023-11-30 00:00:00", "createdEnd": "2023-11-30 23:59:59", "createdStart": "2023-11-30 00:00:00", "code": "123456", "type": "ITEM_PROCESS", "status": "FINISHED" } ````

响应参数

参数名
类型
描述
必填
traceId
string
示例:3083234987791268223
必填
list
array
数据列表
必填
code
string
加工单code
必填
targetWaveStockType
string
加工波次原料下架暂存区
必填
materialWarehouseId
int
原料仓库id
必填
productTime
int
加工日期
必填
type
string
业务类型
必填
stockRegionType
int
示例:0
必填
modified
int
修改时间
必填
id
int
必填
materialWarehouseName
string
原料仓库名称
必填
created
int
创建时间
必填
productWarehouseId
int
成品仓库id
必填
waveId
int
波次号
必填
productWarehouseName
string
成品仓库名称
必填
materialUnShelvesPosition
int
原材料扣减区,货位 :0, 货位(拣货区):1,货位(备货区):2,货位(次品区):3,通用暂存区:4,拣选暂存区:5, 货位(先拣货区再备货区):6,货位(先备货区再拣货区):7
必填
createId
int
制单人id
必填
finishedTime
int
完成日期
必填
enableStatus
int
必填
createName
string
制单人姓名
必填
status
string
加工单状态
必填
total
int
必填
success
boolean
示例:true
必填

响应示例

{ "traceId": "3083234987791268223", "list": [ { "shortId": 1, "code": "JG569806611460608", "targetWaveStockType": "COMMON", "materialWarehouseId": 69583, "productTime": 1700202847000, "type": "ITEM_PROCESS", "stockRegionType": 0, "modified": 978278400000, "id": 4557695749677546, "table": "stock_product_order_vo", "orderPrintCount": 0, "uniqueCodePrintCount": 0, "materialWarehouseName": "默认仓库", "created": 1700202853000, "productWarehouseId": 69583, "waveId": 0, "productWarehouseName": "默认仓库", "materialUnShelvesPosition": 0, "companyId": 51330, "boxAllocate": 0, "totalNum": 4, "autoCalculateProductFee": false, "createId": 466259816571392, "finishedTime": 978278400000, "productShelvesPosition": 4, "enableStatus": 1, "createName": "超级管理员", "status": "WAIT_VERIFY" } ], "total": 1, "success": true }

异常示例

```` { "code": "25", "msg": "服务方法(item.single.get:1.0)的签名无效", "success": false, "trace_id": "3553483395423660" } ````

错误码解释

| 错误码 |错误信息|解决方案| |-|-|-| |content1|content2|content3|