package com.matrix.biz.service;
|
|
import com.matrix.biz.bean.BizUser;
|
import com.matrix.core.pojo.PaginationVO;
|
|
import java.util.List;
|
|
/**
|
* @description service接口类 (用户表)
|
* @author jyy
|
* @date 2019-05-31 10:03
|
*/
|
public interface BizUserService {
|
|
/**
|
* 新增
|
*/
|
public int add(BizUser bizUser);
|
|
/**
|
* 批量新增
|
*/
|
public int batchAdd(List<BizUser> bizUserList);
|
|
/**
|
* 根据map键值对 更新
|
*/
|
public int modifyByMap(BizUser oldBizUser, BizUser newBizUser);
|
|
/**
|
* 根据对象 更新
|
*/
|
public int modifyByModel(BizUser bizUser);
|
|
|
|
/**
|
* 根据id删除
|
*/
|
public int removeById(Long userId);
|
|
/**
|
* 根据对象删除
|
*/
|
public int removeByModel(BizUser bizUser);
|
|
/**
|
* 分页查询
|
*/
|
public List<BizUser> findInPage(BizUser bizUser, PaginationVO pageVo);
|
|
/**
|
* 根据对象查询
|
*/
|
public List<BizUser> findByModel(BizUser bizUser);
|
|
/**
|
* 统计记录数
|
*/
|
public int findTotal(BizUser bizUser);
|
|
public int remove(List<Long> list);
|
|
|
/**
|
* 根据openId更新
|
*/
|
|
public BizUser findByOpenId(String openId);
|
|
public BizUser findById(Long userId);
|
/**
|
* 保存用户信息
|
*/
|
public int saveUserInfo(BizUser bizUser);
|
|
/**
|
* 设置为推广员
|
* @param invitationId
|
*/
|
public int setToBeAnSalesman(String openId,String invitationId);
|
}
|