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

import com.alibaba.cola.dto.PageResponse;
import lombok.AllArgsConstructor;
import org.qinan.safetyeval.client.change.request.QualFilingMaterialChangePageQry;
import org.qinan.safetyeval.client.change.response.QualFilingMaterialChangeCo;
import org.qinan.safetyeval.infrastructure.persistence.queryservice.QualFilingMaterialChangeQueryService;
import org.springframework.stereotype.Component;

/**
 * 备案申请材料-变更分页查询执行器
 *
 * @author ltq
 * @date 2026-07-02 10:04:07
 */
@Component
@AllArgsConstructor
public class QualFilingMaterialChangePageQueryExe {

    private final QualFilingMaterialChangeQueryService qualFilingMaterialChangeQueryService;

    /**
     * 分页查找备案申请材料-变更
     *
     * @param qualFilingMaterialChangePageQry
     * @return
     */
    public PageResponse<QualFilingMaterialChangeCo> execute(QualFilingMaterialChangePageQry qualFilingMaterialChangePageQry) {
        return qualFilingMaterialChangeQueryService.listQualFilingMaterialChangePage(qualFilingMaterialChangePageQry);
    }

}
