package com.ruoyi.production.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.time.LocalDateTime;
|
|
@Data
|
@TableName("production_product_main")
|
public class ProductionProductMain {
|
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
@Schema(description = "报工单号")
|
@Excel(name = "报工单号")
|
private String productNo;
|
|
@Schema(description = "报工人员id")
|
private Long userId;
|
|
@Schema(description = "报工人员")
|
private String userName;
|
|
@Schema(description = "生产工序工单id")
|
private Long productionOperationTaskId;
|
|
@Schema(description = "报工状态")
|
private Integer status;
|
|
@Schema(description = "创建时间")
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "创建时间")
|
private LocalDateTime createTime;
|
|
@Schema(description = "更新时间")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime updateTime;
|
|
@Schema(description = "创建用户")
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
@Schema(description = "更新用户")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
@TableField(fill = FieldFill.INSERT)
|
private Long deptId;
|
|
}
|