Pre Merge pull request !267 from 稚屿/N/A

This commit is contained in:
稚屿 2022-05-01 12:23:57 +00:00 committed by Gitee
commit e6c16d2254
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -88,6 +88,7 @@ public class ${ClassName}Controller extends BaseController
@PostMapping
public AjaxResult add(@RequestBody ${ClassName} ${className})
{
${className}.setCreateBy(SecurityUtils.getUsername());
return toAjax(${className}Service.insert${ClassName}(${className}));
}
@ -99,6 +100,7 @@ public class ${ClassName}Controller extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody ${ClassName} ${className})
{
${className}.setUpdateBy(SecurityUtils.getUsername());
return toAjax(${className}Service.update${ClassName}(${className}));
}