package com.jeesharp.business.modules.finance.profitsharing.vo;

import com.jeesharp.framework.pojo.query.PaginationVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 分账单分页查询条件。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "分账单查询参数")
public class ProfitSharingOrderQueryVO extends PaginationVO {

    @Schema(description = "商城子订单ID")
    private String mallOrderId;

    @Schema(description = "商城子订单编号（关联查询）")
    private String orderNo;

    @Schema(description = "合并支付批次ID（仅 MALL_ORDER 商城合单）")
    private String payBatchId;

    @Schema(description = "合并支付批次编号，仅商城合并支付有效（关联 mall_pay_batch.batch_no）")
    private String batchNo;

    @Schema(description = "分账请求单号")
    private String sharingNo;

    @Schema(description = "微信 transaction_id")
    private String transactionId;

    @Schema(description = "子单商户租户ID")
    private String merchantTenantId;

    @Schema(description = "分账状态")
    private String status;

    @Schema(description = "下次重试时间上限（内部重试任务）")
    private LocalDateTime nextRetryTimeBefore;

    @Schema(description = "最大重试次数上限（内部重试任务）")
    private Integer maxRetryCount;
}
