浏览代码

xielianghe

lange 5 年之前
父节点
当前提交
285b395d83
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      whepi-web/src/main/java/com/bofeng/dao/MsReportMapper.java

+ 1 - 1
whepi-web/src/main/java/com/bofeng/dao/MsReportMapper.java

@@ -19,7 +19,7 @@ public interface MsReportMapper extends BaseMapper<MsReport> {
 
     List<MsReport> selectByReportDate(@Param("reportDate") String reportDate,@Param("userCreate") Long userCreate);
 
-    @Select("select property_id from sys_user_role where user_id=#{userId}")
+    @Select("select property_id from sys_user_role where user_id=#{userId} and role_id=1")
     long selectHouseIdByUserId(@Param("userId") Long userId);
 
     //