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

適配sql

parent abd4d84d
...@@ -23,3 +23,18 @@ set errorcount = decode(trunc(last_login_time), trunc(sysdate), ...@@ -23,3 +23,18 @@ set errorcount = decode(trunc(last_login_time), trunc(sysdate),
last_login_time = sysdate last_login_time = sysdate
where id =#para(id) where id =#para(id)
#end #end
###当密码正确时查询错误次数
###xiaoying 20200406 缺陷YZJ-2598 修改登录成功问题
#sql("checkWhenPwdOk")
select case
when trunc(last_login_time) != trunc(sysdate) then
0
when #(hour) / 24 < to_number((sysdate - to_date( last_login_time,'yyyy-MM-dd HH24:mi:ss'))) >= #(permitLoginTimes) then
errorcount
else
0
end "flag"
from as_user
where id =#(id)
#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