package com.wgb.system.service.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("business")
@KeySequence("SEQ_BUSINESS_ID")
public class Business {
    @TableId(value = "id", type = IdType.INPUT)
    private Long  id;
    private String  businessNo;                 //维修单号
    private String  userName;                   //姓名
    private String  userCellphone;              //下单人手机号
    private String  address;                    //维修地址地址
    private Integer provinceId;                 //省份
    private Integer city;                       //市区
    private Integer  regionId;                  //维修地址所在区域
    private String  remarks;                    //备注
    private Integer  maintainType;              //维修类型  0安装  1维修
    private Integer businessType;               //分配类型  0抢单  1系统分配
    private Long categoryId;                   //类目ID
    private String  payType;                    //支付方式

    private String installType;                 //维修类型
    private BigDecimal repairPrice;             //维修价格
    private BigDecimal otherPrice;              //配件价格
    private BigDecimal markupPrice;             //加价
    private BigDecimal emptyPrice;              //空跑费

    private Long repairId;                      //维修人员ID
    private Integer maintenanceState;           //维修状态   0待接单 1待预约   2预约失败  3待上门   4已出发  5已返工  6维修确认（门锁照片）   7待回访   8已入账  9评价打分   10申请售后

    private String reservationStartTime;        //预约上门开始时间
    private String reservationEndTime;          //预约上门结束时间
    private String evidenceImages;              //维修完毕上传照片

    private LocalDateTime createTime;
    private LocalDateTime  updateTime;

}
