Sfoglia il codice sorgente

组织机构用户新增修改

liangpeile 1 anno fa
parent
commit
d2e4eb5825

+ 2 - 1
crmeb-admin/src/main/java/com/zbkj/admin/controller/platform/NewPlatformApi.java

@@ -576,7 +576,7 @@ public class NewPlatformApi {
     @RequestMapping(value = "/userSave", method = RequestMethod.POST)
 
     public CommonResult<String> userSave(@RequestParam(value = "organizationId") String organizationId,
-                                         @RequestParam(value = "id") String departmentId,
+                                         @RequestParam(value = "departmentId") String departmentId,
                                          @RequestParam(value = "name") String name,
                                          @RequestParam(value = "uid" ,required = false) String uid,
                                          @RequestParam(value = "phone") String phone
@@ -593,6 +593,7 @@ public class NewPlatformApi {
         request.setUpdateBy(systemAdmin.getRealName());
         request.setDepartmentId(departmentId);
         request.setOrganizationId(organizationId);
+        organizationDepartmentUserService.save(request);
         return CommonResult.success("操作成功");
     }