package com.izouma.awesomeadmin.dao;

#foreach($import in $imports)
$import
#end
import java.util.*;
import com.izouma.awesomeadmin.datasource.DataSource;
import org.springframework.stereotype.Repository;
import com.izouma.awesomeadmin.model.${model.className};


/**
*  Dao接口
*/
@DataSource("dataSourceSqlserver")
@Repository("com.zoumaframe.dao.${model.className}Mapper")
public interface ${model.className}Mapper{

    int deleteByPrimaryKey(Integer id);

    int insertSelective(${model.className} record);

    ${model.className} selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(${model.className} record);

    List<${model.className}> queryAll${model.className}(${model.className} record);

    List<${model.className}> query${model.className}ByPage(Map<String, Object> parameter);

    int delete(String id);

    ${model.className} query${model.className}(${model.className} record);

    List<${model.className}> query(${model.className} record);
}

