package com.cool.store.request.close.refund;

import cn.hutool.core.bean.BeanUtil;
import com.cool.store.common.PageBasicInfo;
import com.cool.store.request.xgj.XgjPartnerQueryRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 闭店退款供应商查询Request
 * </p>
 *
 * @author wangff
 * @since 2025/12/11
 */
@Data
public class CloseStorePartnerQueryRequest extends PageBasicInfo {
    @ApiModelProperty("查询开始（创建/更新）时间戳（包含、秒级）")
    private Long startTime;

    @ApiModelProperty("查询结束时间戳")
    private Long endTime;

    @ApiModelProperty("往来单位编码")
    private List<String> bizCodes;

    @ApiModelProperty("分类的业务编码")
    private String parentBizCode;

    @ApiModelProperty("往来单位编码/名字")
    private String keyword;

    public XgjPartnerQueryRequest convertXgj() {
        XgjPartnerQueryRequest request = BeanUtil.toBean(this, XgjPartnerQueryRequest.class);
        request.setPageNo(this.getPageNum());
        return request;
    }
}
