sync: soul-admin 前端、soul-api 接口逻辑 | 原因: 前端代码修改、后端接口逻辑修改
This commit is contained in:
@@ -27,7 +27,7 @@ func DBMatchRecordsList(c *gin.Context) {
|
||||
var byType []TypeCount
|
||||
db.Model(&model.MatchRecord{}).Select("match_type as match_type, count(*) as count").Group("match_type").Scan(&byType)
|
||||
var uniqueUsers int64
|
||||
db.Model(&model.MatchRecord{}).Distinct("user_id").Count(&uniqueUsers)
|
||||
db.Raw("SELECT COUNT(DISTINCT user_id) FROM match_records WHERE user_id IS NOT NULL AND user_id != ''").Scan(&uniqueUsers)
|
||||
|
||||
// 匹配收益:product_type=match 且 status=paid 的订单金额总和
|
||||
var matchRevenue float64
|
||||
|
||||
Reference in New Issue
Block a user