package thyyxxk.webserver.entity.medicine;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @ClassName YpTempPurchase
 * @Author hsh
 * @Date 2024/4/24 16:01
 * @Version 1.0
 * @Description 药品预购申请与审核
 **/
@Data
@TableName(value = "yp_temp_purchase")
public class YpTempPurchase implements Serializable {

    private static final long serialVersionUID = -1L;

    @TableId(value = "apply_id", type = IdType.NONE)
    private String applyId;
    private String chargeCode;
    private String chargeName;
    private String serial;
    private String specification;
    private BigDecimal amount;
    private String opId;
    private String op;
    private String name;
    private String inpatientNo;
    private Integer admissTimes;
    private String receptFlag; // 1: 接收  9： 重新修改后申请
    private String purchaseFlag; // 1： 采购
    private String storageFlag; // 1： 入库
    private String applyDate; // 申请日期
    private String auditDate; // 审核日期（接收日期）
    private String result; // 采购原因
    private String useResult; // 申请使用理由
    private String manuFactory; // 生产厂家
    private String auditId; // 审核人id
    private String auditName; // 审核人
    private String purchaseId; // 采购人id
    private String purchaseName; // 采购人
    private String storageId; // 入库人id
    private String storageName; // 入库人
    @TableField(exist = false)
    private String permissions; // 0: 修改权限; 1: 审核权限

}
