|
@@ -434,8 +434,8 @@ func masterMonthAmount(mid string) map[string]string { |
|
|
guideMonthSettleSum, _ := db.ZhimengDb.In("status", []string{"订单结算"}).Where("uid=? and create_time>=? and create_time<?", mid, currentMonthTimeRange["start"], currentMonthTimeRange["end"]).Sum(&model.GuideOrder{}, "real_commission") |
|
|
guideMonthSettleSum, _ := db.ZhimengDb.In("status", []string{"订单结算"}).Where("uid=? and create_time>=? and create_time<?", mid, currentMonthTimeRange["start"], currentMonthTimeRange["end"]).Sum(&model.GuideOrder{}, "real_commission") |
|
|
monthSettleSum += hwMonthSettleSum + guideMonthSettleSum |
|
|
monthSettleSum += hwMonthSettleSum + guideMonthSettleSum |
|
|
|
|
|
|
|
|
waithwSum, _ := db.ZhimengDb.NotIn("status", []string{"违规订单", "创建订单", "订单退款", "订单失效"}).Where("uid=? and settle_at=0", mid).Sum(&model.HwOrder{}, "commission") |
|
|
|
|
|
waitguideSum, _ := db.ZhimengDb.NotIn("status", []string{"违规订单", "创建订单", "订单退款", "订单失效"}).Where("uid=? and settle_at=0", mid).Sum(&model.GuideOrder{}, "commission") |
|
|
|
|
|
|
|
|
waithwSum, _ := db.ZhimengDb.NotIn("status", []string{"违规订单", "创建订单", "订单退款", "订单失效"}).Where("uid=? and settle_time=0", mid).Sum(&model.HwOrder{}, "commission") |
|
|
|
|
|
waitguideSum, _ := db.ZhimengDb.NotIn("status", []string{"违规订单", "创建订单", "订单退款", "订单失效"}).Where("uid=? and settle_time=0", mid).Sum(&model.GuideOrder{}, "commission") |
|
|
waitSum := waithwSum + waitguideSum |
|
|
waitSum := waithwSum + waitguideSum |
|
|
res := map[string]string{ |
|
|
res := map[string]string{ |
|
|
"waitSum": utils.Float64ToStr(waitSum), |
|
|
"waitSum": utils.Float64ToStr(waitSum), |
|
|