anderx před 2 roky
rodič
revize
e220c6f3a0

+ 14 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ProjectTaskController.java

@@ -210,6 +210,20 @@ public class ProjectTaskController extends BaseController {
         return projectStaffService.deleteStaff(in);
     }
 
+    /**
+     * 项目成员列表
+     * @param in
+     * @return
+     */
+    @GetMapping("/listStaff")
+    @ApiOperation("项目成员列表")
+    public AjaxResult listStaff( @RequestBody ProjectStaff in){
+        if (in.getId()== null){
+            return error("项目成员编号不能为空");
+        }
+        return projectStaffService.listStaff(in);
+    }
+
 
     /**
      * 删除项目

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/project/service/ProjectStaffService.java

@@ -7,4 +7,6 @@ public interface ProjectStaffService {
     AjaxResult addStaff(ProjectStaff in);
 
     AjaxResult deleteStaff(ProjectStaff in);
+
+    AjaxResult listStaff(ProjectStaff in);
 }

+ 7 - 1
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffServiceImpl.java

@@ -43,7 +43,7 @@ public class ProjectStaffServiceImpl implements ProjectStaffService {
         projectStaffMapper.insertSelective(in);
         userMapper.updateUserProjectSum(in.getAid(),0);
         projectTaskMapper.updateStaffName(in.getPid());
-        return AjaxResult.success();
+        return AjaxResult.success(in);
     }
 
     @Override
@@ -60,4 +60,10 @@ public class ProjectStaffServiceImpl implements ProjectStaffService {
         }
         return AjaxResult.error("编号不存在");
     }
+
+    @Override
+    public AjaxResult listStaff(ProjectStaff in) {
+
+        return null;
+    }
 }