package com.dxhy.core.job.thread;

import com.dxhy.common.utils.SpringContextUtils;
import com.dxhy.core.job.service.ExportInterfaceService;

/**
 * @author user
 */
@SuppressWarnings("FieldCanBeLocal")
public class ExportCustomsHandle extends Thread {

    private final String taxno;
    private final String dbName;
    private final String aceId;
    private final String aceKey;
    private final String company;
    private final String taxName;

    private ExportInterfaceService exportInterfaceService;

    public ExportCustomsHandle(String taxno, String dbName, String aceId, String aceKey, String company,
        String taxName) {
        this.taxno = taxno;
        this.dbName = dbName;
        this.aceId = aceId;
        this.aceKey = aceKey;
        this.company = company;
        this.taxName = taxName;
    }

    @Override
    public void run() {
        exportInterfaceService = (ExportInterfaceService)SpringContextUtils.getBean("exportInterfaceService");
        exportInterfaceService.getExportCustoms(taxno, dbName, aceId, aceKey, company, taxName);
    }
}
