/*
* Copyright (c) ${Company} Corporation ${Year} . All rights reserved.
*
*/
package ${daoPackage};

import ${entityPackage}.${javaClassRef.getClassName()};
import ${mapperPackage}.${javaClassRef.getClassName()}Mapper;
import org.springframework.stereotype.Repository;

/**
 * Mybatis数据库持久层（业务层）：${javaClassRef.getComment()}
 *
 * <p>${Attention} <br>
 * createdate:  ${now}  <br>
 * @author:  ${Author}  <br>
 * @since:  ${Version} <br>
 */
@Repository
public interface ${javaClassRef.getClassName()}Dao extends ${javaClassRef.getClassName()}Mapper
{
#foreach( ${indexInfo} in ${tableRef.getIndexInfoRefs()})
  /**
  * 根据索引查找
#set($count=0)
#set($paramDefs="")
#set($paramNames="")
#foreach( ${indexColumn} in ${indexInfo.getColumnRefList()})
    #if(${count}>0)
        #set($paramDefs=$paramDefs+","+${indexColumn.getAttributesRef().getJavaTypeName()}+" "+${indexColumn.getAttributesRef().getRefName()})
        #set($paramNames=$paramNames+", "+${indexColumn.getAttributesRef().getRefName()})
    #else
        #set($paramDefs=$paramDefs + ${indexColumn.getAttributesRef().getJavaTypeName()}+" "+${indexColumn.getAttributesRef().getRefName()})
        #set($paramNames=$paramNames + ${indexColumn.getAttributesRef().getRefName()})
    #end
  * @param ${indexColumn.getAttributesRef().getRefName()} ${indexColumn.getAttributesRef().getComment()}
    #set($count=$count+1)
#end
  */
  ${javaClassRef.getClassName()} findBy${indexInfo.getCamelIndexName()} ($paramDefs);

#end

  // ----      The End by Generator     ----//

}
