/*
|
* Copyright (c) 2018-2025, ztt All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the pig4cloud.com developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: ztt
|
*/
|
|
package com.chinaztt.mes.quality.entity;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import java.time.LocalDateTime;
|
|
/**
|
* 抽检规则
|
*
|
* @author shz
|
* @date 2023-04-13 09:48:37
|
*/
|
@Data
|
@TableName("quality_sampling_rule")
|
@EqualsAndHashCode(callSuper = true)
|
@ApiModel(value = "抽检规则")
|
public class SamplingRule extends Model<SamplingRule> {
|
private static final long serialVersionUID = 1L;
|
public static final int DIGIT = 8;
|
public static final String PREFIX ="SR";
|
/**
|
* id
|
*/
|
@TableId
|
@ApiModelProperty(value = "id")
|
private Long id;
|
/**
|
* 规则编号
|
*/
|
@ApiModelProperty(value = "规则编号")
|
private String ruleNo;
|
/**
|
* 规则名称
|
*/
|
@ApiModelProperty(value = "规则名称")
|
@NotNull(message = "规则名称不能为空")
|
private String ruleName;
|
/**
|
* 抽检工序id
|
*/
|
@ApiModelProperty(value = "抽检工序id")
|
@NotNull(message = "抽检工序不能为空")
|
private Long samplingOperationId;
|
/**
|
* 抽检工序名称
|
*/
|
@ApiModelProperty(value = "抽检工序名称")
|
private String samplingOperationName;
|
/**
|
* 追溯工序id
|
*/
|
@ApiModelProperty(value = "追溯工序id")
|
@NotNull(message = "追溯工序不能为空")
|
private Long retrospectOperationId;
|
/**
|
* 追溯工序名称
|
*/
|
@ApiModelProperty(value = "追溯工序名称")
|
private String retrospectOperationName;
|
/**
|
* 检测类型
|
*/
|
@ApiModelProperty(value = "检测类型")
|
@NotBlank(message = "检测类型不能为空")
|
private String applyType;
|
/**
|
* 抽检分母
|
*/
|
@ApiModelProperty(value = "抽检分母")
|
@NotNull(message = "抽检比例不能为空")
|
private Integer samplingDenominator;
|
/**
|
* 抽检分子
|
*/
|
@ApiModelProperty(value = "抽检分子")
|
@NotNull(message = "抽检比例不能为空")
|
private Integer samplingNumerator;
|
/**
|
* 创建时间
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
@ApiModelProperty(value = "创建时间")
|
private LocalDateTime createTime;
|
/**
|
* 更新时间
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@ApiModelProperty(value = "更新时间")
|
private LocalDateTime updateTime;
|
/**
|
* 创建者
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
@ApiModelProperty(value = "创建者")
|
private String createUser;
|
/**
|
* 更新者
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@ApiModelProperty(value = "更新者")
|
private String updateUser;
|
/**
|
* 抽检位置
|
*/
|
@ApiModelProperty(value = "抽检位置")
|
private String samplingPosition;
|
}
|