28 lines
692 B
Java

package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Worker;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface WorkerMapper {
int deleteByPrimaryKey(Integer workerId);
int insert(Worker record);
int insertSelective(Worker record);
Worker selectByPrimaryKey(Integer workerId);
int updateByPrimaryKeySelective(Worker record);
int updateByPrimaryKey(Worker record);
Worker selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
List<Worker> selectByRole(String role);
List<Worker> selectAll();
}