接口名称:

打印服务点库存和使用信息分页

接口描述:

打印服务点库存和使用信息分页

请求路径:

/stock/paper/page

请求方式:

GET

请求参数:

  • Header
参数名 参数值 必填 描述
Content-Type application/x-www-form-urlencoded Y
  • Param
参数名 类型 必选 描述
sn Integer N 打印服务器sn
type Integer N 记录类型0:统计1:重置2:添加库存
pageNo Integer Y 页数
rowCount Integer Y 行数
searchBeginDate LocalDate N 开始时间(yyyy-MM-dd)
searchEndDate LocalDate N 结束时间(yyyy-MM-dd)
  • Body

请求示例:

返回参数:

参数名 类型 必选 描述
data List N 响应内容
└─element PaperStockResVo Y
└─└─sn Integer N 打印服务器sn
└─└─stockA3 Integer N A3纸库存量
└─└─stockA4 Integer N A4纸库存量
└─└─usedA3 Integer N A3纸使用量
└─└─usedA4 Integer N A4纸使用量
└─└─hisStockA3 Integer N A3纸历史库存量
└─└─hisStockA4 Integer N A4纸历史库存量
└─└─hisUsedA3 Integer N A3纸历史使用量
└─└─hisUsedA4 Integer N A4纸历史使用量
└─└─date LocalDateTime N 记录时间
└─└─type Integer N 记录类型0:统计1:重置2:添加库存
count long N 总数
code int N 响应码
message String N 响应信息

返回示例:

{
    "code": 0,
    "message": "请求成功",
    "count":20,
    "data": [
            {
                "pageNo": null,
                "rowCount": null,
                "searchBeginDate": null,
                "searchEndDate": null,
                "searchBeginTime": null,
                "searchEndTime": null,
                "sn": 1,
                "stockA3": 500,
                "stockA4": 500,
                "usedA3": 0,
                "usedA4": 2124,
                "hisStockA3": 0,
                "hisStockA4": 0,
                "hisUsedA3": 0,
                "hisUsedA4": 0,
                "date": "2023-09-20 13:39:14",
                "type": 2
            },
            {
                "pageNo": null,
                "rowCount": null,
                "searchBeginDate": null,
                "searchEndDate": null,
                "searchBeginTime": null,
                "searchEndTime": null,
                "sn": 1,
                "stockA3": 0,
                "stockA4": 0,
                "usedA3": 0,
                "usedA4": 2124,
                "hisStockA3": 0,
                "hisStockA4": 0,
                "hisUsedA3": 0,
                "hisUsedA4": 0,
                "date": "2023-09-20 13:36:30",
                "type": 0
            }
        ]
}
文档更新时间: 2023-10-11 14:28   作者:吴温立