All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.mybatis.service.ftl Maven / Gradle / Ivy

package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import java.util.List;
import ${package.Parent}.vo.*;
import ${package.Parent}.dto.*;
import matrix.boot.common.dto.PageDto;

/**
 * ${table.comment!}
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
     * 根据条件查询${table.comment!}列表
     *
     * @param queryVo 查询条件
     * @return 分页数据
     */
    PageDto<${javaName}Dto> list${javaName}ByCondition(${javaName}QueryVo queryVo);

    /**
     * 保存${table.comment!}
     *
     * @param saveVo 保存参数
     */
    void save${javaName}(${javaName}SaveVo saveVo);

    /**
     * ${table.comment!}详情
     *
     * @param field 查询的字段
     * @param id    数据ID
     * @return 详情数据
     */
    ${javaName}Dto detailById(String field, String id);

    /**
     * 根据Ids删除${table.comment!}
     *
     * @param ids 删除的主键ID集合
     */
    <#if enableKeyToString == true>
    void deleteByIds(List ids);
    <#else>
    void deleteByIds(List ids);
    
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy