| | |
| | | import ${packageName}.domain.${ClassName}; |
| | | import ${packageName}.service.I${ClassName}Service; |
| | | 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) |
| | | #end |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") |
| | | @GetMapping("/list") |
| | | #if($table.crud) |
| | | #if($table.crud || $table.sub) |
| | | public TableDataInfo list(${ClassName} ${className}) { |
| | | startPage(); |
| | | List<${ClassName}> list = i${ClassName}Service.queryList(${className}); |
| | |
| | | @Log(title = "${functionName}" , businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ${ClassName} ${className}) { |
| | | AjaxResult result = toAjax(i${ClassName}Service.save(${className}) ? 1 : 0); |
| | | result.put("data",${className}); |
| | | return result; |
| | | return toAjax(i${ClassName}Service.save(${className}) ? 1 : 0); |
| | | } |
| | | |
| | | /** |