- GetOrders.

This commit is contained in:
gazebo
2018-10-09 17:09:34 +08:00
parent 4203dd5b29
commit c8a0f9b59f
4 changed files with 130 additions and 1 deletions

View File

@@ -203,3 +203,24 @@ func (c *OrderController) ExportMTWaybills() {
c.Ctx.ResponseWriter.Write(content)
}
}
// @Title 查询订单
// @Description 查询订单
// @Param token header string true "认证token"
// @Param keyword query string false "查询关键字"
// @Param fromDate query string true "开始日期包含格式2006-01-02"
// @Param toDate query string false "结束日期包含格式2006-01-02"
// @Param vendorID query int false "订单所属厂商"
// @Param storeIDs query string false "京西门店ID列表[1,2,3],缺省不限制"
// @Param statuss query string false "订单状态列表[1,2,3],缺省不限制"
// @Param offset query int false "结果起始序号以0开始缺省为0"
// @Param pageSize query int false "结果页大小缺省为500表示不限制"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetOrders [get]
func (c *OrderController) GetOrders() {
c.callGetOrders(func(params *tOrderGetOrdersParams) (retVal interface{}, errCode string, err error) {
retVal, err = orderman.FixedOrderManager.GetOrders(params.FromDate, params.ToDate, params.MapData)
return retVal, "", err
})
}