liurunyu
2024-04-15 55d5046ae0a9da1109e402d7d719f765a4bccdae
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
43
44
45
46
47
48
49
50
51
52
package com.dy.pmsGlobal.daoBa;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pmsGlobal.pojoBa.BaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
@Mapper
public interface BaUserMapper  {
 
    /**
     * 用户登录
     * @param phone 手机号
     * @param password 密码
     * @return BaUser
     */
    BaUser login(@Param("phone") String phone, @Param("password") String password) ;
 
    BaUser selectByPrimaryKey(Long id);
 
    Long selectCount() ;
 
    BaUser login(Map<String, Object> params) ;
 
    Long selectSomeCount(Map<String, Object> params) ;
 
    List<BaUser> selectSome(Map<String, Object> params) ;
 
    int insert(BaUser record);
 
    int insertSelective(BaUser record);
 
 
    int updateByPrimaryKeySelective(BaUser record);
 
    int updateByPrimaryKey(BaUser record);
 
    int changePassword(@Param("id")Long id,@Param("password")String password) ;
 
    int deleteByPrimaryKey(Long id);
 
    /**
     * 逻辑删除
     * @param id primaryKey
     * @return update count
     */
    int deleteLogicById(Long id);
 
}