package ${entity.daoPackage};
|
|
import cn.exrick.xboot.core.base.XbootBaseDao;
|
import ${entity.entityPackage}.${entity.className};
|
|
import java.util.List;
|
|
/**
|
* ${entity.description}数据处理层
|
* @author ${entity.author}
|
*/
|
public interface ${entity.className}Dao extends XbootBaseDao<${entity.className}, ${entity.primaryKeyType}> {
|
|
<%
|
if(entity.isTree){
|
%>
|
/**
|
* 通过父id获取
|
* @param parentId
|
* @return
|
*/
|
List<${entity.className}> findByParentIdOrderBySortOrder(String parentId);
|
|
/**
|
* 通过名称模糊搜索
|
* @param title
|
* @return
|
*/
|
List<${entity.className}> findByTitleLikeOrderBySortOrder(String title);
|
<%
|
}
|
%>
|
}
|