package com.ssm.manage.dao;

import com.github.pagehelper.PageInfo;
import com.ssm.manage.entity.BaseStaff;
import com.ssm.manage.query.StaffRequest;
import com.ssm.manage.response.StaffResponse;

import java.util.List;

public interface SsmBaseStaffDao extends BaseDao<BaseStaff>{
    PageInfo<StaffResponse> selectPage(StaffRequest staffRequest);
    PageInfo<StaffResponse> selectPageNew(StaffRequest staffRequest);
    PageInfo<StaffResponse> parentsStaff(StaffRequest staffRequest);
    PageInfo<StaffResponse> selectPagestaff(StaffRequest staffRequest);

    List<BaseStaff> selectList(StaffRequest staffRequest);

    int insertBatch(List<BaseStaff> list);

    //校验，查询当前当前门店是否有这个员工
    List<StaffRequest> selectCheck(BaseStaff baseStaff);
    //校验
    List<StaffRequest> CheckPhone(BaseStaff baseStaff);

    List<BaseStaff> selectByAllSalemans();

    void updateStaffState(Integer state,String identityCard, String staffName, String mobilePhone,Long storeId);
}
