package com.gxwebsoft.shop.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.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 配送员查询参数
 *
 * @author 科技小王子
 * @since 2026-01-30 15:14:15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopStoreRiderParam对象", description = "配送员查询参数")
public class ShopStoreRiderParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "门店ID")
    @QueryField(type = QueryType.EQ)
    private Integer storeId;

    @Schema(description = "骑手编号（可选）")
    private String riderNo;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "身份证号（可选）")
    private String idCardNo;

    @Schema(description = "状态：1启用；0禁用")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "接单状态：0休息/下线；1在线；2忙碌")
    @QueryField(type = QueryType.EQ)
    private Integer workStatus;

    @Schema(description = "是否开启自动派单：1是；0否")
    @QueryField(type = QueryType.EQ)
    private Integer autoDispatchEnabled;

    @Schema(description = "派单优先级（同小区多骑手时可用，值越大越优先）")
    @QueryField(type = QueryType.EQ)
    private Integer dispatchPriority;

    @Schema(description = "最大同时配送单数（0表示不限制）")
    @QueryField(type = QueryType.EQ)
    private Integer maxOnhandOrders;

    @Schema(description = "是否计算工资(提成)：1计算；0不计算（如三方配送点可设0）")
    @QueryField(type = QueryType.EQ)
    private Integer commissionCalcEnabled;

    @Schema(description = "水每桶提成金额（元/桶）")
    @QueryField(type = QueryType.EQ)
    private BigDecimal waterBucketUnitFee;

    @Schema(description = "其他商品提成方式：1按订单固定金额；2按订单金额比例；3按商品规则(另表)")
    @QueryField(type = QueryType.EQ)
    private Integer otherGoodsCommissionType;

    @Schema(description = "其他商品提成值：固定金额(元)或比例(%)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal otherGoodsCommissionValue;

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

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

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

    @Schema(description = "是否删除")
    @QueryField(type = QueryType.EQ)
    private Integer isDelete;

}
