短信和账单时间
This commit is contained in:
@@ -111,9 +111,9 @@ namespace Hncore.Pass.Vpn.Service
|
||||
}
|
||||
|
||||
//主要是用来定时执行的
|
||||
public async Task<List<ProductAccountEntity>> GetExpireingAccountsTime()
|
||||
public async Task<List<ProductAccountEntity>> GetExpireingAccountsTime(int day)
|
||||
{
|
||||
var sql = $"select * from product_account where DATEDIFF(EndTime,now())=-1 OR DATEDIFF(EndTime,now())=0 OR DATEDIFF(EndTime,now())=1 GROUP BY UserId";
|
||||
var sql = $"select * from product_account where DATEDIFF(EndTime,now())={day} GROUP BY UserId";
|
||||
return this.m_DbContext.SqlQuery<ProductAccountEntity>(sql);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user