package edu.gyc.dao; import edu.gyc.model.Car; import edu.gyc.model.CarExample; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @Repository public interface CarDao { int getTotal(Map<String, Object> map); List<Car> query(Map<String, Object> map); long countByExample(CarExample example); int deleteByExample(CarExample example); int deleteByPrimaryKey(Integer id); int insert(Car record); int insertSelective(Car record); List<Car> selectByExample(CarExample example); Car selectByPrimaryKey(Integer id); int updateByExampleSelective(@Param("record") Car record, @Param("example") CarExample example); int updateByExample(@Param("record") Car record, @Param("example") CarExample example); int updateByPrimaryKeySelective(Car record); int updateByPrimaryKey(Car record); }