模板调整
This commit is contained in:
@@ -53,6 +53,7 @@ public class ${table.controllerName} {
|
||||
@GetMapping(value = "/list")
|
||||
public CommonResult.Pagination<${table.entityName}> list(Page<${table.entityName}> page) {
|
||||
CommonResult.Pagination<${table.entityName}> pagination = CommonResult.Pagination.init();
|
||||
page.transferOrderField(${table.entityName}.class);
|
||||
${serviceInstanceName}.page(page);
|
||||
return pagination.ofPage(page).message("查询成功");
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ import lombok.experimental.Accessors;
|
||||
@ApiModel(value = "${entity}对象", description = "${table.comment!''}")
|
||||
<% } %>
|
||||
<% if(isNotEmpty(superEntityClass)){ %>
|
||||
public class ${entity} extends ${superEntityClass}<% if(activeRecord){ %><${entity}><%}%>{
|
||||
public class ${entity} extends ${superEntityClass}<% if(activeRecord){ %><${entity}><%}%> {
|
||||
<% }else if(activeRecord){ %>
|
||||
public class ${entity} extends Model<${entity}> {
|
||||
<% }else if(entitySerialVersionUID){ %>
|
||||
|
||||
Reference in New Issue
Block a user