/*
 *      Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.pl.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 产品表 实体类
 *
 * @author BladeX
 * @since 2023-12-05
 */
@Data
@TableName("pl_product")
@ApiModel(value = "Product对象", description = "产品表")
@EqualsAndHashCode(callSuper = true)
public class ProductEntity extends TenantEntity {

	/**
	 * 所属工厂
	 */
	@ApiModelProperty(value = "所属工厂")
	private Long factoryId;
	/**
	 * 所属客户
	 */
	@ApiModelProperty(value = "所属客户")
	private Long clientId;
	/**
	 * 批次id
	 */
	@ApiModelProperty(value = "批次id")
	private Long batchId;
	/**
	 * 批次号
	 */
	@ApiModelProperty(value = "批次号")
	private String batchNo;
	/**
	 * 产品型号id
	 */
	@ApiModelProperty(value = "产品型号id")
	private Long productModelId;
	/**
	 * 产品名称
	 */
	@ApiModelProperty(value = "产品名称")
	private String productName;
	/**
	 * 产品型号
	 */
	@ApiModelProperty(value = "产品型号")
	private String productModel;
	/**
	 * 正面图片
	 */
	@ApiModelProperty(value = "正面图片")
	private String frontImg;
	/**
	 * 正面图片
	 */
	@ApiModelProperty(value = "正面Ai图片")
	private String frontAiImg;
	/**
	 * 背面图片
	 */
	@ApiModelProperty(value = "背面图片")
	private String backImg;
	/**
	 * 背面图片
	 */
	@ApiModelProperty(value = "背面Ai图片")
	private String backAiImg;
	/**
	 * 扫码日期
	 */
	@ApiModelProperty(value = "扫码日期")
	private String scanDate;
	/**
	 * 二维码编号
	 */
	@ApiModelProperty(value = "二维码编号")
	private String qrCode;
	/**
	 * 水冷
	 */
	@ApiModelProperty(value = "水冷")
	private String waterCooling;
	/**
	 * 气密
	 */
	@ApiModelProperty(value = "气密")
	private String airtight;
	/**
	 * 订单号
	 */
	@ApiModelProperty(value = "订单号")
	private String orderNo;
	/**
	 * 冷板二维码
	 */
	@ApiModelProperty(value = "冷板二维码")
	private String coldQrCode;
	/**
	 * 检测结果(1合格 2不合格)
	 */
	@ApiModelProperty(value = "检测结果(1合格 2不合格)")
	private String checkResult;
	/**
	 * 入库时间
	 */
	@ApiModelProperty(value = "入库时间")
	private Date inStockDate;
	/**
	 * 原二维码
	 */
	@ApiModelProperty(value = "原二维码")
	private String oldQrCode;

//	@TableField(exist = false)
//	private boolean $cellEdit = true;
//
//	public boolean is$cellEdit() { return true; }


	/**
	 * 新二维码编号
	 */
	@ApiModelProperty(value = "新二维码编号")
	@TableField(exist = false)
	private String newQrCode;
	/**
	 * ai识别状态 -1无需识别 0未识别 1ng 2ok 3人工ok
	 */
	@ApiModelProperty(value = "ai识别状态 -1无需识别 0未识别 1ng 2ok 3人工ok")
	private Integer aiStatus;
	/**
	 * 产品来源 1相机拍照 2产品入库 3维修 4工序追溯
	 */
	@ApiModelProperty(value = "产品来源 1相机拍照 2产品入库 3维修 4工序追溯")
	private Integer source;

}
