package com.ruoyi.database.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@TableName("non_working_day_drinking_report")
@ApiModel("非工作日饮酒报备单")
public class NonWorkingDayDrinkingReport {

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

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("单位职务")
    private String position;

    @ApiModelProperty("饮酒时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime drinkTime;

    @ApiModelProperty("出行方式")
    private String travelMode;

    @ApiModelProperty("饮酒地点")
    private String drinkPlace;

    @ApiModelProperty("饮酒事由")
    private String reason;

    @ApiModelProperty("是否本人付款（0-否 1-是）")
    private Integer isSelfPay;

    @ApiModelProperty("是否有管理和服务对象参与（0-否 1-是）")
    private Integer hasServiceObject;

    @ApiModelProperty("是否参与影响公正执行公务的宴请（0-否 1-是）")
    private Integer affectOfficialDuties;

    @ApiModelProperty("是否存在领导干部/单位间相互宴请（0-否 1-是）")
    private Integer mutualBanquet;

    @ApiModelProperty("是否接受下属或地方公安机关宴请（0-否 1-是）")
    private Integer acceptSubordinateInvite;

    @ApiModelProperty("是否出入私人会所或参与一桌餐（0-否 1-是）")
    private Integer privateClub;

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

    @ApiModelProperty("承诺人签名")
    private String commitmentSign;

    @ApiModelProperty("责任领导签名")
    private String leaderSign;

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

    @ApiModelProperty("创建人")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("修改人")
    private String updateBy;

    @TableField(exist = false)
    private String fTime;
    @TableField(exist = false)
    private String eTime;
}