UserService.java
907 字节
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
32
33
34
35
36
37
38
39
40
41
42
package com.tianbo.service;
import com.tianbo.common.ModelAndPage;
import com.tianbo.model.Users;
import com.tianbo.model.UsersExample;
import java.math.BigDecimal;
import java.util.List;
/**
* Created by mrz on 2017/8/23.
*/
public interface UserService {
public void addUser(Users user);
Users selectByUserId(BigDecimal id);
/**
*
* @param dataStart 开始位置
* @param perPage 每页数量
* @return PAGE & MODEL
* @throws Exception
*/
ModelAndPage userList(Integer dataStart, Integer perPage,Users user)throws Exception;
int countByExample(UsersExample example);
int updateByPrimaryKey(Users record);
int insert(Users record);
/**
* 检查用户是否存在
* @param user
* @return 存在为true,未存在为false
*/
boolean checkUser(Users user);
int deleteByPrimaryKey(BigDecimal userId);
}