package com.bofeng.dao; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.bofeng.entity.Owner; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository public interface OwnerMapper extends BaseMapper { @Select("select * from sys_owner where uptown_id = #{uptownId}") List getOwnerByUptownId(@Param("uptownId") Long uptownId); @Select("select * from sys_owner where phone = #{phone}") List getOwnerByPhone(@Param("phone") String phone); }