package com.gic.haoban.manage.service.dao.mapper;

import com.gic.haoban.manage.service.entity.TabStaffPrivacyUseLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xuwenqian
 * @date 2021/12/15 10:35
 */
@Mapper
public interface StaffPrivacyUseLogMapper {
    /**
     * 新增
     *
     * @param tabStaffPrivacyUseLog 选项卡的员工隐私使用日志
     * @return int
     * @author mozhu
     * @date 2021-12-15 10:41:51
     */
    int insert(TabStaffPrivacyUseLog tabStaffPrivacyUseLog);


    /**
     * 通过员工id查询
     *
     * @param staffId 员工id
     * @return {@link List<TabStaffPrivacyUseLog> }
     * @author mozhu
     * @date 2021-12-15 10:49:02
     */
    TabStaffPrivacyUseLog getByStaffId(@Param("staffId") String staffId);


    /**
     * 通过用户id查询数据
     *
     * @param userId 用户id
     * @return {@link TabStaffPrivacyUseLog }
     * @author mozhu
     * @date 2022-04-14 14:29:24
     */
    TabStaffPrivacyUseLog getByUserId(@Param("userId") String userId);

}
