|
|
@ -23,6 +23,8 @@ import com.ruoyi.common.utils.poi.ExcelUtil; |
|
|
|
import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
#elseif($table.tree) |
|
|
|
#elseif($table.tree) |
|
|
|
#end |
|
|
|
#end |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* ${functionName}Controller |
|
|
|
* ${functionName}Controller |
|
|
@ -30,8 +32,9 @@ import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
* @author ${author} |
|
|
|
* @author ${author} |
|
|
|
* @date ${datetime} |
|
|
|
* @date ${datetime} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Api(tags = "${functionName}管理") |
|
|
|
@RestController |
|
|
|
@RestController |
|
|
|
@RequestMapping("/${moduleName}/${businessName}") |
|
|
|
@RequestMapping("/${moduleName}/${className}") |
|
|
|
public class ${ClassName}Controller extends BaseController |
|
|
|
public class ${ClassName}Controller extends BaseController |
|
|
|
{ |
|
|
|
{ |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
@ -40,6 +43,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 查询${functionName}列表 |
|
|
|
* 查询${functionName}列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("查询${functionName}列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") |
|
|
|
@GetMapping("/list") |
|
|
|
@GetMapping("/list") |
|
|
|
#if($table.crud || $table.sub) |
|
|
|
#if($table.crud || $table.sub) |
|
|
@ -60,6 +64,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 导出${functionName}列表 |
|
|
|
* 导出${functionName}列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("导出${functionName}列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.EXPORT) |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("/export") |
|
|
|
@PostMapping("/export") |
|
|
@ -73,6 +78,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取${functionName}详细信息 |
|
|
|
* 获取${functionName}详细信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("获取${functionName}详细信息") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") |
|
|
|
@GetMapping(value = "/{${pkColumn.javaField}}") |
|
|
|
@GetMapping(value = "/{${pkColumn.javaField}}") |
|
|
|
public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) |
|
|
|
public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) |
|
|
@ -83,6 +89,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 新增${functionName} |
|
|
|
* 新增${functionName} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("新增${functionName}") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
@PostMapping |
|
|
@ -94,6 +101,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 修改${functionName} |
|
|
|
* 修改${functionName} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("修改${functionName}") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.UPDATE) |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
@PutMapping |
|
|
@ -105,6 +113,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 删除${functionName} |
|
|
|
* 删除${functionName} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("删除${functionName}") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") |
|
|
|
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.DELETE) |
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{${pkColumn.javaField}s}") |
|
|
|
@DeleteMapping("/{${pkColumn.javaField}s}") |
|
|
|