package com.ruoyi.inspectiontask.pojo; import com.baomidou.mybatisplus.annotation.FieldFill; 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.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDateTime; /** * @author :yys * @date : 2025/9/19 10:29 */ @Data @Schema @TableName("qr_code") public class QrCode { private static final long serialVersionUID = 1L; /** * 二维码唯一标识 */ @TableId(type = IdType.AUTO) private Long id; @Schema(description = "设备名称") private String deviceName; @Schema(description = "所在位置描述") private String location; @Schema(description = "租户ID,用于多租户隔离") @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT) private Long tenantId; @Schema(description = "软删除标志,0=未删除,1=已删除") private Integer deleted; @Schema(description = "创建该记录的用户") @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT) private Integer createUser; @Schema(description = "记录创建时间") @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @Schema(description = "最后修改该记录的用户") @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE) private Integer updateUser; @Schema(description = "记录最后更新时间") @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; @TableField(fill = FieldFill.INSERT) private Long deptId; }