xuefei
2020-12-10 eeeb7233935ea9b10e99043bdbf740ef86c9bf20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package ${entity.servicePackage};
 
import BaseService;
import ${entity.entityPackage}.${entity.className};
<%
if(!entity.isTree){
%>
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import SearchVo;
<%
}
%>
 
import java.util.List;
 
/**
 * ${entity.description}接口
 * @author ${entity.author}
 */
public interface ${entity.className}Service extends BaseService<${entity.className}, ${entity.primaryKeyType}> {
 
    <%
    if(!entity.isTree){
    %>
    /**
    * 多条件分页获取
    * @param ${entity.classNameLowerCase}
    * @param searchVo
    * @param pageable
    * @return
    */
    Page<${entity.className}> findByCondition(${entity.className} ${entity.classNameLowerCase}, SearchVo searchVo, Pageable pageable);
    <%
    }
    %>
 
    <%
    if(entity.isTree){
    %>
    /**
     * 通过父id获取
     * @param parentId
     * @return
     */
    List<${entity.className}> findByParentIdOrderBySortOrder(String parentId);
 
    /**
     * 通过名称模糊搜索
     * @param title
     * @return
     */
    List<${entity.className}> findByTitleLikeOrderBySortOrder(String title);
    <%
    }
    %>
}