Skip to content

Latest commit

 

History

History
127 lines (126 loc) · 4.44 KB

11-22 2017 wms.md

File metadata and controls

127 lines (126 loc) · 4.44 KB
  • URL:http://localhost:8080/wms/portal/stockInfo/stockQuantityFind?warehouseId=4 查询一个仓库

    {
    "status": "0",
    "message": "Success",
    "output": [
        {
            "statistic": [
                {
                    "#materialType": "Accessory",   //物料类形 (带翻译)
                    "warehouseId": 4,               //仓库Id
                    "materialType": "ACCESSORY",    //物料类型
                    "count": 3,                     //物料项目数量 Roll / Item / Unit
                    "sumQty1": 400.5,               //数量(码长或箱数)    YRD / PCS / CN
                    "sumQty2": 23,                  //重量    KG
                    "warehouseName": "BYSF1"        //仓库名
                },
                {
                    "#materialType": "Fabric",
                    "warehouseId": 4,
                    "materialType": "FABRIC",
                    "count": 372,
                    "sumQty1": 1000033645.62,
                    "sumQty2": 2131220884.13,
                    "warehouseName": "BYSF1"
                },
                {
                    "#materialType": "Garment",
                    "warehouseId": 4,
                    "materialType": "GARMENT",
                    "count": 1,
                    "sumQty1": null,
                    "sumQty2": null,
                    "warehouseName": "BYSF1"
                },
                {
                    "#materialType": "Machine",
                    "warehouseId": 4,
                    "materialType": "MACHINE",
                    "count": 1,
                    "sumQty1": null,
                    "sumQty2": null,
                    "warehouseName": "BYSF1"
                },
                {
                    "#materialType": "Sample",
                    "warehouseId": 4,
                    "materialType": "SAMPLE",
                    "count": 264,
                    "sumQty1": 259,
                    "sumQty2": 627,
                    "warehouseName": "BYSF1"
                }
            ],
            "warehouseId": 4,
            "warehouseName": "BYSF1"
            }
        ]
    }
  • URL:http://localhost:8080/wms/portal/stockInfo/stockQuantityFind?warehouseId=4,6 查询两个或多个仓库

    {
        "status": "0",
        "message": "Success",
        "output": [
            {
                "statistic": [
                    {
                        "#materialType": "Fabric",
                        "warehouseId": 4,
                        "materialType": "FABRIC",
                        "count": 376,
                        "sumQty1": 1000033973.62,
                        "sumQty2": 2131220948.13,
                        "warehouseName": "BYSF1"
                    },
                    {
                        "#materialType": "Garment",
                        "warehouseId": 4,
                        "materialType": "GARMENT",
                        "count": 1,
                        "sumQty1": null,
                        "sumQty2": null,
                        "warehouseName": "BYSF1"
                    },
                    {
                        "#materialType": "Machine",
                        "warehouseId": 4,
                        "materialType": "MACHINE",
                        "count": 1,
                        "sumQty1": null,
                        "sumQty2": null,
                        "warehouseName": "BYSF1"
                    },
                    {
                        "#materialType": "Sample",
                        "warehouseId": 4,
                        "materialType": "SAMPLE",
                        "count": 264,
                        "sumQty1": 259,
                        "sumQty2": 627,
                        "warehouseName": "BYSF1"
                    }
                ],
                "warehouseId": 4,
                "warehouseName": "BYSF1"
            },
            {
                "statistic": [
                    {
                        "#materialType": "Accessory",
                        "warehouseId": 6,
                        "materialType": "ACCESSORY",
                        "count": 13,
                        "sumQty1": 14080.5,
                        "sumQty2": 13201.3,
                        "warehouseName": "BYSA1"
                    }
                ],
                "warehouseId": 6,
                "warehouseName": "BYSA1"
            }
        ]
    }