plus.serviceImpl.btl Maven / Gradle / Ivy
The newest version!
package ${package.ServiceImpl};
import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.Map;
/**
*
* ${table.comment!} 服务实现类
*
*
* @author ${author}
* @since ${date}
*/
@Service
<% if(kotlin){ %>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {
}
<% }else{ %>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}>{
public IPage selectSimple(IPage pagination, Map params){
pagination.setRecords(baseMapper.selectSimple(pagination,params));
return pagination;
}
public IPage selectMapSimple(IPage pagination, Map params){
pagination.setRecords(baseMapper.selectMapSimple(pagination,params));
return pagination;
}
}
<% } %>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy