- 将美团外卖售中,商户同意取消订单消息当成订单取消消息

This commit is contained in:
gazebo
2019-05-15 12:14:20 +08:00
parent 1ea72c66c4
commit ec6ee2620c
2 changed files with 13 additions and 9 deletions

View File

@@ -621,7 +621,7 @@ func (c *OrderManager) GetOrdersFinancial(ctx *jxcontext.Context, fromDateStr, t
func (c *OrderManager) GetStoresOrderSaleInfo(ctx *jxcontext.Context, storeIDList []int, fromTime time.Time, toTime time.Time, statusList []int) (saleInfoList []*StoresOrderSaleInfo, err error) {
if toTime.Sub(fromTime) > time.Hour*24*60 {
return nil, fmt.Errorf("查询时间范围不能超过2个月")
return nil, fmt.Errorf("查询时间范围不能超过60天")
}
sql := `
SELECT IF(t1.jx_store_id > 0, t1.jx_store_id, t1.store_id) store_id, t1.vendor_id, IF(t1.status < ?, 0, t1.status) status,