package com.chuanghai.ihotel.vo; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.time.LocalDateTime; /** * @Author: codingliang * @Description: 房间实时状态vo * @Date: 2022-08-04 16:46 * @Version: V1.0 **/ @Data public class RoomRealDataStatuVO { /** * 房间id */ private Long roomId; /** * 当前状态 1空闲、2预定、3入住、4脏房、5锁定 */ private String statu; /** * 房间使用信息 当前状态为2、3、4时该字段有值 */ private RoomUseInfo useInfo; @Data public static class RoomUseInfo { /** * 订单id */ private Long orderId; /** * 客人姓名 */ private String userName; /** * 开始时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime enableStartTime; /** * 退房时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime enableEndTime; /** * 水起码 单位:吨 */ private String startOfWater; /** * 电起码 单位:度 */ private String startOfElectric; } }