OwnerMapper.java 662 B

123456789101112131415161718192021
  1. package com.bofeng.dao;
  2. import com.baomidou.mybatisplus.mapper.BaseMapper;
  3. import com.bofeng.entity.Owner;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import org.apache.ibatis.annotations.Select;
  7. import org.springframework.stereotype.Repository;
  8. import java.util.List;
  9. @Mapper
  10. @Repository
  11. public interface OwnerMapper extends BaseMapper<Owner> {
  12. @Select("select * from sys_owner where uptown_id = #{uptownId}")
  13. List<Owner> getOwnerByUptownId(@Param("uptownId") Long uptownId);
  14. @Select("select * from sys_owner where phone = #{phone}")
  15. List<Owner> getOwnerByPhone(@Param("phone") String phone);
  16. }