UsersMapper.java 1.6 KB
Newer Older
licc's avatar
licc committed
1 2
package cn.wisenergy.mapper;

licc's avatar
licc committed
3
import cn.wisenergy.model.app.User;
licc's avatar
licc committed
4 5 6
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

liaoanyuan's avatar
liaoanyuan committed
7 8 9
import java.util.List;
import java.util.Map;

licc's avatar
licc committed
10
/**
licc's avatar
licc committed
11
 * @author 86187
licc's avatar
licc committed
12 13 14
 * @ Description:
 * @ Author     : 86187
 * @ Date       : 2021/1/6 15:32
licc's avatar
licc committed
15
 */
16

licc's avatar
licc committed
17
public interface UsersMapper extends BaseMapper<User> {
18 19

    User selectOne(Map<String, Object> param);
licc's avatar
licc committed
20 21
    /**
     * 添加
licc's avatar
licc committed
22 23
     *
     * @param user 用户信息
licc's avatar
licc committed
24 25
     * @return 用户信息
     */
licc's avatar
licc committed
26
    int add(User user);
licc's avatar
licc committed
27 28 29

    /**
     * 编辑
licc's avatar
licc committed
30 31
     *
     * @param user 用户信息
licc's avatar
licc committed
32 33
     * @return 修改是否成功
     */
licc's avatar
licc committed
34
    int edit(User user);
licc's avatar
licc committed
35 36 37

    /**
     * 删除
licc's avatar
licc committed
38
     *
licc's avatar
licc committed
39 40 41 42
     * @param id 用户id
     * @return 删除是否成功
     */
    int delById(@Param("id") Integer id);
licc's avatar
licc committed
43

44 45 46 47 48 49 50
    /**
     *
     * @param id 用户id
     * @return 用户信息
     */
    User getById(@Param("id") Integer id);

51
    int countByPhoneAnsUserId(@Param("phone") String phone, @Param("userId") Integer userId);
liaoanyuan's avatar
liaoanyuan committed
52

licc's avatar
licc committed
53
    List<User> getList(Map<String, Object> map);
54

xc's avatar
xc committed
55 56
    List<User> getListQuery(Map<String, Object> map);

57 58 59 60 61 62 63 64 65
    List<User> getListQueryVip(Map<String, Object> map);

    Integer getListVipCount(Map<String, Object> map);

    List<User> getStaffVipUser(Map<String, Object> map);

    Integer staffVipUserCount(Map<String, Object> map);


66
    Integer getUserNumbers(Map<String, Object> map);
licc's avatar
licc committed
67 68

    User getByPhone(@Param("phone") String phone);
licc's avatar
licc committed
69 70

    List<User> test(@Param("list") List<String> list);
71 72

    List<User> getUserByStaffId(Map<String, Object> map);
73 74

    Integer getVipUserNumbers(Map<String, Object> map);
licc's avatar
licc committed
75
}