中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-13 8b3f9860cf8e2675c5f9eab86f1939e82e97fac8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.zy.crm.system.mapper;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import com.zy.crm.system.entity.UserLogin;
 
@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();
 
}