aa
This commit is contained in:
@@ -910,6 +910,12 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
|||||||
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["brandID"]))
|
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["brandID"]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if params["deliveryType"] != nil {
|
||||||
|
if params["deliveryType"].(string) != "" {
|
||||||
|
sqlWhere += " AND t1.delivery_type = ?"
|
||||||
|
sqlParams = append(sqlParams, params["deliveryType"].(string))
|
||||||
|
}
|
||||||
|
}
|
||||||
if params["cities"] != nil {
|
if params["cities"] != nil {
|
||||||
var cities []int
|
var cities []int
|
||||||
if err = utils.UnmarshalUseNumber([]byte(params["cities"].(string)), &cities); err != nil {
|
if err = utils.UnmarshalUseNumber([]byte(params["cities"].(string)), &cities); err != nil {
|
||||||
|
|||||||
@@ -298,6 +298,7 @@ func (c *OrderController) ExportMTWaybills() {
|
|||||||
// @Param adjustCount query int false "最小调整次数"
|
// @Param adjustCount query int false "最小调整次数"
|
||||||
// @Param brandID query int false "品牌ID"
|
// @Param brandID query int false "品牌ID"
|
||||||
// @Param mustInvoice query bool false "是否必须要求开发票"
|
// @Param mustInvoice query bool false "是否必须要求开发票"
|
||||||
|
// @Param deliveryType query string false "配送方式"
|
||||||
// @Param offset query int false "结果起始序号(以0开始,缺省为0)"
|
// @Param offset query int false "结果起始序号(以0开始,缺省为0)"
|
||||||
// @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
// @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
|||||||
Reference in New Issue
Block a user