package org.qinan.safetyeval.app.change.service.impl;

import com.alibaba.cola.dto.PageResponse;
import lombok.AllArgsConstructor;
import org.qinan.safetyeval.app.change.executor.command.QualFilingCommitmentChangeAddCmdExe;
import org.qinan.safetyeval.app.change.executor.command.QualFilingCommitmentChangeDelCmdExe;
import org.qinan.safetyeval.app.change.executor.command.QualFilingCommitmentChangeUpdateCmdExe;
import org.qinan.safetyeval.app.change.executor.query.QualFilingCommitmentChangeListQueryExe;
import org.qinan.safetyeval.app.change.executor.query.QualFilingCommitmentChangePageQueryExe;
import org.qinan.safetyeval.app.change.service.QualFilingCommitmentChangeServiceI;
import org.qinan.safetyeval.client.change.request.QualFilingCommitmentChangeAddCmd;
import org.qinan.safetyeval.client.change.request.QualFilingCommitmentChangePageQry;
import org.qinan.safetyeval.client.change.request.QualFilingCommitmentChangeUpdateCmd;
import org.qinan.safetyeval.client.change.response.QualFilingCommitmentChangeCo;
import org.springframework.stereotype.Service;

/**
 * 法定代人承诺书-变更
 *
 * @Author: ltq
 * @date 2026-07-02 09:38:30
 */
@Service
@AllArgsConstructor
public class QualFilingCommitmentChangeServiceImpl implements QualFilingCommitmentChangeServiceI {

    private final QualFilingCommitmentChangeListQueryExe qualFilingCommitmentChangeListQueryExe;
    private final QualFilingCommitmentChangeUpdateCmdExe qualFilingCommitmentChangeUpdateCommandExe;
    private final QualFilingCommitmentChangeAddCmdExe qualFilingCommitmentChangeAddCommandExe;
    private final QualFilingCommitmentChangeDelCmdExe qualFilingCommitmentChangeDelCommandExe;
    private final QualFilingCommitmentChangePageQueryExe qualFilingCommitmentChangePageQueryExe;

    @Override
    public PageResponse<QualFilingCommitmentChangeCo> listQualFilingCommitmentChangePage(QualFilingCommitmentChangePageQry qualFilingCommitmentChangePageQry) {
        return qualFilingCommitmentChangePageQueryExe.execute(qualFilingCommitmentChangePageQry);
    }

    @Override
    public QualFilingCommitmentChangeCo getQualFilingCommitmentChangeById(Long id) {
        return qualFilingCommitmentChangeListQueryExe.execute(id);
    }

    @Override
    public boolean saveQualFilingCommitmentChange(QualFilingCommitmentChangeAddCmd qualFilingCommitmentChangeAddCmd) {
        return qualFilingCommitmentChangeAddCommandExe.execute(qualFilingCommitmentChangeAddCmd);
    }

    @Override
    public boolean updateQualFilingCommitmentChange(QualFilingCommitmentChangeUpdateCmd qualFilingCommitmentChangeUpdateCmd) {
        return qualFilingCommitmentChangeUpdateCommandExe.execute(qualFilingCommitmentChangeUpdateCmd);
    }

    @Override
    public boolean deletedQualFilingCommitmentChangeById(Long id) {
        return qualFilingCommitmentChangeDelCommandExe.execute(id);
    }

    @Override
    public boolean deletedQualFilingCommitmentChangeByIds(Long[] ids) {
        return qualFilingCommitmentChangeDelCommandExe.execute(ids);
    }

}
