描述

获取sku的批次库存信息

路径

Http verbURL
POST

/api/supplier-service/v1/jofo/getStorageAgeBySku

请求头样例

POST  /api/supplier-service/v1/jofo/getStorageAgeBySku

  HTTP/1.1
Host: http://cfs-qa.etowertech.com/
Content-Type: application/json
Accept: application/json
appId:etotest8xkIIphLnbkjRACNj4P
timestamp:1752496704166

signature:CC211FB0FFC6A1CD5ED373D0CFA2FF5D字段


字段名称类型备注
skuIdsList<String>skuId集合
lockStatusInteger

0-未锁定 1-锁定

skuNameCnStringskuName中文
locationNamesList<String>库位名称集合
skuNameEnStringskuName英文
barcodesList<String>条码信息

请求样例



{
"skuIds":["KR1817224120900443S"],
"lockStatus":0,
"skuNameCn":"10吨捆绑带",
"locationNames":["7","8"],
"skuNameEn":"10吨捆绑带",
"barcodes":["2322xx112","ssa333adx"]
}


{
    "skuIds": [
        "JO1883925072200001S"
    ]
}


返回样例

字段名称类型备注
dataList<Object>
data[].availableQtyInteger

可用库存

data[].onHandQtyInteger在库库存
data[].occupiedQtyInteger占用库存
data[].agingDaysInteger库龄天数
data[].putAwayDate
Date上架时间
data[].skuIdStringskuId
data[].locationNameString库位
data[].warehouseCodeString仓库编码
data[].lockStatusInteger锁定状态 0 - 未锁定 1-锁定
data[].skuNameCnStringskuName中文
data[].skuNameEnStringskuName英文
data[].skuStringsku编码
data[].grossWeightBigDecimal重量
data[].heightBigDecimal
data[].widthBigDecimal
data[].lengthBigDecimal
data[].weightUnitString 重量单位





{
    "code": "0",
    "data": {
        "endRow": 16,
        "hasNextPage": true,
        "hasPreviousPage": false,
        "isFirstPage": false,
        "isLastPage": false,
        "list": [
            {
                "agingDays": 22,
                "availableQty": 10,
                "batchNo": "BN153192506300001",
                "grossWeight": "",
                "grossWeightActual": "",
                "locationName": "C-01-01",
                "locationType": 1,
                "locationTypeMsg": "良品",
                "lockStatus": 0,
                "occupiedQty": 0,
                "onHandQty": 10,
                "orderNo": "IBETO-WMS2506300001",
                "productHeight": 10,
                "productLength": 20,
                "productWidth": 30,
                "putAwayDate": "2025-06-30 14:21:47",
                "shipperId": 15319,
                "sku": "ETO1531924121900001S",
                "skuNameCn": "草莓酸奶",
                "skuNameEn": "caomeisuannai",
                "skuId": "ETO1531924121900001S",
                "unit": "kg",
                "warehouseCode": "ETO-WMS",
                "weightUnit": "KG",
                "zoneCode": ""
            }
        ],
        "navigateFirstPage": 1,
        "navigateLastPage": 1,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ],
        "nextPage": 1,
        "pageNum": 0,
        "pageSize": 100,
        "pages": 1,
        "prePage": 0,
        "size": 16,
        "startRow": 1,
        "total": "16"
    },
    "errors": "",
    "message": "",
    "messageId": "",
    "success": true,
    "warnList": ""
}


{
	"code": "0",
	"data": {
		"endRow": 3,
		"hasNextPage": true,
		"hasPreviousPage": false,
		"isFirstPage": false,
		"isLastPage": false,
		"list": [
			{
				"agingDays": 5,
				"availableQty": 27,
				"barcode": "test001",
				"batchNo": "BN188392507250001",
				"grossWeight": 0.010,
				"grossWeightActual": 0.010,
				"invAgingId": "2507251117021000004",
				"locationName": "A001",
				"locationType": 1,
				"locationTypeMsg": "良品",
				"lockStatus": 0,
				"lockStatusMsg": "Unlocked",
				"occupiedQty": 0,
				"onHandQty": 27,
				"orderNo": "IBjofo_test_0012507250001",
				"productHeight": 1.0,
				"productHeightActual": 1.0,
				"productLength": 4.0,
				"productLengthActual": 4.0,
				"productWidth": 2.0,
				"productWidthActual": 2.0,
				"putAwayDate": "2025-07-25 11:17:02",
				"shipperId": 18839,
				"sku": "test001",
				"skuId": "JO1883925072200001S",
				"skuNameCn": "白盒1#",
				"skuNameEn": "WhiteBox1#",
				"thirdSkuNo": "JO1883925072200001S",
				"unit": "",
				"warehouseCode": "jofo_test_001",
				"weightUnit": "KG",
				"zoneCode": "BH001"
			}
		],
		"navigateFirstPage": 1,
		"navigateLastPage": 1,
		"navigatePages": 8,
		"navigatepageNums": [
			1
		],
		"nextPage": 1,
		"pageNum": 0,
		"pageSize": 100,
		"pages": 1,
		"prePage": 0,
		"size": 3,
		"startRow": 1,
		"total": "3"
	},
	"errors": "",
	"message": "",
	"messageId": "",
	"success": true,
	"warnList": ""
}




{
    "code":"600224",
    "data":"",
    "errors":"",
    "message":"Client Reference No are duplicate",
    "messageId":"",
    "success":false,
    "warnList":""
}