|
|
@@ -70,7 +70,7 @@ func GetSumOrderPerfomance(wxUserId, orderType, beginTime, endTime int64) int64
|
|
|
- sql := fmt.Sprintf("SELECT sum(`paied_price`-`freight`) as count FROM `%s` WHERE paied_at >%d and paied_at<%d and status in (%s,%s,%s) and wx_user_id=%d and order_type=%d;", tbn, beginTime, endTime, order_model.STATUS_PROCESSING, order_model.STATUS_DISPATCH, order_model.STATUS_COMPLETE, wxUserId, orderType)
|
|
|
+ sql := fmt.Sprintf("SELECT sum(`paied_price`-`freight`) as count FROM `%s` WHERE paied_at >%d and paied_at<%d and status in ('%s','%s','%s') and wx_user_id=%d and order_type=%d;", tbn, beginTime, endTime, order_model.STATUS_PROCESSING, order_model.STATUS_DISPATCH, order_model.STATUS_COMPLETE, wxUserId, orderType)
|