代码生成模板支持主子表
This commit is contained in:
@ -17,7 +17,7 @@ import ${packageName}.service.I${ClassName}Service;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
#if($table.crud)
|
||||
#if($table.crud || $table.sub)
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
#elseif($table.tree)
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
@ -46,7 +46,7 @@ public class ${ClassName}Controller extends BaseController
|
||||
return prefix + "/${businessName}";
|
||||
}
|
||||
|
||||
#if($table.crud)
|
||||
#if($table.crud || $table.sub)
|
||||
/**
|
||||
* 查询${functionName}列表
|
||||
*/
|
||||
@ -87,7 +87,7 @@ public class ${ClassName}Controller extends BaseController
|
||||
return util.exportExcel(list, "${businessName}");
|
||||
}
|
||||
|
||||
#if($table.crud)
|
||||
#if($table.crud || $table.sub)
|
||||
/**
|
||||
* 新增${functionName}
|
||||
*/
|
||||
@ -146,7 +146,7 @@ public class ${ClassName}Controller extends BaseController
|
||||
return toAjax(${className}Service.update${ClassName}(${className}));
|
||||
}
|
||||
|
||||
#if($table.crud)
|
||||
#if($table.crud || $table.sub)
|
||||
/**
|
||||
* 删除${functionName}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user