admin
2021-10-12 664cc2fd39177fd3daa6d3988396c704d130882c
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
package ${packageName};
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import ${baseMapper.clazz};
import ${entity.clazz};
 
public interface ${mapper.name} extends ${baseMapper.name}<${entity.name}> {
 
  ${entity.name} selectByPrimaryKeyForUpdate(@Param("id") ${identify.type} id);
 
  List<${entity.name}> list(@Param("query") DaoQuery query);
 
  long count(@Param("query") DaoQuery query);
 
  public static class DaoQuery{
     <#if queryList??>
       <#list queryList as value>
        <#if (value.type!"") == "Date">
        public ${value.type} min${value.columnName?cap_first};
        public ${value.type} max${value.columnName?cap_first};
        <#else>
        public ${value.type} ${value.columnName};
         </#if>
       </#list>
     </#if>
        public long start;
        public int count;
        public List<String> sortList;
  }
 
}