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.QualFilingEquipmentChangeAddCmdExe;
import org.qinan.safetyeval.app.change.executor.command.QualFilingEquipmentChangeDelCmdExe;
import org.qinan.safetyeval.app.change.executor.command.QualFilingEquipmentChangeUpdateCmdExe;
import org.qinan.safetyeval.app.change.executor.query.QualFilingEquipmentChangeListQueryExe;
import org.qinan.safetyeval.app.change.executor.query.QualFilingEquipmentChangePageQueryExe;
import org.qinan.safetyeval.app.change.service.QualFilingEquipmentChangeServiceI;
import org.qinan.safetyeval.client.change.request.QualFilingEquipmentChangeAddCmd;
import org.qinan.safetyeval.client.change.request.QualFilingEquipmentChangePageQry;
import org.qinan.safetyeval.client.change.request.QualFilingEquipmentChangeUpdateCmd;
import org.qinan.safetyeval.client.change.response.QualFilingEquipmentChangeCo;
import org.springframework.stereotype.Service;

/**
 * 备案申请装备-变更
 *
 * @Author: ltq
 * @date 2026-07-02 10:03:59
 */
@Service
@AllArgsConstructor
public class QualFilingEquipmentChangeServiceImpl implements QualFilingEquipmentChangeServiceI {

    private final QualFilingEquipmentChangeListQueryExe qualFilingEquipmentChangeListQueryExe;
    private final QualFilingEquipmentChangeUpdateCmdExe qualFilingEquipmentChangeUpdateCommandExe;
    private final QualFilingEquipmentChangeAddCmdExe qualFilingEquipmentChangeAddCommandExe;
    private final QualFilingEquipmentChangeDelCmdExe qualFilingEquipmentChangeDelCommandExe;
    private final QualFilingEquipmentChangePageQueryExe qualFilingEquipmentChangePageQueryExe;

    @Override
    public PageResponse<QualFilingEquipmentChangeCo> listQualFilingEquipmentChangePage(QualFilingEquipmentChangePageQry qualFilingEquipmentChangePageQry) {
        return qualFilingEquipmentChangePageQueryExe.execute(qualFilingEquipmentChangePageQry);
    }

    @Override
    public QualFilingEquipmentChangeCo getQualFilingEquipmentChangeById(Long id) {
        return qualFilingEquipmentChangeListQueryExe.execute(id);
    }

    @Override
    public boolean saveQualFilingEquipmentChange(QualFilingEquipmentChangeAddCmd qualFilingEquipmentChangeAddCmd) {
        return qualFilingEquipmentChangeAddCommandExe.execute(qualFilingEquipmentChangeAddCmd);
    }

    @Override
    public boolean updateQualFilingEquipmentChange(QualFilingEquipmentChangeUpdateCmd qualFilingEquipmentChangeUpdateCmd) {
        return qualFilingEquipmentChangeUpdateCommandExe.execute(qualFilingEquipmentChangeUpdateCmd);
    }

    @Override
    public boolean deletedQualFilingEquipmentChangeById(Long id) {
        return qualFilingEquipmentChangeDelCommandExe.execute(id);
    }

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

}
