package ${packageName}.service.impl;
import com.zksy.common.utils.DeleteTableUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zksy.system.basicData.domain.${ClassName};
import com.zksy.system.basicData.mapper.${ClassName}Mapper;
import com.zksy.system.basicData.service.${ClassName}Service;

import org.springframework.stereotype.Service;

/**
 * ${functionName}Service业务层处理
 *
 * @author ${author}
 * @date ${datetime}
 */
@Service
public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${ClassName}> implements ${ClassName}Service {
    @Resource
    private ${ClassName}Mapper mapper;

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