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:32
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ClinicMedicineInoutParam对象", description = "出入库查询参数")
public class ClinicMedicineInoutParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

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

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

    @Schema(description = "分销商用户id(一级)")
    @QueryField(type = QueryType.EQ)
    private Integer firstUserId;

    @Schema(description = "分销商用户id(二级)")
    @QueryField(type = QueryType.EQ)
    private Integer secondUserId;

    @Schema(description = "分销商用户id(三级)")
    @QueryField(type = QueryType.EQ)
    private Integer thirdUserId;

    @Schema(description = "分销佣金(一级)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal firstMoney;

    @Schema(description = "分销佣金(二级)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal secondMoney;

    @Schema(description = "分销佣金(三级)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal thirdMoney;

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

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

    @Schema(description = "结算金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal settledPrice;

    @Schema(description = "换算成度")
    @QueryField(type = QueryType.EQ)
    private BigDecimal degreePrice;

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

    @Schema(description = "税率")
    @QueryField(type = QueryType.EQ)
    private BigDecimal rate;

    @Schema(description = "结算月份")
    private String month;

    @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 = "备注")
    private String comments;

}
