miaogithub.yt_mybatis.2.1.source-code.ServiceImpl.vm Maven / Gradle / Ivy
package ${modulePackage}.service.impl;
import com.github.yt.mybatis.service.impl.ServiceSupport;
import ${modulePackage}.dao.${replaceSuffixClassName}Mapper;
import ${modulePackage}.domain.${className};
import ${modulePackage}.service.${replaceSuffixClassName}Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("${replaceSuffixLowerName}Service")
public class ${replaceSuffixClassName}ServiceImpl extends ServiceSupport<${className}, ${replaceSuffixClassName}Mapper> implements ${replaceSuffixClassName}Service {
@Autowired
private ${replaceSuffixClassName}Mapper ${replaceSuffixLowerName}Mapper;
@Override
public ${replaceSuffixClassName}Mapper getMapper() {
return ${replaceSuffixLowerName}Mapper;
}
}