package com.ruoyi.web.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.web.base.domain.base.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购入库单
 * </p>
 *
 * @author author
 * @since 2026-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("procure_receiving")
@ApiModel(value="ProcureReceiving对象", description="采购入库单")
public class ProcureReceiving extends Base {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "单据编号")
    private String receivingNum;

    @ApiModelProperty(value = "单据日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date receivingDate;

    @ApiModelProperty(value = "价格转入")
    private String priceTransfer;

    @ApiModelProperty(value = "订货日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;

    @ApiModelProperty(value = "采购类型")
    private String orderType;

    @ApiModelProperty(value = "到场时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date arriveDate;

    @ApiModelProperty(value = "供应商编号")
    private String supplierNum;

    @ApiModelProperty(value = "供应商简称")
    private String supplierName;

    @ApiModelProperty(value = "业务员编号")
    private String employeeNum;

    @ApiModelProperty(value = "业务员名称")
    private String employeeName;

    @ApiModelProperty(value = "部门编号")
    private String departmentNum;

    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "畜主")
    private String livestockOwner;

    @ApiModelProperty(value = "畜主信息")
    private String livestockOwnerInfo;

    @ApiModelProperty(value = "检疫证")
    private String animalCertNo;

    @ApiModelProperty(value = "准宰证")
    private String allowSlaughterNo;

    @ApiModelProperty(value = "产地")
    private String placeOfOrigin;

    @ApiModelProperty(value = "合计金额")
    private String totalAmount;
    @TableField(exist =  false)
    private List<ProcureReceivingGoods> goods;


}
