lange %!s(int64=5) %!d(string=hai) anos
pai
achega
285b395d83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 
     //