package com.ruoyi.warehouse.pojo; import com.baomidou.mybatisplus.annotation.*; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.dto.DateQueryDto; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; /** * 文档借阅-归还表 * @TableName documentation_borrow_management */ @TableName(value ="documentation_borrow_management") @Data @ApiModel(value = "文档借阅-归还表") public class DocumentationBorrowManagement extends DateQueryDto implements Serializable { private static final long serialVersionUID = 1L; /** * 主键 */ @TableId(type = IdType.AUTO) private Long id; /** * 文档id */ @ApiModelProperty(value = "文档id") private Long documentationId; /** * 借阅人id */ @ApiModelProperty(value = "借阅人id") private Long borrowerId; /** * 归还人id */ @ApiModelProperty(value = "归还人id") private Long returnerId; /** * 借阅目的 */ @Excel(name = "借阅目的") @ApiModelProperty(value = "借阅目的") private String borrowPurpose; /** * 借阅日期 */ @ApiModelProperty(value = "借阅日期") @Excel(name = "借阅日期", dateFormat = "yyyy-MM-dd", width = 30) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDateTime borrowDate; /** * 应归还日期 */ @ApiModelProperty(value = "应归还日期") @Excel(name = "应归还日期", dateFormat = "yyyy-MM-dd", width = 30) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime dueReturnDate; /** * 实际归还日期 */ @ApiModelProperty(value = "实际归还日期") @Excel(name = "实际归还日期", dateFormat = "yyyy-MM-dd", width = 30) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime returnDate; /** * 借阅状态 */ @ApiModelProperty(value = "借阅状态") @Excel(name = "借阅状态") private String borrowStatus; /** * 备注 */ @ApiModelProperty(value = "备注") @Excel(name = "备注") private String remark; /** * 创建时间 */ @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; /** * 创建用户 */ @TableField(fill = FieldFill.INSERT) private Integer createUser; /** * 修改时间 */ @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; /** * 修改用户 */ @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; /** * 租户id */ @TableField(fill = FieldFill.INSERT) private Long tenantId; }