|
@@ -165,7 +165,6 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
p.setId(projectTask.getId());
|
|
p.setId(projectTask.getId());
|
|
|
if(StringUtils.isNotBlank(p.getStaffName())) {
|
|
if(StringUtils.isNotBlank(p.getStaffName())) {
|
|
|
addStaffAndDelete( p);
|
|
addStaffAndDelete( p);
|
|
|
- projectTaskMapper.updateStaffName(p.getId());
|
|
|
|
|
}
|
|
}
|
|
|
if (p.getAdminName()!=null&&!projectTask.getAdminName().equals(p.getAdminName())){
|
|
if (p.getAdminName()!=null&&!projectTask.getAdminName().equals(p.getAdminName())){
|
|
|
SysUser sysUser = userMapper.selectByNikeName(p.getAdminName(),company);
|
|
SysUser sysUser = userMapper.selectByNikeName(p.getAdminName(),company);
|
|
@@ -267,6 +266,8 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
List<ProjectStaff> projectStaffs = projectStaffMapper.selectByPid(p.getId());
|
|
List<ProjectStaff> projectStaffs = projectStaffMapper.selectByPid(p.getId());
|
|
|
deleteStaff( split, projectStaffs);
|
|
deleteStaff( split, projectStaffs);
|
|
|
addStaff( p, split, projectStaffs);
|
|
addStaff( p, split, projectStaffs);
|
|
|
|
|
+ //再从新获取统计名字
|
|
|
|
|
+ p.setStaffName(projectTaskMapper.updateStaffName(p.getId()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void deleteStaff( String[] split, List<ProjectStaff> projectStaffs) {
|
|
private void deleteStaff( String[] split, List<ProjectStaff> projectStaffs) {
|