diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 403e94189..c38580940 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -915,6 +915,22 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat sqlParams = append(sqlParams, utils.MustInterface2Int64(params["brandID"])) } } + if params["marketManPhone"] != nil { + sqlWhere += " AND t5.market_man_phone = ?" + sqlParams = append(sqlParams, params["marketManPhone"].(string)) + } + if params["jdPhone"] != nil { + sqlWhere += " AND t5.operator_phone = ?" + sqlParams = append(sqlParams, params["jdPhone"].(string)) + } + if params["mtPhone"] != nil { + sqlWhere += " AND t5.operator_phone2 = ?" + sqlParams = append(sqlParams, params["mtPhone"].(string)) + } + if params["ebaiPhone"] != nil { + sqlWhere += " AND t5.operator_phone3 = ?" + sqlParams = append(sqlParams, params["ebaiPhone"].(string)) + } if params["deliveryTypes"] != nil { var deliveryTypes []string if err = utils.UnmarshalUseNumber([]byte(params["deliveryTypes"].(string)), &deliveryTypes); err != nil { diff --git a/controllers/jx_order.go b/controllers/jx_order.go index 97d7afc4a..d29e11635 100644 --- a/controllers/jx_order.go +++ b/controllers/jx_order.go @@ -301,6 +301,10 @@ func (c *OrderController) ExportMTWaybills() { // @Param deliveryTypes query string false "配送方式" // @Param jxIncomeBegin query string false "预计收入begin" // @Param jxIncomeEnd query string false "预计收入end" +// @Param marketManPhone query string false "平台负责人" +// @Param jdPhone query string false "京东负责人电话" +// @Param mtPhone query string false "美团负责人电话" +// @Param ebaiPhone query string false "饿百负责人电话" // @Param offset query int false "结果起始序号(以0开始,缺省为0)" // @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)" // @Success 200 {object} controllers.CallResult