|
1
|
package ${packageName}.mapper;
|
|
2
|
|
|
3
4
|
import ${packageName}.domain.${ClassName};
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
5
6
7
|
import java.util.List;
/**
|
|
8
|
* ${functionName} 数据层
|
|
9
10
11
12
|
*
* @author ${author}
* @date ${datetime}
*/
|
|
13
|
public interface ${ClassName}Mapper extends BaseMapper<${ClassName}> {
|
|
14
15
16
17
18
19
20
21
22
|
}
## /**
## * 查询${tableComment}信息
## *
## * @param ${primaryKey.attrname} ${tableComment}ID
## * @return ${tableComment}信息
## */
## public ${className} select${className}ById(${primaryKey.attrType} ${primaryKey.attrname});
|
|
23
|
##7
|
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
## /**
## * 查询${tableComment}列表
## *
## * @param ${classname} ${tableComment}信息
## * @return ${tableComment}集合
## */
## public List<${className}> select${className}List(${className} ${classname});
##
## /**
## * 新增${tableComment}
## *
## * @param ${classname} ${tableComment}信息
## * @return 结果
## */
## public int insert${className}(${className} ${classname});
##
## /**
## * 修改${tableComment}
## *
## * @param ${classname} ${tableComment}信息
## * @return 结果
## */
## public int update${className}(${className} ${classname});
##
## /**
## * 删除${tableComment}
## *
## * @param ${primaryKey.attrname} ${tableComment}ID
## * @return 结果
## */
## public int delete${className}ById(${primaryKey.attrType} ${primaryKey.attrname});
##
## /**
## * 批量删除${tableComment}
## *
## * @param ${primaryKey.attrname}s 需要删除的数据ID
## * @return 结果
## */
## public int delete${className}ByIds(String[] ${primaryKey.attrname}s);
|