|
@@ -151,6 +151,8 @@ public class HotelServiceImpl extends ServiceImpl<HotelMapper, HotelEntity> impl
|
|
int emergencyStore = 0; //酒店应急储备
|
|
int emergencyStore = 0; //酒店应急储备
|
|
int roomUsed = 0; //房间总入住数量
|
|
int roomUsed = 0; //房间总入住数量
|
|
int roomUsable = 0; //房间总空闲数量
|
|
int roomUsable = 0; //房间总空闲数量
|
|
|
|
+ int touch = 0; //密接人数
|
|
|
|
+ int touchSecond = 0; //次密人数数
|
|
|
|
|
|
for (HotelEntity entity : list) {
|
|
for (HotelEntity entity : list) {
|
|
Integer status = entity.getStatus();
|
|
Integer status = entity.getStatus();
|
|
@@ -164,6 +166,8 @@ public class HotelServiceImpl extends ServiceImpl<HotelMapper, HotelEntity> impl
|
|
|
|
|
|
roomUsed = roomUsed + entity.getUsed();
|
|
roomUsed = roomUsed + entity.getUsed();
|
|
roomUsable = roomUsable + entity.getUsable();
|
|
roomUsable = roomUsable + entity.getUsable();
|
|
|
|
+ touch = touch + entity.getTouch();
|
|
|
|
+ touchSecond = touchSecond + entity.getTouchSecond();
|
|
}
|
|
}
|
|
total = list.size();
|
|
total = list.size();
|
|
|
|
|
|
@@ -174,6 +178,8 @@ public class HotelServiceImpl extends ServiceImpl<HotelMapper, HotelEntity> impl
|
|
map.put("emergencyStore", emergencyStore);
|
|
map.put("emergencyStore", emergencyStore);
|
|
map.put("roomUsed", roomUsed);
|
|
map.put("roomUsed", roomUsed);
|
|
map.put("roomUsable", roomUsable);
|
|
map.put("roomUsable", roomUsable);
|
|
|
|
+ map.put("touch", roomUsable);
|
|
|
|
+ map.put("touchSecond", roomUsable);
|
|
|
|
|
|
|
|
|
|
return Result.success(map);
|
|
return Result.success(map);
|