支付分析
This commit is contained in:
@@ -158,10 +158,3 @@ func GetPayStatistics(ctx *jxcontext.Context, userID string, pop int, cityCodes
|
||||
)
|
||||
return dao.GetPayStatistics(db, userID, pop, cityCodes, mobile, utils.Str2Time(fromTime), utils.Str2Time(toTime), consumeTypes)
|
||||
}
|
||||
|
||||
func GetIncomeStatistics(ctx *jxcontext.Context, userID string, pop int, cityCodes []int, mobile, fromTime, toTime string) (getIncomeStatisticsResult *dao.GetIncomeStatisticsResult, err error) {
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
)
|
||||
return dao.GetIncomeStatistics(db, userID, pop, cityCodes, mobile, utils.Str2Time(fromTime), utils.Str2Time(toTime))
|
||||
}
|
||||
|
||||
@@ -307,8 +307,3 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile
|
||||
err = GetRow(db, &getPayStatisticsResult, sql2, sqlParams2)
|
||||
return getPayStatisticsResult, err
|
||||
}
|
||||
|
||||
func GetIncomeStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile string, fromTime, toTime time.Time) (getIncomeStatisticsResult *GetIncomeStatisticsResult, err error) {
|
||||
|
||||
return getIncomeStatisticsResult, err
|
||||
}
|
||||
|
||||
@@ -125,25 +125,3 @@ func (c *OrderController) GetPayStatistics() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 收益统计
|
||||
// @Description 收益统计
|
||||
// @Param token header string true "认证token"
|
||||
// @Param userID query string false "用户id"
|
||||
// @Param pop query int false "1为你邀请的,0为全部"
|
||||
// @Param cityCodes query string false "城市id列表"
|
||||
// @Param mobile query string false "用户手机,必须全匹配"
|
||||
// @Param fromTime query string false "消费开始时间"
|
||||
// @Param toTime query string false "消费结束时间"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetIncomeStatistics [get]
|
||||
func (c *OrderController) GetIncomeStatistics() {
|
||||
c.callGetIncomeStatistics(func(params *tOrderGetIncomeStatisticsParams) (retVal interface{}, errCode string, err error) {
|
||||
var cityCodes []int
|
||||
if err = jxutils.Strings2Objs(params.CityCodes, &cityCodes); err == nil {
|
||||
retVal, err = cms.GetIncomeStatistics(params.Ctx, params.UserID, params.Pop, cityCodes, params.Mobile, params.FromTime, params.ToTime)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
@@ -628,15 +628,6 @@ func init() {
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"],
|
||||
beego.ControllerComments{
|
||||
Method: "GetIncomeStatistics",
|
||||
Router: `/GetIncomeStatistics`,
|
||||
AllowHTTPMethods: []string{"get"},
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"],
|
||||
beego.ControllerComments{
|
||||
Method: "GetOrders",
|
||||
|
||||
Reference in New Issue
Block a user