预留、预留解除、预留释放微服务接口

路由:mpscmm
1. 预留服务
接口名:reserveBatch(Collection<Map<String, Object>> params)
/** 批量预留
* @param params 标准需求单的字段内容(key:value格式)
* @return 预留结果
*/
public String reserveBatch(Collection<Map<String, Object>> params)
Map入参说明:标准需求单 元数据"msmod_std_request_bill" 的字段内容(key:value格式) 返回参数:JSON字符串
必录字段:
字段标识 | 字段名 | 备注 |
bill_no | 单据编号 | |
bill_id | 单据ID | |
bill_entry | 单据体 | value为List<Map<String,Object>> 格式 |
entry_id | 分录ID | 分录字段 |
material | 物料 | 分录字段 |
unit | 计量单位 | 分录字段 |
base_unit | 基本计量单位 | 分录字段 |
qty | 数量 | 分录字段 |
base_qty | 基本数量 | 分录字段 |
返回参数说明:
字段标识 | 字段名 | 备注 |
reserveResultType | 预留结果 | Failed,PartSuccess,FullSuccess |
errorMsg | 预留失败时错误信息 | |
entryResultList | 分录预留结果集 | |
entryId | 分录id | 分录信息 |
seq | 分录行号 | 分录信息 |
reservedQty | 分录预留数量 | 分录信息 |
reservedBaseQty | 分录预留基本数量 | 分录信息 |
reservedQty2nd | 分录预留辅助数量 | 分录信息 |
reserveResultType | 分录预留结果 | 分录信息(Failed,PartSuccess,FullSuccess) |
errorMsg | 预留失败时错误信息 | 分录信息 |
stdInvResultList | 具体的预留库存数据 | 子分录 |
invID | 即时库存id | 子分录信息 |
qty | 具体预留即时库存数量 | 子分录信息 |
baseQty | 具体预留即时库存基本数量 | 子分录信息 |
qty2nd | 具体预留即时库存辅助数量 | 子分录信息 |
invInfo | 即时库存详细信息 | 子分录信息 |
返回结果示例:
//预留失败
{
"billId": 1097037327425,
"billResultHandler": "2",
"entryResultList": [
{
"entryId": 7777,
"reserveResultType": "Failed",
"reservedBaseQty": 0,
"reservedQty": 0,
"reservedQty2nd": 0,
"seq": 1,
"stdInvResultList": []
}
],
"errorMsg": " 不 足 不 预 留 ",
"reserveResultType": "Failed"
}
//预留成功
{
"billId": 1111111113,
"billResultHandler": "1",
"entryResultList": [
{
"entryId": 1,
"errorMsg": "",
"reserveResultType": "FullSuccess",
"reservedBaseQty": 1.0,
"reservedQty": 1.0,
"reservedQty2nd": 0.0,
"seq": 0,
"stdInvResultList": [
{
"baseQty": 1.0,
"invInfo": {
"keeper_type": "bos_org",
"reserve_base_qty": 0.0,
"org": 925863462209326080,
"auxpty": 0,
"baseqty": 100.0,
"lotnum": "",
"qty": 100.0,
"invstatus": 691928582720825344,
"reserve_qty2nd": 0.0,
"id": 1042078371569335296,
"baseunit": 970288052037523456,
"location": 0,
"invtype": 688884005529250816,
"warehouse": 1016694552897012736,
"owner": 925840770143881216,
"unit": 970288052037523456,
"materiel": 981256502406822107,
"res
预留、预留解除、预留释放微服务接口
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



