封禁原因继承+封禁设备

This commit is contained in:
2025-07-18 15:19:54 +08:00
parent 109e087bfd
commit d36fbd46ab
6 changed files with 129 additions and 29 deletions

View File

@@ -9,7 +9,6 @@ import java.util.List;
public interface AccountLoginRecordMapperExpand {
List<Long> getRecentLoginUids(@Param("startDay") Date startDay, @Param("partitionId") Integer partitionId);
List<String> listUserLoginDevice(Long uid);
List<Long> getUidByRecent60Day(@Param("channel") String channel, @Param("ignoreVersion") String ignoreVersion, @Param("ignoreChannel") String ignoreChannel, @Param("partitionId") Integer partitionId, @Param("index") Integer index, @Param("offset") Integer offset);
@@ -42,4 +41,6 @@ public interface AccountLoginRecordMapperExpand {
* @return
*/
List<AccountLoginRecord> getLoginType(@Param("uidList") List<Long> uidList);
List<String> getRecentLoginDevices(@Param("startDay") Date startDay, @Param("uid") Long uid);
}

View File

@@ -74,4 +74,8 @@
)
</select>
<select id="getRecentLoginDevices" resultType="java.lang.String">
SELECT DISTINCT(device_uid) FROM account_login_record
WHERE create_time &gt;= #{startDay} and uid = #{uid}
</select>
</mapper>