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.math.BigDecimal;
|
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 = "报工结果类型:0合格,1轻微返工,2严重返工,3报废")
|
@TableField("report_type")
|
private Integer reportType;
|
|
@Schema(description = "审核状态:0待审核,1审核通过,2审核不通过")
|
@TableField("audit_status")
|
private Integer auditStatus;
|
|
@Schema(description = "审核意见")
|
@TableField("audit_remark")
|
private String auditRemark;
|
|
@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;
|
|
@Schema(description = "工时")
|
private BigDecimal workHour;
|
|
}
|