Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Display all the statistics in the sender API list.

lotk9563f9caf90d
diff --git a/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.go b/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.go
index b09483dd..9ff031a6 100644
--- a/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.go
+++ b/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.go
@@ -55,13 +55,13 @@ func (c *ControllerV1) ApiTemplatesList(ctx context.Context, req *v1.ApiTemplate
query = query.LeftJoin("mailstat_send_mails sm", "mi.postfix_message_id=sm.postfix_message_id")
query = query.Where("aml.api_id", item.Id)
query = query.Where("aml.status", 2)
- if req.StartTime > 0 {
- query.Where("sm.log_time_millis > ?", req.StartTime*1000-1)
- }
-
- if req.EndTime > 0 {
- query.Where("sm.log_time_millis < ?", req.EndTime*1000+1)
- }
+ //if req.StartTime > 0 {
+ // query.Where("sm.log_time_millis > ?", req.StartTime*1000-1)
+ //}
+ //
+ //if req.EndTime > 0 {
+ // query.Where("sm.log_time_millis < ?", req.EndTime*1000+1)
+ //}
// count各项数据
query.Fields(