admin
2022-04-07 211840b64fa1132d76d6dff6c779e9ba2c0c450f
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
package ${packageName};
 
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Date;
import org.apache.ibatis.annotations.Param;
 
import ${baseMapper.clazz};
import ${entity.clazz};
 
@Repository
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>
        public ${value.type} ${value.columnName};
       </#list>
     </#if>
        public long start;
        public int count;
        public List<String> sortList;
  }
 
}