- order/GetOrders new param:orderID
This commit is contained in:
@@ -309,6 +309,10 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, fromDateStr, toDateStr
|
||||
fromDate,
|
||||
toDate,
|
||||
}
|
||||
if params["orderID"] != nil {
|
||||
sqlWhere += " AND t1.vendor_order_id = ?"
|
||||
sqlParams = append(sqlParams, params["orderID"].(string))
|
||||
} else {
|
||||
if params["keyword"] != nil {
|
||||
keyword := params["keyword"].(string)
|
||||
keywordLike := "%" + keyword + "%"
|
||||
@@ -376,7 +380,7 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, fromDateStr, toDateStr
|
||||
sqlParams = append(sqlParams, cities)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
sql += sqlWhere
|
||||
sql += `
|
||||
ORDER BY t1.order_created_at DESC
|
||||
|
||||
@@ -200,6 +200,7 @@ func (c *OrderController) ExportMTWaybills() {
|
||||
// @Title 查询订单
|
||||
// @Description 查询订单
|
||||
// @Param token header string true "认证token"
|
||||
// @Param orderID query string false "订单号,如果此项不为空,忽略其它所有查询条件"
|
||||
// @Param keyword query string false "查询关键字"
|
||||
// @Param fromDate query string true "开始日期(包含),格式(2006-01-02)"
|
||||
// @Param toDate query string false "结束日期(包含),格式(2006-01-02)"
|
||||
|
||||
Reference in New Issue
Block a user