config.ServiceImpl.ftl Maven / Gradle / Ivy
package ${package.ServiceImpl};
import org.springframework.stereotype.Service;
<#if dsName?default("")?trim?length gt 0>import ${nameOfDS};
#if>import ${superServiceImplClassPackage};
import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
/**
*
* ${table.comment!} 服务实现类
*
*
* @author ${author}
* @since ${date}
*/
@Service
<#if dsName?default("")?trim?length gt 0>@DS("${dsName}")
#if><#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {
}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {
}
#if>