You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
package ${package.ServiceImpl};
|
|
|
|
import java.io.Serializable;
|
|
import ${package.Entity}.${entity};
|
|
import ${package.Dto}.${dto};
|
|
import ${package.Mapper}.${table.mapperName};
|
|
import ${package.Service}.${table.serviceName};
|
|
import ${superServiceImplClassPackage};
|
|
import com.iteaj.framework.result.*;
|
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
/**
|
|
* <p>
|
|
* $!{table.comment} 服务实现类
|
|
* </p>
|
|
*
|
|
* @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}> implements ${table.serviceName} {
|
|
|
|
/**
|
|
* 获取指定的记录详情
|
|
*/
|
|
public DetailResult<${dto}> detailById(Serializable id) {
|
|
return new DetailResult(getBaseMapper().detailById(id));
|
|
}
|
|
|
|
/**
|
|
* 获取详情分页记录
|
|
*/
|
|
public PageResult<IPage<${dto}>> detailPage(IPage<${dto}> page, ${dto} entity) {
|
|
return new PageResult(getBaseMapper().detailPage(page, entity));
|
|
}
|
|
}
|
|
#end
|