Commit 85311667 authored by 成亚卿's avatar 成亚卿

修改sql

parent cf4c602d
...@@ -30,11 +30,11 @@ where id =#para(id) ...@@ -30,11 +30,11 @@ where id =#para(id)
select case select case
when trunc(last_login_time) != trunc(sysdate) then when trunc(last_login_time) != trunc(sysdate) then
0 0
when #(hour) / 24 < to_number((sysdate - to_date( last_login_time,'yyyy-MM-dd HH24:mi:ss'))) >= #(permitLoginTimes) then when #(hour) / 24 < to_number((sysdate - to_date( last_login_time,'yyyy-MM-dd HH24:mi:ss'))) and errorcount >= #(permitLoginTimes) then
errorcount errorcount
else else
0 0
end "flag" end "flag"
from as_user from as_user
where id =#(id) where id =#(id)
#end #end
\ No newline at end of file
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