package com.gxwebsoft.clinic.param;

import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
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)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "PrescriptionOrderItemParam对象", description = "处方明细表查询参数")
public class PrescriptionOrderItemParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @ApiModelProperty(value = "关联处方")
    @QueryField(type = QueryType.EQ)
    private Integer prescriptionId;

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

    @ApiModelProperty(value = "关联药品")
    @QueryField(type = QueryType.EQ)
    private Integer medicineId;

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

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

    @ApiModelProperty(value = "服用天数")
    @QueryField(type = QueryType.EQ)
    private Integer days;

    @ApiModelProperty(value = "购买数量")
    @QueryField(type = QueryType.EQ)
    private Integer amount;

    @ApiModelProperty(value = "单价")
    @QueryField(type = QueryType.EQ)
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "数量")
    @QueryField(type = QueryType.EQ)
    private Integer quantity;

    @ApiModelProperty(value = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

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

    @ApiModelProperty(value = "用户id")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

}
