#
luxiaotao1123
2021-09-28 1d8f4f462fc4be2437dbfa7ad9b5b503019a1193
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package zy.cloud.wms.system.mapper;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import zy.cloud.wms.system.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();
 
}