2210ed5c
YunaiV
增加 service 模板
|
1
2
3
4
5
|
package ${basePackage}.${table.moduleName}.service.${table.businessName};
import java.util.*;
import javax.validation.*;
import ${basePackage}.${table.moduleName}.controller.${table.businessName}.vo.*;
|
305090b7
YunaiV
1. 完成代码生成的表和字段定义的编辑
|
6
|
import ${basePackage}.${table.moduleName}.dal.dataobject.${table.businessName}.${table.className}DO;
|
2210ed5c
YunaiV
增加 service 模板
|
7
8
9
|
import ${PageResultClassName};
/**
|
eb3d0386
YunaiV
代码生成器,增加 excel 导出功能
|
10
11
12
13
|
* ${table.classComment} Service 接口
*
* @author ${table.author}
*/
|
2210ed5c
YunaiV
增加 service 模板
|
14
15
16
17
18
19
|
public interface ${table.className}Service {
/**
* 创建${table.classComment}
*
* @param createReqVO 创建信息
|
5442f652
YunaiV
整理 vm 模板
|
20
|
* @return 编号
|
2210ed5c
YunaiV
增加 service 模板
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
*/
${primaryColumn.javaType} create${simpleClassName}(@Valid ${table.className}CreateReqVO createReqVO);
/**
* 更新${table.classComment}
*
* @param updateReqVO 更新信息
*/
void update${simpleClassName}(@Valid ${table.className}UpdateReqVO updateReqVO);
/**
* 删除${table.classComment}
*
* @param id 编号
*/
void delete${simpleClassName}(${primaryColumn.javaType} id);
/**
* 获得${table.classComment}
*
* @param id 编号
|
5442f652
YunaiV
整理 vm 模板
|
42
|
* @return ${table.classComment}
|
2210ed5c
YunaiV
增加 service 模板
|
43
44
45
46
47
48
49
|
*/
${table.className}DO get${simpleClassName}(${primaryColumn.javaType} id);
/**
* 获得${table.classComment}列表
*
* @param ids 编号
|
5442f652
YunaiV
整理 vm 模板
|
50
|
* @return ${table.classComment}列表
|
2210ed5c
YunaiV
增加 service 模板
|
51
52
53
54
55
56
57
|
*/
List<${table.className}DO> get${simpleClassName}List(Collection<${primaryColumn.javaType}> ids);
/**
* 获得${table.classComment}分页
*
* @param pageReqVO 分页查询
|
5442f652
YunaiV
整理 vm 模板
|
58
|
* @return ${table.classComment}分页
|
2210ed5c
YunaiV
增加 service 模板
|
59
|
*/
|
8cfb8265
YunaiV
代码预览的功能,完成
|
60
|
PageResult<${table.className}DO> get${simpleClassName}Page(${table.className}PageReqVO pageReqVO);
|
2210ed5c
YunaiV
增加 service 模板
|
61
|
|
eb3d0386
YunaiV
代码生成器,增加 excel 导出功能
|
62
63
64
65
66
67
68
69
|
/**
* 获得${table.classComment}列表, 用于 Excel 导出
*
* @param exportReqVO 查询条件
* @return ${table.classComment}分页
*/
List<${table.className}DO> get${simpleClassName}List(${table.className}ExportReqVO exportReqVO);
|
2210ed5c
YunaiV
增加 service 模板
|
70
|
}
|