文档
测试

分页查询用户订单

GET
/api/orders/getlist

接口描述

待付款,待发货,待收货,已完成,已取消订单查询,也可以查询全部。

请求头

参数名
类型
描述
必填
Cookie
String
参数名用Cookie或者Authorization
必填

请求参数

参数名
类型
描述
必填
limit
int
每页显示条数
必填
page
int
当前页码
必填
ordertype
String
VIP/BATCH/TOP/MALL/FAST
必填
statustext
String
订单状态描述。不传默认查询全部,待付款,待发货,待收货,已完成,已取消
可选
_rnd
long
当前时间13位时间戳
可选

响应参数

参数名
类型
描述
必填
page
int
当前页码
必填
pageSize
int
每页显示条数
必填
records
int
总记录数
必填
total
int
总页数
必填
size
int
当前页有多少条数据
必填
rows
array
数据列表。
必填
delivery_region
string
送货地址-区。示例:西城区
可选
delivery_address
string
送货地址-详细地址。示例:光明顶
可选
amt_point
BigDecimal
订单所需积分(番豆)。示例:0
可选
catname
string
商品分类名称(最后一级)。示例:美妆个护
可选
price_money
BigDecimal
单价(单位:元)。示例:99
可选
discount
BigDecimal
折扣,优惠券等。示例:0
可选
remark
string
备注。示例:
可选
ispaied
int
是否已支付, 0:未付, 1:已付,2已付已确认,3确认失败'
可选
uid
string
用户uid。示例:302143
可选
catid
int
商品分类ID(最后一级)。示例:1003
可选
delivery_province
string
送货地址-省。示例:北京市
可选
prdname
string
商品名称。示例:LASUS莱秀思温和净颜卸妆水
可选
evaluated
int
是否已评价。示例:0-否,1-是
可选
prdid
int
商品ID。示例:242
可选
price_point
BigDecimal
购买商品所需单价(番豆,积分)示例:0
可选
quantity
int
数量。示例:1
可选
cost
BigDecimal
成本价(单位:元)。示例:13
可选
orderid
string
订单id。示例:20210929101251723677
可选
mobile
string
联系电话。示例:15398887765
可选
shipfee
BigDecimal
运送费(单位元),shipfee=0表示免运费
可选
marking_price
BigDecimal
吊牌价,划线价。示例:99
可选
ordertime
string
订单创建时间。示例:2021-09-29T02:12:51.000+00:00
可选
delivery_receiver
string
送货地址-收货人。示例:hayden
可选
isbalance
int
是否已计佣金,后台跑批。示例:0-否,1-是
可选
shipping_mode
string
0:无需送,1:物流运送,2:自提
可选
service_status
int
售后状态,预留给今后用
可选
iconurl
string
商品图片URL。示例:https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/products/2021/06/29/products_2021-06-29_03-13-21_71304.png
可选
amt_money
BigDecimal
订单金额。示例:99
可选
delivery_tel
string
送货地址-电话。示例:15398887765
可选
total_money
BigDecimal
实际金额=订单金额-优惠折扣金额+运费
可选
prdno
string
商品编号。示例:210100100100001
可选
total_point
BigDecimal
实际积分=金额(积分)
可选
delivery_city
string
送货地址-市
可选
custname
string
客户名称或订购人姓名、昵称
可选
ordertype
string
订单类型,VIP--VIP订单, BATCH, TOP, MALL--商城订单,FAST--支付即确认订单
可选
status
int
0:未确认,1:已确认未付款,2:已付款待发货, 3:已发货待签收,4:已签收, 5:完成订单, -1:用户取消订单, -2: 已失效, -3:已退货
可选
hasNextPage
boolean
是否还有下一页,false--没有下一页,true--有下一页,示例:false
必填

说明 / 示例

全部订单查询请求示例:`/api/orders/getlistlimit=10&page=1&ordertype=&statustext=&_rnd=1632884409173` 待付款订单查询示例: ``` /api/orders/getlist?limit=10&page=1&ordertype=&statustext=待付款&_rnd=1632884485180 ``` 待发货订单查询示例: ``` /api/orders/getlist?limit=10&page=1&ordertype=&statustext=待发货&_rnd=1632884573389 ``` 待收货订单查询示例: ``` /api/orders/getlist?limit=10&page=1&ordertype=&statustext=已发货&_rnd=1632884635457 ``` 已完成订单查询示例: ``` /api/orders/getlist?limit=10&page=1&ordertype=&statustext=已完成&_rnd=1632884684800 ``` 已取消订单查询示例: ``` /api/orders/getlist?limit=10&page=1&ordertype=&statustext已取消&_rnd=1632884715348 ``` statustext 对应 ``` <if test='statustext!=null and statustext=="待发货"'> AND (shipping_mode=1 AND status = 2) </if> <if test='statustext!=null and statustext=="已发货"'> AND (shipping_mode=1 AND status = 3) </if> <if test='statustext!=null and statustext=="待自提"'> AND (shipping_mode=2 AND status = 3) </if> <if test='statustext!=null and statustext=="已自提"'> AND (shipping_mode=2 AND status &gt;= 4) </if> <if test='statustext!=null and statustext=="已完成"'> AND (status >= 5) </if> <if test='statustext!=null and statustext=="已取消"'> AND (status <=-1) </if> <if test='statustext!=null and statustext=="待付款"'> AND (status = 1) </if> <if test='statustext!=null and statustext=="已退货"'> AND (status = -3) </if> <if test='statustext==null or statustext==""'> AND (status > -9) </if> ```