|
1 |
| -import org.apache.ibatis.annotations.Param; |
2 |
| -import org.apache.ibatis.annotations.Mapper; |
3 |
| -import org.springframework.stereotype.Repository; |
4 |
| -import java.util.List; |
5 |
| - |
6 |
| -/** |
7 |
| -* ${classInfo.classComment} |
8 |
| -* @author ${authorName} |
9 |
| -* @date ${.now?string('yyyy/MM/dd')} |
10 |
| -*/ |
11 |
| -@Mapper |
12 |
| -@Repository |
13 |
| -public interface ${classInfo.className}Mapper { |
14 |
| - |
15 |
| - /** |
16 |
| - * [新增] |
17 |
| - * @author ${authorName} |
18 |
| - * @date ${.now?string('yyyy/MM/dd')} |
19 |
| - **/ |
20 |
| - int insert(${classInfo.className} ${classInfo.className?uncap_first}); |
21 |
| - |
22 |
| - /** |
23 |
| - * [刪除] |
24 |
| - * @author ${authorName} |
25 |
| - * @date ${.now?string('yyyy/MM/dd')} |
26 |
| - **/ |
27 |
| - int delete(int id); |
28 |
| - |
29 |
| - /** |
30 |
| - * [更新] |
31 |
| - * @author ${authorName} |
32 |
| - * @date ${.now?string('yyyy/MM/dd')} |
33 |
| - **/ |
34 |
| - int update(${classInfo.className} ${classInfo.className?uncap_first}); |
35 |
| - |
36 |
| - /** |
37 |
| - * [查詢] 根據主鍵 id 查詢 |
38 |
| - * @author ${authorName} |
39 |
| - * @date ${.now?string('yyyy/MM/dd')} |
40 |
| - **/ |
41 |
| - ${classInfo.className} load(int id); |
42 |
| - |
43 |
| - /** |
44 |
| - * [查詢] 分頁查詢 |
45 |
| - * @author ${authorName} |
46 |
| - * @date ${.now?string('yyyy/MM/dd')} |
47 |
| - **/ |
48 |
| - List<${classInfo.className}> pageList(int offset,int pagesize); |
49 |
| - |
50 |
| - /** |
51 |
| - * [查詢] 分頁查詢 count |
52 |
| - * @author ${authorName} |
53 |
| - * @date ${.now?string('yyyy/MM/dd')} |
54 |
| - **/ |
55 |
| - int pageListCount(int offset,int pagesize); |
56 |
| - |
57 |
| -} |
| 1 | +import org.apache.ibatis.annotations.Param; |
| 2 | +import org.apache.ibatis.annotations.Mapper; |
| 3 | +import org.springframework.stereotype.Repository; |
| 4 | +import java.util.List; |
| 5 | + |
| 6 | +/** |
| 7 | +* ${classInfo.classComment} |
| 8 | +* @author ${authorName} |
| 9 | +* @date ${.now?string('yyyy/MM/dd')} |
| 10 | +*/ |
| 11 | +@Mapper |
| 12 | +@Repository |
| 13 | +public interface ${classInfo.className}Mapper { |
| 14 | + |
| 15 | + /** |
| 16 | + * [新增] |
| 17 | + * @author ${authorName} |
| 18 | + * @date ${.now?string('yyyy/MM/dd')} |
| 19 | + **/ |
| 20 | + int insert(${classInfo.className} ${classInfo.className?uncap_first}); |
| 21 | + |
| 22 | + /** |
| 23 | + * [刪除] |
| 24 | + * @author ${authorName} |
| 25 | + * @date ${.now?string('yyyy/MM/dd')} |
| 26 | + **/ |
| 27 | + int delete(int id); |
| 28 | + |
| 29 | + /** |
| 30 | + * [更新] |
| 31 | + * @author ${authorName} |
| 32 | + * @date ${.now?string('yyyy/MM/dd')} |
| 33 | + **/ |
| 34 | + int update(${classInfo.className} ${classInfo.className?uncap_first}); |
| 35 | + |
| 36 | + /** |
| 37 | + * [查询] 根据主键 id 查询 |
| 38 | + * @author ${authorName} |
| 39 | + * @date ${.now?string('yyyy/MM/dd')} |
| 40 | + **/ |
| 41 | + ${classInfo.className} load(int id); |
| 42 | + |
| 43 | + /** |
| 44 | + * [查询] 分页查询 |
| 45 | + * @author ${authorName} |
| 46 | + * @date ${.now?string('yyyy/MM/dd')} |
| 47 | + **/ |
| 48 | + List<${classInfo.className}> pageList(int offset,int pagesize); |
| 49 | + |
| 50 | + /** |
| 51 | + * [查询] 分页查询 count |
| 52 | + * @author ${authorName} |
| 53 | + * @date ${.now?string('yyyy/MM/dd')} |
| 54 | + **/ |
| 55 | + int pageListCount(int offset,int pagesize); |
| 56 | + |
| 57 | +} |
0 commit comments