package com.gxwebsoft.clinic.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 药品库查询参数
 *
 * @author 科技小王子
 * @since 2025-10-22 02:06:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ClinicMedicineParam对象", description = "药品库查询参数")
public class ClinicMedicineParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "药名")
    private String name;

    @Schema(description = "拼音")
    private String pinyin;

    @Schema(description = "分类（如“清热解毒”、“补气养血”）")
    private String category;

    @Schema(description = "规格（如“饮片”、“颗粒”）")
    private String specification;

    @Schema(description = "单位（如“克”、“袋”）")
    private String unit;

    @Schema(description = "描述")
    private String content;

    @Schema(description = "单价")
    @QueryField(type = QueryType.EQ)
    private BigDecimal pricePerUnit;

    @Schema(description = "是否活跃")
    @QueryField(type = QueryType.EQ)
    private Integer isActive;

    @Schema(description = "买家用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "备注")
    private String comments;

}
