Преглед на файлове

**************************************万达adm**********************************************
提交

zhangweixin преди 4 години
родител
ревизия
95f1516896
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      data-core/src/main/kotlin/com/persagy/server/datacenter/datacenter/dao/mappers/SchemeMapper.kt

+ 5 - 1
data-core/src/main/kotlin/com/persagy/server/datacenter/datacenter/dao/mappers/SchemeMapper.kt

@@ -127,7 +127,11 @@ interface SchemeMapper {
     @Select("SELECT floor_id AS id FROM public.equipment WHERE project_id = #{projectId} AND  NOT floor_id IS NULL GROUP BY floor_id")
     fun floorId(@Param("projectId") projectId: String):ArrayList<Building>
 
-
+    /**
+     * 统计楼层id
+     */
+    @Select("SELECT building_id FROM public.zone_space_base WHERE project_id = #{projectId} AND object_type = #{zoneType} GROUP BY building_id")
+    fun spbuildingId(@Param("projectId") projectId: String,@Param("zoneType") zoneType: String):ArrayList<Building>