# WalkRoomDateinOther.java

    package cloud.wconnect.frontoffice.entity.walkroomrequest;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.io.Serializable;

    import com.baomidou.mybatisplus.annotation.TableName;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

    /**
     * <p>
     *
     * </p>
     *
     * @author lichen
     * @since 2023-07-08
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("walk_room_datein_other_v2")
    public class WalkRoomDateinOther implements Serializable {

        private static final long serialVersionUID = 1L;

        @TableId(value = "id", type = IdType.AUTO)
        private Long id;

        /**
         * request form id
         */
        private Long reqId;

        /**
         * From 资产id
         */
        @TableField("from_hotel")
        private Integer fromPropertyId;

        /**
         * To 资产id
         */
        @TableField("to_hotel")
        private Integer toPropertyId;

        /**
         * 对应住店日(yyyyMMdd)
         */
        private Integer date;

        private String crsNumber;

        /**
         * Status (1:checked-in 2:no-show 3:cancelled 4:early check-out)
         */
        private Integer status;

        private String comment;

        /**
         * 发送方当前审批索引
         */
        private Integer sentApproveIndex;

        /**
         * 发送方审批状态 2:Approvaing 审核中 3: Approved 审核结束 4:rejected 审核驳回
         */
        private Integer sentApproveStatus;

        /**
         * 接收方当前审批索引
         */
        private Integer receiveApproveIndex;

        /**
         * 接收方审批状态  2:Approvaing 审核中 3: Approved 审核结束 4:rejected 审核驳回
         */
        private Integer receiveApproveStatus;

        /**
         * 更新人id
         */
        private Integer updateBy;

        /**
         * 更新时间
         */
        private Long updateTime;

        /**
         * reqId 和 date 组合成key
         * @return
         */
        public static String generateKey(Long reqId, Integer date){
            return reqId.toString() + "_" + date.toString();
        }

    }