|
@@ -231,10 +231,10 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
String[] split = p.getStaffName().split(",");
|
|
String[] split = p.getStaffName().split(",");
|
|
|
List<ProjectStaff> projectStaffs = projectStaffMapper.selectByPid(p.getId());
|
|
List<ProjectStaff> projectStaffs = projectStaffMapper.selectByPid(p.getId());
|
|
|
addStaff( p, split, projectStaffs);
|
|
addStaff( p, split, projectStaffs);
|
|
|
- deleteStaff( p, split, projectStaffs);
|
|
|
|
|
|
|
+ deleteStaff( split, projectStaffs);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private void deleteStaff( ProjectTaskListOut p, String[] split, List<ProjectStaff> projectStaffs) {
|
|
|
|
|
|
|
+ private void deleteStaff( String[] split, List<ProjectStaff> projectStaffs) {
|
|
|
//预设需要删除,如果找到相同名字的就无需删除
|
|
//预设需要删除,如果找到相同名字的就无需删除
|
|
|
for (ProjectStaff ps : projectStaffs) {
|
|
for (ProjectStaff ps : projectStaffs) {
|
|
|
boolean flag = true;
|
|
boolean flag = true;
|