package org.qinan.safetyeval.app.change.executor.query;

import com.alibaba.cola.dto.PageResponse;
import lombok.AllArgsConstructor;
import org.qinan.safetyeval.client.change.request.QualFilingCommitmentChangePageQry;
import org.qinan.safetyeval.client.change.response.QualFilingCommitmentChangeCo;
import org.qinan.safetyeval.infrastructure.persistence.queryservice.QualFilingCommitmentChangeQueryService;
import org.springframework.stereotype.Component;

/**
 * 法定代人承诺书-变更分页查询执行器
 *
 * @author ltq
 * @date 2026-07-02 09:38:30
 */
@Component
@AllArgsConstructor
public class QualFilingCommitmentChangePageQueryExe {

    private final QualFilingCommitmentChangeQueryService qualFilingCommitmentChangeQueryService;

    /**
     * 分页查找法定代人承诺书-变更
     *
     * @param qualFilingCommitmentChangePageQry
     * @return
     */
    public PageResponse<QualFilingCommitmentChangeCo> execute(QualFilingCommitmentChangePageQry qualFilingCommitmentChangePageQry) {
        return qualFilingCommitmentChangeQueryService.listQualFilingCommitmentChangePage(qualFilingCommitmentChangePageQry);
    }

}
