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()> @${autowiredAnnotationName} private ${serviceImplConfig.injectDaoClassName(entityInfo)} ${util.firstToLower(serviceImplConfig.injectDaoClassName(entityInfo))}; protected ${serviceImplConfig.injectDaoClassName(entityInfo)} getDao() { return ${util.firstToLower(serviceImplConfig.injectDaoClassName(entityInfo))}; } <#if !serviceImplConfig.isInjectDao() && 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