Commit f6a2cb52 authored by 张俊's avatar 张俊

黄冈公积金sql文件处理

parent 6eaed785
......@@ -52,7 +52,7 @@
<update id="updateOnlineUsers2">
update m_userloginrecord set istc = 1
where istc = 0 and zhczsj is not null
and to_char(sysdate-#{djsj}/24/60,'yyyy-mm-dd HH24:MI:SS') &gt; to_char(zhczsj,'yyyy-mm-dd HH24:MI:SS')
and zhczsj &lt; (sysdate-#{djsj}/24/60)
and qdid = #{qdid}
</update>
......
......@@ -49,8 +49,10 @@
<select id="grsxCount" resultType="int">
select count(*) cn from (
SELECT nvl(COUNT(a.GRZH),0) as cn FROM M_REFRESHCONTROLL a where a.grzh = #{grzh} and to_char(a.sxsj,'yyyy-mm-dd hh24:mi:ss') >= to_char(sysdate+(-3/24/60), 'yyyy-mm-dd hh24:mi:ss')
) where cn>=(select value from m_xekzb where id='9622E3B8E8A941E19A4A86B1E28D932D' )
SELECT nvl(COUNT(a.GRZH),0) as cn FROM M_REFRESHCONTROLL a
where a.grzh = #{grzh}
and a.sxsj &gt;= sysdate+(-3/24/60)
) where cn>=(select value from m_xekzb where id='9622E3B8E8A941E19A4A86B1E28D932D' )
</select>
<!-- 用户信息日志记录 -->
......
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