| | |
| | | package com.zy.asrs.common.sys.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.zy.asrs.common.sys.entity.UserLogin; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface UserLoginMapper extends BaseMapper<UserLogin> { |
| | | |
| | | @Select("select count(1) from sys_user_login where yearweek(date_format(create_time,'%Y-%m-%d')) = yearweek(now())") |
| | | int selectCountByCurrentWeek(); |
| | | |
| | | } |
| | | package com.zy.asrs.common.sys.mapper;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
| | | import com.zy.asrs.common.sys.entity.UserLogin;
|
| | | import org.apache.ibatis.annotations.Mapper;
|
| | | import org.apache.ibatis.annotations.Select;
|
| | | import org.springframework.stereotype.Repository;
|
| | |
|
| | | @Mapper
|
| | | @Repository
|
| | | public interface UserLoginMapper extends BaseMapper<UserLogin> {
|
| | |
|
| | | @Select("select count(1) from sys_user_login where yearweek(date_format(create_time,'%Y-%m-%d')) = yearweek(now())")
|
| | | int selectCountByCurrentWeek();
|
| | |
|
| | | }
|