|
@@ -740,5 +740,16 @@ public class NewPlatformApi {
|
|
|
return CommonResult.success("操作成功");
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "企业账号编辑")
|
|
|
+ @RequestMapping(value = "/enterpriseEdit", method = RequestMethod.POST)
|
|
|
+ public CommonResult<UserEnterprise> organizationEdit(@RequestBody @Validated UserEnterprise request) {
|
|
|
+ String department = request.getDepartment();
|
|
|
+ OrganizationDepartment organizationDepartment = organizationDepartmentService.getById(department);
|
|
|
+ String name = organizationDepartment.getName();
|
|
|
+ request.setDepartment(name);
|
|
|
+ userEnterpriseService.updateById(request);
|
|
|
+ return CommonResult.success("操作成功");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|