ScheduleRule1FlatServiceImpl.java 1.35 KB
package com.bsth.service.schedule.impl;

import com.bsth.entity.schedule.rule.ScheduleRule1Flat;
import com.bsth.service.schedule.ScheduleRule1FlatService;
import com.bsth.service.schedule.exception.ScheduleException;
import com.bsth.service.schedule.utils.DataToolsFile;
import com.bsth.service.schedule.utils.DataToolsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.Map;

/**
 * Created by xu on 16/7/4.
 */
@Service
public class ScheduleRule1FlatServiceImpl extends BServiceImpl<ScheduleRule1Flat, Long> implements ScheduleRule1FlatService {
    @Autowired
    @Qualifier(value = "scheduleRule_dataTool")
    private DataToolsService dataToolsService;

    @Override
    public DataToolsFile uploadFile(String filename, byte[] filedata) throws ScheduleException {
        return dataToolsService.uploadFile(filename, filedata);
    }

    @Override
    public void importData(File file, Map<String, Object> params) throws ScheduleException {
        dataToolsService.importData(file, params);
    }

    @Override
    public DataToolsFile exportData(Map<String, Object> params) throws ScheduleException {
        return dataToolsService.exportData(params);
    }
}