refactor(系统设置): 修复更新项目后台日志报错的缺陷

This commit is contained in:
wxg0103 2024-01-31 19:50:54 +08:00 committed by 刘瑞斌
parent 7d336eafc3
commit b492912cc6
2 changed files with 7 additions and 7 deletions

View File

@ -43,10 +43,10 @@ public class OrganizationProjectController {
@PostMapping("/add")
@RequiresPermissions(PermissionConstants.ORGANIZATION_PROJECT_READ_ADD)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#project)", msClass = OrganizationProjectLogService.class)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = OrganizationProjectLogService.class)
@Operation(summary = "系统设置-组织-项目-创建项目")
public ProjectDTO addProject(@RequestBody @Validated({Created.class}) AddProjectRequest project) {
return organizationProjectService.add(project, SessionUtils.getUserId());
public ProjectDTO addProject(@RequestBody @Validated({Created.class}) AddProjectRequest request) {
return organizationProjectService.add(request, SessionUtils.getUserId());
}
@ -69,10 +69,10 @@ public class OrganizationProjectController {
}
@PostMapping("/update")
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#project)", msClass = OrganizationProjectLogService.class)
@Operation(summary = "系统设置-组织-项目-编辑")
@RequiresPermissions(PermissionConstants.ORGANIZATION_PROJECT_READ_UPDATE)
@CheckOwner(resourceId = "#request.id", resourceType = "project")
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request)", msClass = OrganizationProjectLogService.class)
public ProjectDTO updateProject(@RequestBody @Validated({Updated.class}) UpdateProjectRequest request) {
return organizationProjectService.update(request, SessionUtils.getUserId());
}

View File

@ -47,10 +47,10 @@ public class SystemProjectController {
@PostMapping("/add")
@RequiresPermissions(PermissionConstants.SYSTEM_ORGANIZATION_PROJECT_READ_ADD)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#project)", msClass = SystemProjectLogService.class)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = SystemProjectLogService.class)
@Operation(summary = "系统设置-系统-组织与项目-项目-创建项目")
public ProjectDTO addProject(@RequestBody @Validated({Created.class}) AddProjectRequest project) {
return systemProjectService.add(project, SessionUtils.getUserId());
public ProjectDTO addProject(@RequestBody @Validated({Created.class}) AddProjectRequest request) {
return systemProjectService.add(request, SessionUtils.getUserId());
}