Skip to content

Commit c5fadb3

Browse files
authored
Merge pull request #54 from gaohanghang/master
更新mybatis模板,将其中的繁体中文改为简体中文
2 parents 3172c12 + d50cec8 commit c5fadb3

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

generator-web/src/main/resources/templates/code-generator/mybatis/controller.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class ${classInfo.className}Controller {
5151
}
5252

5353
/**
54-
* [查詢] 根據主鍵 id 查詢
54+
* [查询] 根据主键 id 查询
5555
* @author ${authorName}
5656
* @date ${.now?string('yyyy/MM/dd')}
5757
**/
@@ -61,7 +61,7 @@ public class ${classInfo.className}Controller {
6161
}
6262

6363
/**
64-
* [查詢] 分頁查詢
64+
* [查询] 分页查询
6565
* @author ${authorName}
6666
* @date ${.now?string('yyyy/MM/dd')}
6767
**/
Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,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-
}
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+
}

generator-web/src/main/resources/templates/code-generator/mybatis/service.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface ${classInfo.className}Service {
2323
public ReturnT<String> update(${classInfo.className} ${classInfo.className?uncap_first});
2424

2525
/**
26-
* 根據主鍵 id 查詢
26+
* 根据主键 id 查询
2727
*/
2828
public ${classInfo.className} load(int id);
2929

0 commit comments

Comments
 (0)