product_size.md 8.85 KB

产品尺码测量管理


查询产品尺码列表信息

接口名:productSize/queryProdSizeList

入参


属性名称 类型 例子 说明
productSkn int 234234 产品skn
brandId int 23423 品牌id
productSku int 234234 产品sku
maxSortId int 223 产品大类id
arriveStartTime int 13555322333 到货开始时间
arriveEndTime int 13655322333 到货开始时间
isMeasure string 1 Y 已测量 N 未测量


返回

请求样例:
{
    "productSkn": 133233
}
正常返回:
{
  "code": 200,
  "data": {
    "list": [
      {
        "brandName": "outerspace",
        "expectArrivalTime": 0,
        "gender": "1",
        "genderName": "男",
        "productName": "outspace 5401064-90101\t小丑LOGO波点圆舞曲帽T",
        "productSkn": 51088104,
        "productType": "男生\r\n服配\r\n靴子\r\n",
        "sizeRelationsList": [
          {
            "prdSizeAttributeBoList": [
              {
                "isMeasure": 1,
                "sizeAttributeId": 1,
                "sizeAttributeName": "后中长134567"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 3,
                "sizeAttributeName": "肩宽"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 4,
                "sizeAttributeName": "胸围",
                "sizeValue": "96"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 5,
                "sizeAttributeName": "袖长"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 48,
                "sizeAttributeName": "前衣长",
                "sizeValue": "63"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 49,
                "sizeAttributeName": "后衣长",
                "sizeValue": "63"
              }
            ],
            "referenceName": "165/84A",
            "sizeId": 207,
            "sizeName": "S"
          },
          {
            "prdSizeAttributeBoList": [
              {
                "isMeasure": 1,
                "sizeAttributeId": 1,
                "sizeAttributeName": "后中长134567"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 3,
                "sizeAttributeName": "肩宽"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 4,
                "sizeAttributeName": "胸围",
                "sizeValue": "98"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 5,
                "sizeAttributeName": "袖长"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 48,
                "sizeAttributeName": "前衣长",
                "sizeValue": "66"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 49,
                "sizeAttributeName": "后衣长",
                "sizeValue": "66"
              }
            ],
            "referenceName": "170/88A",
            "sizeId": 203,
            "sizeName": "M"
          },
          {
            "prdSizeAttributeBoList": [
              {
                "isMeasure": 1,
                "sizeAttributeId": 1,
                "sizeAttributeName": "后中长134567"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 3,
                "sizeAttributeName": "肩宽"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 4,
                "sizeAttributeName": "胸围",
                "sizeValue": "104"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 5,
                "sizeAttributeName": "袖长"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 48,
                "sizeAttributeName": "前衣长",
                "sizeValue": "68"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 49,
                "sizeAttributeName": "后衣长",
                "sizeValue": "68"
              }
            ],
            "referenceName": "175/92A",
            "sizeId": 201,
            "sizeName": "L"
          },
          {
            "prdSizeAttributeBoList": [
              {
                "isMeasure": 1,
                "sizeAttributeId": 1,
                "sizeAttributeName": "后中长134567"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 3,
                "sizeAttributeName": "肩宽"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 4,
                "sizeAttributeName": "胸围",
                "sizeValue": "110"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 5,
                "sizeAttributeName": "袖长"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 48,
                "sizeAttributeName": "前衣长",
                "sizeValue": "71"
              },
              {
                "isMeasure": 1,
                "sizeAttributeId": 49,
                "sizeAttributeName": "后衣长",
                "sizeValue": "71"
              }
            ],
            "referenceName": "180/96A",
            "sizeId": 211,
            "sizeName": "XL"
          }
        ]
      }
    ],
    "page": 1,
    "size": 10,
    "total": 1,
    "totalPage": 1
  },
  "md5": "26656d44117ef8df98717c018a3d4040",
  "message": "产品测量信息列表"
}
异常返回:
{
  "code": 405,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": ""
}

查询产品应该要测量的属性列表

接口名:productSize/queryAllProdMeasureInfo`

入参


属性名称 类型 例子 说明
productSkn int 526456456 产品skn 必传

返回

请求样例: 新增
{    "productSkn":234234234
}
返回
{
  "code": 200,
  "data": [
    {
      "productSkn": 50000057,
      "sizeAttributeId": 1,
      "sizeAttributeName": "后中长134567",
      "sizeId": 203,
      "sizeName": "M"
    },
    {
      "productSkn": 50000057,
      "sizeAttributeId": 1,
      "sizeAttributeName": "后中长134567",
      "sizeId": 203,
      "sizeName": "M"
    },
    {
      "productSkn": 50000057,
      "sizeAttributeId": 3,
      "sizeAttributeName": "肩宽",
      "sizeId": 207,
      "sizeName": "S"
    },
    {
      "productSkn": 50000057,
      "sizeAttributeId": 4,
      "sizeAttributeName": "胸围",
      "sizeId": 203,
      "sizeName": "M"
    },
    {
      "productSkn": 50000057,
      "sizeAttributeId": 49,
      "sizeAttributeName": "后衣长",
      "sizeId": 203,
      "sizeName": "M"
    },
    {
      "productSkn": 50000057,
      "sizeAttributeId": 49,
      "sizeAttributeName": "后衣长",
      "sizeId": 203,
      "sizeName": "M"
    },
    {
      "productSkn": 50000057,
      "sizeAttributeId": 49,
      "sizeAttributeName": "后衣长",
      "sizeId": 207,
      "sizeName": "S"
    }
  ],
  "md5": "5d0a55a6b686197bf41658a16cbef4fd",
  "message": ""
}

新增或修改产品尺码测量

接口名:productSize/saveProdSizeInfo

入参


属性名称 类型 例子 说明
productSkn int 234234 产品skn
sizeInfoList array [ {"productSkn":50000057, "sizeId":207,"sizeAttributeId":48,"sizeValue":"555", "isMeasure":0 }] 尺码测量属性
productSizeReferList array [ { "sizeId":207,"gender":1, "referenceName":"170/80A"}] 参考尺码属性
noMeasureIds array ["21","213"] 无需测量的尺码id

返回

请求样例: 新增
{
    "productSkn":50000057,
    "noMeasureIds":["21","213"],
    "sizeInfoList":
       [ {"productSkn":50000057,
        "sizeId":207,
        "sizeAttributeId":48,
        "sizeValue":"555",
        "isMeasure":0
       }
    ],
    "productSizeReferList":
        [ {
        "sizeId":207,
        "gender":1,
        "referenceName":"170/80A"
        }
    ]
}
返回
{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "新增产品信息成功"
}