| 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); | 
|   | 
|     List<BaUser> selectByAssistants(String assistants) ; | 
|   | 
| } |