/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Use of this software is governed by the Commercial License Agreement
 * obtained after purchasing a license from BladeX.
 * <p>
 * 1. This software is for development use only under a valid license
 * from BladeX.
 * <p>
 * 2. Redistribution of this software's source code to any third party
 * without a commercial license is strictly prohibited.
 * <p>
 * 3. Licensees may copyright their own code but cannot use segments
 * from this software for such purposes. Copyright of this software
 * remains with BladeX.
 * <p>
 * Using this software signifies agreement to this License, and the software
 * must not be used for illegal purposes.
 * <p>
 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
 * not liable for any claims arising from secondary or illegal development.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.modules.material.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import java.lang.Double;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springblade.core.mp.base.BaseEntity;

import java.io.Serializable;

/**
 * 出库明细 实体类
 *
 * @author cswang
 * @since 2024-08-25
 */
@Data
@TableName("sf_material_outbound")
@Schema(description = "MaterialOutbound对象")
public class MaterialOutboundEntity extends BaseEntity {

	/**
	 * 公司物料id
	 */
	@Schema(description = "公司物料id")
	private Long materialId;

	@Schema(description = "类型：1.工程师 2.运维商 3.平台")
	private String keepType;

	@Schema(description = "所属工程师userId")
	private String empUserId;
	/**
	 * 所属公司
	 */
	@Schema(description = "记录所属(平台 0 运营商：运营商siteId,工程师,这里保存的是运营商id)")
	private String companyId;

	@Schema(description = "出入库类型：1.入库 2.出库 3.调整库存(通过公司库存页面编辑调整库存数量) 4.工单使用 5.使用删除")
	private String keepFrom;

	@Schema(description = "归属人姓名")
	private String relateName;
	/**
	 * 物料编码
	 */
	@Schema(description = "物料编码")
	private String code;
	/**
	 * 物料名称
	 */
	@Schema(description = "物料名称")
	private String name;
	/**
	 * 物料类型
	 */
	@Schema(description = "物料类型")
	private String type;
	/**
	 * 物料型号
	 */
	@Schema(description = "物料型号")
	private String model;
	/**
	 * 功率(KW)
	 */
	@Schema(description = "功率(KW)")
	private String power;
	/**
	 * 零售价
	 */
	@Schema(description = "零售价")
	private Double retailPrice;
	/**
	 * 物料描述
	 */
	@Schema(description = "物料描述")
	private String description;
	/**
	 * 设备sn码
	 */
	@Schema(description = "设备sn码")
	private String brand;
	/**
	 * 设备条码
	 */
	@Schema(description = "库存")
	private Integer stock;
	/**
	 * 质保状态（1、在保 0过保）
	 */
	@Schema(description = "质保状态（1、在保 0过保）")
	private String unit;
	/**
	 * 明细类型
	 */
	@Schema(description = "明细类型")
	private String outType;
	/**
	 * 方向
	 */
	@Schema(description = "1进库 2出库")
	private String outDirect;
	/**
	 * 明细数量
	 */
	@Schema(description = "明细数量")
	private Integer outCount;
	/**
	 * 出入库总额
	 */
	@Schema(description = "出入库总额")
	private Double outAmount;
	/**
	 * 审核人
	 */
	@Schema(description = "审核人")
	private Long allowUser;
	/**
	 * 审核时间
	 */
	@Schema(description = "审核时间")
	private Date allowTime;

	private String applyId;

	private String remarks;

	@Schema(description = "关联工单id")
	private String relateOrderId;
}
