package com.huigou.topsun.proofing.application.impl;

import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.topsun.proofing.application.ProofingMakeProcessMaterialApplication;
import com.huigou.topsun.proofing.domain.proofingMake.query.ProofingMakeProcessMaterialQueryRequest;
import com.huigou.uasp.bmp.common.application.BaseApplication;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class ProofingMakeProcessMaterialApplicationImpl extends BaseApplication implements ProofingMakeProcessMaterialApplication {


    @Override
    public Map<String, Object> slicedProofingMakeProcessMaterial(ProofingMakeProcessMaterialQueryRequest query) {
        QueryDescriptor queryDescriptor = this.sqlExecutorDao.getQuery(QUERY_XML_FILE_PATH, "slicedProofingMakeProcessMaterial");
        return this.sqlExecutorDao.executeSlicedQuery(queryDescriptor,query);
    }
}
