#ZH
野心家
2025-05-28 880794f63e27b64ae03c40afc55a34928d090d57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.zy.system.mapper;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.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 \"SOURCE\".\"sys_user_login\" where yearweek(date_format(CREATE_TIME,'%Y-%m-%d')) = yearweek(now())")
    int selectCountByCurrentWeek();
 
}