UptownUnitMapper.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.bofeng.dao;
  2. import com.baomidou.mybatisplus.mapper.BaseMapper;
  3. import com.bofeng.entity.UptownUnit;
  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 UptownUnitMapper extends BaseMapper<UptownUnit> {
  12. @Select("select * from sys_uptown_unit where status = 1 and uptown_id = #{uptownId}")
  13. List<UptownUnit> getUptownUnitData(@Param("uptownId") Long uptownId);
  14. List<UptownUnit> queryDongList(@Param("uptownId") Long uptownId);
  15. List<UptownUnit> queryDanYuanList(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole);
  16. List<UptownUnit> queryMenPaiList(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId, @Param("reportDate") String reportDate);
  17. List<UptownUnit> queryXiaoQuList2(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId);
  18. List<UptownUnit> queryYiBaoList2(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId, @Param("reportDate") String reportDate);
  19. List<UptownUnit> queryYiChangList2(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId, @Param("reportDate") String reportDate);
  20. List<UptownUnit> queryXiaoQuList(@Param("uptownId") Long uptownId);
  21. List<UptownUnit> queryYiBaoList(@Param("uptownId") Long uptownId, @Param("reportDate") String reportDate);
  22. List<UptownUnit> queryYiChangList(@Param("uptownId") Long uptownId, @Param("reportDate") String reportDate);
  23. @Select("SELECT u.uptown_id,uu.ridgepole,uu.unit,uh.doorplate FROM sys_user_role ur INNER JOIN sys_uptown_house uh " +
  24. "ON uh.house_id = ur.property_id INNER JOIN sys_uptown_unit uu ON uh.unit_id = uu.unit_id INNER JOIN " +
  25. "sys_uptown u ON u.uptown_id = uu.uptown_id WHERE ur.user_id = #{userId} AND ur.role_id = 1")
  26. UptownUnit getUptownUnitByUser(@Param("userId") Long userId);
  27. }