Browse Source

bug[代码生成器] 树代码生成器模板,实体写死了

pull/1482/head
zhangdaiscott 4 years ago
parent
commit
bb5fe95d30
  1. 4
      jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/controller/${entityName}Controller.javai

4
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/controller/${entityName}Controller.javai

@ -87,7 +87,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
/**
* 获取子数据
* @param testTree
* @param ${entityName}
* @param req
* @return
*/
@ -97,7 +97,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
public Result<?> queryPageList(${entityName} ${entityName?uncap_first},HttpServletRequest req) {
QueryWrapper<${entityName}> queryWrapper = QueryGenerator.initQueryWrapper(${entityName?uncap_first}, req.getParameterMap());
List<${entityName}> list = ${entityName?uncap_first}Service.list(queryWrapper);
IPage<LvTestTree> pageList = new Page<>(1, 10, list.size());
IPage<${entityName}> pageList = new Page<>(1, 10, list.size());
pageList.setRecords(list);
return Result.ok(pageList);
}

Loading…
Cancel
Save