package com.happy.Model;


import com.happy.Until.DateUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BookingComment {
    //    主键
    private String id;

    //    回复评论id
    private String commentId;

    //    回复主评论id
    private String commentParentId;

    //    回复主评论人姓名
    private String commentName;

    //    评论订单id
    private String bookingId;

    //    评论订单号
    private String order_num;

    //    评论民宿id
    private String hotelId;

    //    评论房型id
    private String houseId;

    //    内容
    private String content;

    //    评价状态
    private String commentStatus;

    //    总评分
    private Double score;

    //    卫生评分
    private Double scoreWs;

    //    服务评分
    private Double scoreFw;

    //    设施评分
    private Double scoreSs;

    //    位置评分
    private Double scoreWz;

    //    创建人
    private Integer createId;

    //    评价人
    private String createName;

    private String createUsername;

    //    创建时间
    private String createDate;

    //    修改时间
    private String modifyDate;

    //    状态(0删除 1正常)
    private String status;
    //退房时间
    private String checkOutTime;
    //用户头像
    private String headPhoto;

    //    下级评论回复
    private List<BookingComment> lowCommentList;

    public String getCreateDate() {
        return DateUtil.convertDateTimeMysql(createDate);
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getModifyDate() {
        return DateUtil.convertDateTimeMysql(modifyDate);
    }

    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getCheckOutTime() {
        return DateUtil.convertDateTimeMysql(checkOutTime);
    }

    public void setCheckOutTime(String checkOutTime) {
        this.checkOutTime = checkOutTime;
    }
}
