UptownMapper.java 975 B

123456789101112131415161718192021222324252627
  1. package com.bofeng.dao;
  2. import com.baomidou.mybatisplus.mapper.BaseMapper;
  3. import com.bofeng.entity.Uptown;
  4. import com.yvan.PageDb;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.apache.ibatis.annotations.Select;
  8. import org.springframework.stereotype.Repository;
  9. import java.util.List;
  10. import java.util.Map;
  11. @Mapper
  12. @Repository
  13. public interface UptownMapper extends BaseMapper<Uptown> {
  14. @Select("select * from sys_uptown where status = 1 and area = #{area}")
  15. List<Uptown> getAllUptown(@Param("area") Integer area);
  16. List<Uptown> getUptowns(PageDb pageDb, Map<String, Object> queryParam);
  17. List<Uptown> getUptowns(Map<String, Object> queryParam);
  18. @Select("select * from sys_uptown u INNER JOIN sys_uptown_unit uu on uu.uptown_id = u.uptown_id INNER JOIN sys_uptown_house uh on uh.unit_id = uu.unit_id where uh.house_id = #{houseId}")
  19. Uptown getUptownByHouseId(@Param("houseId")Long houseId);
  20. }