This commit is contained in:
苏尹岚
2021-03-31 13:45:56 +08:00
parent d6d2688545
commit 90f16f87f2
2 changed files with 7 additions and 0 deletions

View File

@@ -910,6 +910,12 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
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 {
var cities []int
if err = utils.UnmarshalUseNumber([]byte(params["cities"].(string)), &cities); err != nil {

View File

@@ -298,6 +298,7 @@ func (c *OrderController) ExportMTWaybills() {
// @Param adjustCount query int false "最小调整次数"
// @Param brandID query int false "品牌ID"
// @Param mustInvoice query bool false "是否必须要求开发票"
// @Param deliveryType query string false "配送方式"
// @Param offset query int false "结果起始序号以0开始缺省为0"
// @Param pageSize query int false "结果页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult