This commit is contained in:
MaxKey
2021-08-08 15:15:39 +08:00
parent b3f9c8abf5
commit cecc22edfc
15 changed files with 310 additions and 105 deletions
@@ -19,7 +19,7 @@
and uid = #{uid}
</if>
<if test="username != null and username != ''">
and username = #{username}
and username = #{username}
</if>
<if test="displayName != null and displayName != ''">
and displayname like concat('%',#{displayName},'%')
@@ -22,8 +22,9 @@
select
count(*) reportcount
from mxk_userinfo
where
lastlogintime -lastlogofftime
where online = 1
and now() - lastlogintime between 1 and 10000
and lastlogintime > lastlogofftime
</select>
<!-- 30天活跃用户统计 -->
<select id="analysisActiveUsers" parameterType="String" resultType="Integer">
@@ -96,11 +96,11 @@
<update id="changePassword" parameterType="UserInfo" >
update mxk_userinfo set
<if test="password != null">
password = #{password},
decipherable = #{decipherable},
passwordsettype = #{passwordSetType},
password = #{password},
decipherable = #{decipherable},
passwordsettype =#{passwordSetType},
</if>
passwordlastsettime = current_timestamp
passwordlastsettime = current_timestamp
where
id = #{id}
</update>