package com.gxwebsoft.clinic.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 处方明细表

 *
 * @author LX
 * @since 2025-12-10 11:28:03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "PrescriptionOrderItem对象", description = "处方明细表")
@TableName("clinic_prescription_order_item")
public class PrescriptionOrderItem implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联处方")
    private Integer prescriptionId;

    @ApiModelProperty(value = "订单编号")
    private String prescriptionNo;

    @ApiModelProperty(value = "关联药品")
    private Integer medicineId;

    @ApiModelProperty(value = "剂量（如“10g”）")
    private String dosage;

    @ApiModelProperty(value = "用法频率（如“每日三次”）")
    private String usageFrequency;

    @ApiModelProperty(value = "服用天数")
    private Integer days;

    @ApiModelProperty(value = "购买数量")
    private Integer amount;

    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

}
