|
|
@@ -24,7 +24,10 @@ public class ProjectStaffServiceImpl implements ProjectStaffService {
|
|
|
@Override
|
|
|
public AjaxResult deleteStaff(ProjectStaff in) {
|
|
|
int i = projectStaffMapper.deleteByPrimaryKey(in.getId());
|
|
|
- if (i>0)return AjaxResult.success();
|
|
|
+ if (i>0){
|
|
|
+ projectTaskMapper.updateStaffName(in.getPid());
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
return AjaxResult.error("编号不存在");
|
|
|
}
|
|
|
}
|