Commit b747d111 authored by Bright1996's avatar Bright1996

用户行为审计调整

parent c4b5f493
......@@ -275,7 +275,7 @@ func (s *LogManagement) LogUserAccountAuditList(params *request.LogManagementLis
if params.Active != 0 {
switch params.Active {
case 1:
modelObj.Where("u.last_access_time <= now()-interval '1 month'")
modelObj.Where("u.last_access_time <= now()-interval '1 month' or u.last_access_time is null")
case 2:
modelObj.Where("u.last_access_time < now()-interval '1 week'").And("u.last_access_time > now()-interval '1 month'")
case 3:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment