Commit cfe549f7 authored by 胡文斌's avatar 胡文斌

修复神通数据库登陆失败问题

parent a3606b89
###查询错误次数 CP-3721
#sql("getErrorCount")
select decode (trunc(last_login_time), trunc(sysdate),
case when to_number(sysdate - to_date( last_login_time,'yyyy-MM-dd HH24:mi:ss')) * 24 > #para(hour) and errorcount >= #para(permitLoginTimes)
then 1
else errorcount end,
1) "flag"
from as_user
where id =#para(id)
#end
###更改错误次数和最后登录时间 CP-3721
#sql("updateForErr")
update as_user
set errorcount = decode(trunc(last_login_time), trunc(sysdate),
case when to_number((sysdate - to_date( last_login_time,'yyyy-MM-dd HH24:mi:ss'))) * 24 > #para(hour)
and errorcount >= #para(permitLoginTimes)
then 1
else errorcount + 1 end,
1),
last_login_time = sysdate
where id =#para(id)
#end
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