Updata:更新sql
This commit is contained in:
parent
61e5a69484
commit
aae7aa077b
@ -1284,7 +1284,7 @@ func MetricsArtistAccountExport(req *bundle.MetricsArtistAccountExportReq) (*bun
|
|||||||
subQuery := app.ModuleClients.BundleDB.Table("cast_media_account").
|
subQuery := app.ModuleClients.BundleDB.Table("cast_media_account").
|
||||||
Select("artist_uuid,any_value(artist_name) as artist_name,any_value(created_at) as created_at").
|
Select("artist_uuid,any_value(artist_name) as artist_name,any_value(created_at) as created_at").
|
||||||
Group("artist_uuid").
|
Group("artist_uuid").
|
||||||
Where("deleted_at = 0")
|
Where("deleted_at = 0 and expired = 1")
|
||||||
//如果选择了月份
|
//如果选择了月份
|
||||||
if len(req.Month) > 0 {
|
if len(req.Month) > 0 {
|
||||||
// 构建多个月份的时间范围条件(使用 OR 连接)
|
// 构建多个月份的时间范围条件(使用 OR 连接)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user