将日志写入的用户超时逻辑改为限定为同一个账号

This commit is contained in:
季圣华
2022-05-21 22:29:01 +08:00
parent a2061b1a32
commit 8108d639e7
4 changed files with 14 additions and 16 deletions

View File

@@ -75,7 +75,8 @@
</select>
<select id="getCountByIpAndDate" resultType="java.lang.Long">
select count(1) from jsh_log where operation=#{moduleName} and client_ip=#{clientIp} and create_time=#{createTime}
select count(1) from jsh_log
where user_id=#{userId} and operation=#{moduleName} and client_ip=#{clientIp} and create_time=#{createTime}
</select>
<insert id="insertLogWithUserId" parameterType="com.jsh.erp.datasource.entities.Log">