package com.bofeng.dao; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.bofeng.entity.UptownUnit; 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 UptownUnitMapper extends BaseMapper { @Select("select * from sys_uptown_unit where status = 1 and uptown_id = #{uptownId}") List getUptownUnitData(@Param("uptownId") Long uptownId); List queryDongList(@Param("uptownId") Long uptownId); List queryDanYuanList(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole); List queryMenPaiList(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId, @Param("reportDate") String reportDate); List queryXiaoQuList2(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId); List queryYiBaoList2(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId, @Param("reportDate") String reportDate); List queryYiChangList2(@Param("uptownId") Long uptownId, @Param("ridgepole") Long ridgepole, @Param("unitId") Long unitId, @Param("reportDate") String reportDate); List queryXiaoQuList(@Param("uptownId") Long uptownId); List queryYiBaoList(@Param("uptownId") Long uptownId, @Param("reportDate") String reportDate); List queryYiChangList(@Param("uptownId") Long uptownId, @Param("reportDate") String reportDate); @Select("SELECT u.uptown_id,u.uptown_name as uptownName,uu.ridgepole,uu.unit,uu.unit_id,uh.doorplate FROM sys_user_role ur INNER JOIN sys_uptown_house uh " + "ON uh.house_id = ur.property_id INNER JOIN sys_uptown_unit uu ON uh.unit_id = uu.unit_id INNER JOIN " + "sys_uptown u ON u.uptown_id = uu.uptown_id WHERE ur.user_id = #{userId} AND ur.role_id = 1") UptownUnit getUptownUnitByUser(@Param("userId") Long userId); @Select("select * from sys_uptown_unit where status = 1 and uptown_id = 1238790987234") List getUptownUnitLY(); }