package com.zksy.system.basicData.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zksy.common.core.domain.AjaxResult;
import com.zksy.common.utils.DeleteTableUtils;
import com.zksy.system.basicData.domain.CrmLoanLedger;
import com.zksy.system.basicData.domain.CrmNewEnterpriseRecognitionDetails;
import com.zksy.system.basicData.mapper.CrmLoanLedgerMapper;
import com.zksy.system.basicData.mapper.CrmNewEnterpriseRecognitionDetailsMapper;
import com.zksy.system.basicData.service.CrmNewEnterpriseRecognitionDetailsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * “专精特新”小巨人认定情况明细Service业务层处理
 * 
 * @author sy
 * @date 2024-05-06
 */
@Service
public class CrmNewEnterpriseRecognitionDetailsServiceImpl extends ServiceImpl<CrmNewEnterpriseRecognitionDetailsMapper, CrmNewEnterpriseRecognitionDetails> implements CrmNewEnterpriseRecognitionDetailsService {
    @Resource
    private CrmNewEnterpriseRecognitionDetailsMapper mapper;

    @Override
    @Transactional
    public AjaxResult deleteAll() {
        DeleteTableUtils<CrmNewEnterpriseRecognitionDetails> utils = new DeleteTableUtils<>();
        utils.del(CrmNewEnterpriseRecognitionDetails::getId,mapper);
        return AjaxResult.success("全部删除成功");
    }
}
