用户全量获取商品信息接口
简要描述:
- 用户全量获取商品信息接口
请求URL:
http://192.168.12.67/s1/openapi/openapi/base/arch/completepullarchinfo
请求方式:
- POST
请求类型:
- application/json
加密类型:
-
RSA
请求示例
{
"ispInfoId": 10001,
"data":
"MffHgjor2AWc0Hh/zZnj2+WdJS/cifz0FIcGyRacdCEQZWM+/QIN5tBYYweRVkE1gSo/dkrNgwilipJcxHf8LvNKS3L6wRFV04Szmc3G9+r+ueZ3SX7L/9Cp1N/oIqwhRTMZkRWjVE3xLTj6b0QdgjWEn1pzDXRK5DPahH+BjGY="
}
data请求参数说明:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
centerId | 是 | Integer | 集团ID |
type | 是 | Integer | 1:商品 2:商品类别 3:单位 4:套餐 5:券 6:支付方式 7:营销活动 |
limit | 是 | Integer | 每页显示条数 |
page | 是 | Integer | 当前页数 |
startTime | 否 | String | 品相修改时间筛选 起始时间 yyyy-MM-dd HH:mm:ss |
endTime | 否 | String | 品相修改时间筛选 结束时间 yyyy-MM-dd HH:mm:ss |
返回示例
{
"result": 0,
"msg": "请求成功",
"code": "0",
"errorMsg": "",
"data":
"hJOx8SJeNp8Yb2Pn+1EuHJ4QPy0FlwVawCcYtXb8Af+j+3sv8jtYAHebjbqr56wvfATPiF6xSGBWVTNLwMK2MENSSuYnTXaVLJwZQ27r20TrL25Xh5Rvc0kukDJ97sDKMYfuu+mNG+C/fdhW2xgHDyCWz3Jtl+n/3GP8nJtbNZk="
}
{
"result": 0,
"msg": "请求成功",
"code": "0",
"errorMsg": "",
"data":
"{
"page": 1,
"limit": 10,
"count": 2,
"itemList": [
{
"id": "1049400000000000001",
"code": "0001",
"name": "打包盒",
"unitName": "个",
"isMostUnit": false,
"isBox": true,
"isPackage": false,
"stdPrice": 1.0,
"costPrice": 1.0,
"isEnable": true,
"itemClassId": "1049400000000000002",
"sortOrder": "0",
"unitId": "1049400000000000001",
"itemClassName": "其他",
"pinyin": "DBH",
"itemCode": "0001",
"itemType": 0,
"originItemBarcodeList": [
],
"createTime": "2021-02-02 20:41:28",
"creatorId": "1049400000000000001",
"modifyTime": "2021-02-02 20:41:28",
"modifierId": "1049400000000000001",
"delflg": 0,
"itemImgList": [
],
"itemTaxRate": 6.0
},
{
"id": "1049400000000000208",
"code": "0053",
"name": "测试品相",
"unitName": "例",
"isMostUnit": false,
"isBox": false,
"isPackage": false,
"stdPrice": 3.0,
"costPrice": 3.0,
"isEnable": true,
"itemClassId": "1049400000000000200",
"spicy": 1,
"isSpicy": false,
"sortOrder": "0",
"unitId": "1049400000000000003",
"itemClassName": "主食",
"pinyin": "CSPX",
"itemCode": "3333",
"storageMode": "冷藏",
"guaranteeDay": 10,
"bulkDay": 8,
"itemType": 0,
"originItemBarcodeList": [
],
"intro": "菜品介绍",
"complaintTele": "389784692",
"itemClassTypeName": "分装商品",
"createTime": "2021-05-12 13:48:07",
"creatorId": "1049400000000000001",
"modifyTime": "2021-05-12 13:48:07",
"modifierId": "1049400000000000001",
"delflg": 0,
"itemImgList": [
],
"itemTaxRate": 6.0
}
]
}"
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
result | int | 状态(0-成功,-1-失败) |
msg | String | 调用成功返回信息) |
code | String | 调用结果Code |
errorMsg | String | 错误信息 |
data | String | 返回数据(加密后) |
data
参数名 | 类型 | 说明 |
---|---|---|
page | Integer | 当前页数 |
limit | Integer | 每页显示条数 |
count | Integer | 总条数 |
itemList | List<ThirdItemVo> | 内容 |
ThirdItemVo
参数名 | 类型 | 说明 |
---|---|---|
id | Long | 商品ID |
code | String | 菜品代码 |
name | String | 菜品名称 |
pinyin | String | 拼音 |
stdPrice | BigDecimal | 销售价格 |
costPrice | BigDecimal | 成本价格 |
unitId | Long | 单位id |
unitName | String | 单位名称 |
itemClassTypeName | String | 分类类型名称 |
itemClassId | Long | 类别ID |
itemClassName | String | 类别名称 |
itemSpec | String | 规格 |
isMostUnit | Boolean | 是否多单位 |
isBox | Boolean | 是否是打包盒 |
isPackage | Boolean | 是否是套餐 |
isEnable | Boolean | 是否启用 |
spicy | Integer | 辣度 |
isSpicy | Boolean | 是否启用辣度 |
itemBarcodes | String | 多条码 |
itemCode | String | 条形码 |
belongItemId | Long | 所属品项ID |
storageMode | String | 保存方式 |
guaranteeDay | String | 保质期 |
bulkDay | String | 散装保质期 |
itemType | Integer | 品项类型0: 商品 1: 原料 |
complaintTele | String | 监督电话 |
originItemBarcodeList | List<ItemBarcode> | 当前菜品所有条码 |
intro | String | 商品简介 |
createTime | Date | 创建时间 |
creatorId | Long | 创建人id |
modifyTime | Date | 修改时间 |
modifierId | Long | 修改人id |
delflg | Integer | 删除标志 0正常 1删除 |
itemImgList | List<ThirdItemImgVo> | 品项图片信息 |
itemTaxRate | BigDecimal | 品项税率(暂为集团店设置税率, 默认为6%) |
receiptItemName | String | 开票商品名称 |
taxTypeName | String | 税收分类名称 |
taxTypeCode | String | 税收分类编码 |
saleType | Integer | 销售方式 0:店内点餐 2:小程序 5:全部可售卖 |
originItemBarcodeList
参数名 | 类型 | 说明 |
---|---|---|
itemId | Long | 商品ID |
barcode | String | 商品条形码 |
isMajor | String | 是否主条码 |
itemName | String | 菜品名称 |
placeName | String | 产地 |
itemImgList
参数名 | 类型 | 说明 |
---|---|---|
imgType | Integer | 资源类型:0:图片 2:动图 3:视频 4:副图 |
imgUrl | String | 资源路径 |
备注
- 更多返回错误代码请看首页的错误代码描述