package com.ssm.manage.mapper;

import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.BaseStaff;
import com.ssm.manage.query.StaffRequest;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface BaseStaffMapper extends BaseMapper<BaseStaff> {

    int insertBatch(@Param("list")List<BaseStaff> list);

    List<StaffRequest> liststarfall(StaffRequest staffRequest);
    List<StaffRequest> liststarfallRoot(StaffRequest staffRequest);

    List<StaffRequest> selectCheck(BaseStaff baseStaff);
    List<StaffRequest> CheckPhone(BaseStaff baseStaff);

    List<BaseStaff> selectByAllSalemans();

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