package net.northking.cctp.executePlan.api.service;

import net.northking.cctp.executePlan.db.entity.MqSynchronizeTask;
import net.northking.cctp.executePlan.db.service.MqSynchronizeTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MqSynchronizeTaskApiServiceImpl implements MqSynchronizeTaskApiService{
    @Autowired
    private MqSynchronizeTaskService mqSynchronizeTaskService;
    @Override
    public List<MqSynchronizeTask> findByTypes(List<Integer> singletonList) {
        return mqSynchronizeTaskService.findByTypes(singletonList);
    }

    @Override
    public Integer deleteBatch(List<Object> ids) {
        return this.mqSynchronizeTaskService.deleteByPrimaryKeys(ids);
    }

}
