src/main/java/com/zy/system/mapper/UserLoginMapper.java
@@ -6,6 +6,8 @@ import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository public interface UserLoginMapper extends BaseMapper<UserLogin> { @@ -13,4 +15,7 @@ @Select("select count(1) from sys_user_login where yearweek(date_format(create_time,'%Y-%m-%d')) = yearweek(now())") int selectCountByCurrentWeek(); @Select("select * from sys_user_login where user_id = #{userId}") UserLogin selectByUserId(Long id); }