package com.gxwebsoft.clinic.param;

import com.baomidou.mybatisplus.annotation.TableField;
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;
import java.util.Set;

/**
 * 处方主表
查询参数
 *
 * @author 科技小王子
 * @since 2025-10-22 02:01:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ClinicPrescriptionParam对象", description = "处方主表查询参数")
public class ClinicPrescriptionParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "患者")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "医生")
    @QueryField(type = QueryType.EQ)
    private Integer doctorId;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "订单类型 0商城订单 1处方订单")
    private Integer type;

    @Schema(description = "关联就诊表")
    @QueryField(type = QueryType.EQ)
    private Integer visitRecordId;

    @Schema(description = "处方类型 0中药 1西药")
    @QueryField(type = QueryType.EQ)
    private Integer prescriptionType;

    @Schema(description = "诊断结果")
    private String diagnosis;

    @Schema(description = "治疗方案")
    private String treatmentPlan;

    @Schema(description = "煎药说明")
    private String decoctionInstructions;

    @Schema(description = "订单总金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal orderPrice;

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

    @Schema(description = "实付金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal payPrice;

    @Schema(description = "订单是否失效(0未失效 1已失效)")
    @QueryField(type = QueryType.EQ)
    private Integer isInvalid;

    @Schema(description = "结算(0未结算 1已结算)")
    @QueryField(type = QueryType.EQ)
    private Integer isSettled;

    @Schema(description = "结算时间")
    private String settleTime;

    @Schema(description = "状态, 0正常, 1已完成，2已支付，3已取消")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

    @Schema(description = "处方ID集查询")
    @TableField(exist = false)
    private Set<Integer> ids;

    @Schema(description = "订单状态筛选：-1全部，0待支付，1待发货，2待核销，3待收货，4待评价，5已完成，6已退款，7已删除")
    private Integer statusFilter;

}
