package ${packageName}.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${packageName}.entity.${ClassName};
#if($table.sub)
import ${packageName}.entity .${subClassName};
#end

/**
 * ${functionName}Mapper接口
 *
 * @author ${author}
 * @since  ${datetime}
 */
public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Entity> {


    #if($table.sub)

        /**
         * 批量删除${subTable.functionName}
         * @param ${pkColumn.javaField}s 需要删除的数据主键集合
         * @return 结果
         */
        int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);

        /**
         * 批量新增${subTable.functionName}
         * @param ${subclassName}List ${subTable.functionName}列表
         * @return 结果
         */
        int batch${subClassName}(List<${subClassName}> ${subclassName}List);


    #end
}
