package com.zksy.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 燃气管网维修记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pipe_repair_record", schema = "app_user")
public class PipeRepairRecord {

    @TableId(value = "repair_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("维修记录ID")
    private String repairId;

    @ApiModelProperty("关联管网设施ID")
    private String networkId;

    @ApiModelProperty("维修日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate repairDate;

    @ApiModelProperty("维修类型")
    private String repairType;

    @ApiModelProperty("维修内容")
    private String repairContent;

    @ApiModelProperty("维修单位")
    private String repairCompany;

    @ApiModelProperty("维修费用（元）")
    private BigDecimal repairCost;

    @ApiModelProperty("维修负责人")
    private String repairPerson;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("维修图片URL（多图逗号分隔）")
    private String repairImages;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableLogic(value = "0", delval = "2")
    @ApiModelProperty("删除标志（0=正常 2=删除）")
    private String delFlag;
}
