package com.gis.mapper; import com.gis.domain.entity.SysUserEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.SelectProvider; import org.springframework.stereotype.Component; import java.util.List; @Component @Mapper public interface SysUserMapper extends IBaseMapper { // @SelectProvider(type = UserProvider.class, method = "findAllBySearchKey") // List findAllBySearchKey(String searchKey); @Select(value = "select * from sys_user where rec_status = 'A' AND user_name= #{userName}") SysUserEntity findByUserName(String userName); @Select(value = "select * from sys_user where rec_status = 'A' AND phone = #{phone}") SysUserEntity findByPhone(String phone); // // @SelectProvider(type = UserProvider.class, method = "findBySearchKey") // List findBySearchKey(String searchKey); }