package com.xinelu.manage.domain.nursestationpersonrevenue;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 护理员订单佣金收益信息对象 nurse_station_person_revenue
 *
 * @author xinyilu
 * @date 2023-03-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "护理员订单佣金收益信息对象", description = "nurse_station_person_revenue")
public class NurseStationPersonRevenue extends BaseDomain implements Serializable {
    private static final long serialVersionUID = -5400211001451444886L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 护理站人员表id
     */
    @ApiModelProperty(value = "护理站人员表id")
    @Excel(name = "护理站人员表id")
    private Long nurseStationPersonId;

    /**
     * 预约订单表id
     */
    @ApiModelProperty(value = "预约订单表id")
    @Excel(name = "预约订单表id")
    private Long appointmentOrderId;

    /**
     * 收益金额
     */
    @ApiModelProperty(value = "收益金额")
    @Excel(name = "收益金额")
    private BigDecimal revenueAmount;

    /**
     * 预约订单完成时间
     */
    @ApiModelProperty(value = "预约订单完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约订单完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishOrderTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("nurseStationPersonId", getNurseStationPersonId())
                .append("appointmentOrderId", getAppointmentOrderId())
                .append("revenueAmount", getRevenueAmount())
                .append("finishOrderTime", getFinishOrderTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}