|
@@ -149,8 +149,11 @@ public class HotelServiceImpl extends ServiceImpl<HotelMapper, HotelEntity> impl
|
|
|
int used = 0; // 酒店在用
|
|
|
int store = 0; // 酒店储备
|
|
|
int emergencyStore = 0; //酒店应急储备
|
|
|
+
|
|
|
+ int roomTotal = 0; //总房间数
|
|
|
int roomUsed = 0; //房间总入住数量
|
|
|
int roomUsable = 0; //房间总空闲数量
|
|
|
+ int roomIsolation = 0; //隔离房间数
|
|
|
int touch = 0; //密接人数
|
|
|
int touchSecond = 0; //次密人数数
|
|
|
|
|
@@ -164,8 +167,10 @@ public class HotelServiceImpl extends ServiceImpl<HotelMapper, HotelEntity> impl
|
|
|
emergencyStore++;
|
|
|
}
|
|
|
|
|
|
+ roomTotal = roomTotal + entity.getTotal();
|
|
|
roomUsed = roomUsed + entity.getUsed();
|
|
|
roomUsable = roomUsable + entity.getUsable();
|
|
|
+ roomIsolation = roomIsolation + entity.getRoomIsolation();
|
|
|
touch = touch + entity.getTouch();
|
|
|
touchSecond = touchSecond + entity.getTouchSecond();
|
|
|
}
|
|
@@ -176,10 +181,11 @@ public class HotelServiceImpl extends ServiceImpl<HotelMapper, HotelEntity> impl
|
|
|
map.put("used", used);
|
|
|
map.put("store", store);
|
|
|
map.put("emergencyStore", emergencyStore);
|
|
|
+ map.put("roomTotal", roomTotal);
|
|
|
map.put("roomUsed", roomUsed);
|
|
|
map.put("roomUsable", roomUsable);
|
|
|
- map.put("touch", roomUsable);
|
|
|
- map.put("touchSecond", roomUsable);
|
|
|
+ map.put("touch", touch);
|
|
|
+ map.put("touchSecond", touchSecond);
|
|
|
|
|
|
|
|
|
return Result.success(map);
|