package cn.com.oa.service.impl;

import cn.com.oa.mapper.UserMapper;
import cn.com.oa.model.User;
import cn.com.oa.service.UserService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
* @author wangpx
* @description 针对表【t_user】的数据库操作Service实现
* @createDate 2025-02-10 16:04:44
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService {
    @Override
    public int getCount(User user) {
        return this.baseMapper.selectCount(new QueryWrapper<User>()
                .eq("unitId", user.getUnitid())
                .eq("USER_STATE", user.getUserState())
                .notIn("UNIVERSALID", new String[] {
                        "347517210967865", // 单位管理员
                        "284381380647600", // 何茂雄
                        "284381382211000", // 何茂鸿
                        "284381384120700" // 林明东
                }));
    }
}




