文档
测试

商品管理-餐次商品列表接口

POST
139.196.110.143/dev-api/system/productSku/listShopProductMealTimes?pageNum=1&pageSize=12

请求头

参数名
类型
描述
必填
Authorization
必填

请求参数

application/json
参数名
类型
描述
必填
mealTimesId
int
餐次ID(传null或空表示查全部)
可选
categoryId
int
商品分类ID(第三级,品种)(传null表示查全部)
可选
plantformCategoryId
int
中台分类ID(传null表示查全部)
可选
skuName
string
商品名称(传null表示查全部,支持模糊)
必填
status
int
商品状态;1-上架。0-下架
必填
isPromotion
int
是否有营销活动。-1-所有。1-参加活动;0-未参加活动
必填

响应参数

application/json
参数名
类型
描述
必填
code
int
状态码。200-成功;其他-失败
必填
msg
string
成功或失败提示
必填
rows
objectArray
必填
skuName
string
必填
categoryId
int
商品分类ID(第三级,品种)
必填
plantformCategoryId
int
平台商品分类ID
必填
price
decimal
标准价
必填
productCode
string
聚合商品编码,SU编码
必填
vipPrice
decimal
会员价
必填
weight
decimal
商品重量
必填
unit
string
单位
必填
stockNum
int
库存数量
必填
promotionId
int
营销活动ID
必填
promotionName
string
营销活动名称
必填
mealTimesIds
string
餐次ID,多个餐次id之间通过逗号拼接
必填
mealTimesNames
string
餐次名称,多个餐次名称之间通过逗号拼接
必填
total
int
数量
必填

说明 / 示例

入参 { "mealTimesId":1, "skuName": null, "categoryId": null, "plantformCategoryId": null } 出参 { "total": 3, "rows": [ { "createBy": null, "createTime": null, "updateBy": null, "updateTime": "2024-08-01 23:21:10", "remark": null, "skuId": 1, "skuName": "土猪鲜肉大包子", "storeId": 0, "cityId": 0, "districtId": 0, "itemCode": "1", "accessCode": "1", "adminSkuId": 0, "plantformCategoryId": 1, "categoryId": 1, "skuImage": "", "productCode": "1", "promotionId": 0, "promotionName":"营销活动名称", "mealTimesIds":"餐次ID:1,2,3 同一个商品属于多个餐次,通过逗号(半角)拼接", "mealTimesNames":"餐次名称:中餐,早餐。多个餐次名称通过逗号拼接", "video": "", "price": 0, "vipPrice": 0, "skuStatus": 1, "status": 1, "weight": 0, "packageWeight": 0, "grossMargin": 0, "commissionRatio": 0, "unit": "1", "stockNum": 0 }, { "createBy": null, "createTime": null, "updateBy": null, "updateTime": "2024-08-01 23:21:11", "remark": null, "skuId": 2, "skuName": "粉丝包", "storeId": 0, "cityId": 0, "districtId": 0, "itemCode": "2", "accessCode": "2", "adminSkuId": 0, "plantformCategoryId": 2, "categoryId": 2, "skuImage": "", "productCode": "2", "promotionId": 0, "promotionName":"营销活动名称", "mealTimesIds":"餐次ID:1,2,3 同一个商品属于多个餐次,通过逗号(半角)拼接", "mealTimesNames":"餐次名称:中餐,早餐。多个餐次名称通过逗号拼接", "video": "", "price": 0, "vipPrice": 0, "skuStatus": 1, "status": 1, "weight": 0, "packageWeight": 0, "grossMargin": 0, "commissionRatio": 0, "unit": "1", "stockNum": 0 }, { "createBy": null, "createTime": null, "updateBy": null, "updateTime": "2024-08-01 23:21:12", "remark": null, "skuId": 3, "skuName": "梅干菜包子", "storeId": 0, "cityId": 0, "districtId": 0, "itemCode": "3", "accessCode": "3", "adminSkuId": 0, "plantformCategoryId": 3, "categoryId": 3, "skuImage": "", "productCode": "3", "promotionId": 0, "promotionName":"营销活动名称", "mealTimesIds":"餐次ID:1,2,3 同一个商品属于多个餐次,通过逗号(半角)拼接", "mealTimesNames":"餐次名称:中餐,早餐。多个餐次名称通过逗号拼接", "video": "", "price": 0, "vipPrice": 0, "skuStatus": 1, "status": 1, "weight": 0, "packageWeight": 0, "grossMargin": 0, "commissionRatio": 0, "unit": "3", "stockNum": 0 } ], "code": 200, "msg": "查询成功" }