package cn.cslg.report.service.business.asso;


import cn.cslg.report.common.utils.Response;
import cn.cslg.report.entity.asso.Synery_CC;

import cn.cslg.report.mapper.SyneryCCMapper;
import com.baomidou.mybatisplus.core.conditions.AbstractWrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@SuppressWarnings({"all"})
@Service
@Slf4j
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
public class SyneryCCService extends ServiceImpl<SyneryCCMapper, Synery_CC> {
    /**
     * functio : 协同任务删除时
     */
    @Transactional(rollbackFor = Exception.class)
     public String deleteByTaskId(Integer taskId){
     LambdaQueryWrapper<Synery_CC> lambdaQueryWrapper = new LambdaQueryWrapper<>();
     lambdaQueryWrapper.eq(Synery_CC::getTaskId,taskId);
     remove(lambdaQueryWrapper);
     return Response.success();
 }




}
