|
|
@@ -0,0 +1,103 @@
|
|
|
+package org.dromara.hotel.domain.vo;
|
|
|
+
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
+import io.github.linpeilie.annotations.AutoMapper;
|
|
|
+import lombok.Data;
|
|
|
+import org.dromara.common.excel.annotation.ExcelDictFormat;
|
|
|
+import org.dromara.common.excel.convert.ExcelDictConvert;
|
|
|
+import org.dromara.common.translation.annotation.Translation;
|
|
|
+import org.dromara.common.translation.constant.TransConstant;
|
|
|
+import org.dromara.hotel.domain.HotelRoom;
|
|
|
+
|
|
|
+import java.io.Serial;
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * 房间定义视图对象 t_pt_room
|
|
|
+ *
|
|
|
+ * @author bing
|
|
|
+ * @date 2024-08-09
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@AutoMapper(target = HotelRoom.class)
|
|
|
+public class HotelRoomVo implements Serializable {
|
|
|
+
|
|
|
+ @Serial
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 房间Id,主键
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "房间Id,主键")
|
|
|
+ private Long roomId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 所属区域id
|
|
|
+ */
|
|
|
+// @ExcelProperty(value = "所属区域id")
|
|
|
+ private Long areaId;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "所属区域")
|
|
|
+ private String areaName;
|
|
|
+ private String allAreaName;
|
|
|
+ /**
|
|
|
+ * 房间编码
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "房间编码")
|
|
|
+ private String roomCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 房间名称
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "房间名称")
|
|
|
+ private String roomName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 房间类型,见FJLX字典类型
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "房间类型", converter = ExcelDictConvert.class)
|
|
|
+ @ExcelDictFormat(dictType = "FJLX")
|
|
|
+ private String roomType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 门牌号1
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "门牌号1")
|
|
|
+ private String codeOne;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 客房类型
|
|
|
+ */
|
|
|
+ private Long guestRoomType;
|
|
|
+
|
|
|
+ @Translation(type = TransConstant.GUEST_ROOM_TYPE_TO_NAME, mapper = "guestRoomType")
|
|
|
+ private String guestRoomTypeName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 有无网络
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "有无网络", converter = ExcelDictConvert.class)
|
|
|
+ @ExcelDictFormat(dictType = "dict_has_network")
|
|
|
+ private String hasNetwork;
|
|
|
+
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态 字典 dict_hotel_room_status
|
|
|
+ */
|
|
|
+ private String status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 门锁Id
|
|
|
+ */
|
|
|
+ private String lockId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 门锁密码
|
|
|
+ */
|
|
|
+ private String lockPassword;
|
|
|
+
|
|
|
+
|
|
|
+}
|