| | |
| | | public AjaxResult<${ClassName}Vo> export(${ClassName}QueryBo bo) { |
| | | List<${ClassName}Vo> list = i${ClassName}Service.queryList(bo); |
| | | ExcelUtil<${ClassName}Vo> util = new ExcelUtil<${ClassName}Vo>(${ClassName}Vo.class); |
| | | return util.exportExcel(list, "${businessName}" ); |
| | | return util.exportExcel(list, "${businessName}数据" ); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperation("新增${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @PostMapping() |
| | | public AjaxResult<Void> add(@RequestBody ${ClassName}AddBo bo) { |
| | | return toAjax(i${ClassName}Service.insertByAddBo(bo) ? 1 : 0); |
| | | } |
| | |
| | | @ApiOperation("修改${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/edit") |
| | | @PutMapping() |
| | | public AjaxResult<Void> edit(@RequestBody ${ClassName}EditBo bo) { |
| | | return toAjax(i${ClassName}Service.updateByEditBo(bo) ? 1 : 0); |
| | | } |