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

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

package ${entityInfo.serviceImplPackage};

<#list imports as pkg>
import ${pkg};


/**
 * 

* ${entityInfo.tableInfo.remarks!} Service 实现类 *

* * @author ${author!} * @since ${date} */ @${serviceAnnotationName} public class ${entityInfo.serviceImplName}${superExtend}<#if serviceImplConfig.isGeneric()><${entityInfo.name},<#if entityInfo.idFieldInfo??>${entityInfo.idFieldInfo.typeName}<#else>Void><#if serviceConfig.isEnable()> implements ${entityInfo.serviceName} { <#if serviceImplConfig.isInjectDao(generatorConfig)> @${autowiredAnnotationName} private ${serviceImplConfig.injectDaoClassName(generatorConfig,entityInfo)} ${util.firstToLower(serviceImplConfig.injectDaoClassName(generatorConfig,entityInfo))}; protected ${serviceImplConfig.injectDaoClassName(generatorConfig,entityInfo)} getDao() { return ${util.firstToLower(serviceImplConfig.injectDaoClassName(generatorConfig,entityInfo))}; } <#if !serviceImplConfig.isInjectDao(generatorConfig) && serviceImplConfig.isInjectMapper()> @${autowiredAnnotationName} private ${serviceImplConfig.mapperClassName(entityInfo)} ${util.firstToLower(serviceImplConfig.mapperClassName(entityInfo))}; protected ${entityInfo.mapperName} getMapper(){ return this.${util.firstToLower(entityInfo.mapperName)}; } private QueryChain<${entityInfo.name}> queryChain() { return QueryChain.of(${util.firstToLower(serviceImplConfig.mapperClassName(entityInfo))}); } private UpdateChain updateChain() { return UpdateChain.of(${util.firstToLower(serviceImplConfig.mapperClassName(entityInfo))}); } private InsertChain insertChain(){ return InsertChain.of(${util.firstToLower(serviceImplConfig.mapperClassName(entityInfo))}); } private DeleteChain deleteChain(){ return DeleteChain.of(${util.firstToLower(serviceImplConfig.mapperClassName(entityInfo))}); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy