|
|
@@ -217,7 +217,7 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
@Override
|
|
|
public AjaxResult updateProjectTask(ProjectTask in) {
|
|
|
ProjectTask use = projectTaskMapper.selectByPrimaryKey(in.getId());
|
|
|
- if (in.getAid().equals(use.getAid())){
|
|
|
+ if (!in.getAid().equals(use.getAid())){
|
|
|
List<ProjectStaffRecord> projectStaffRecords = projectStaffRecordMapper.selectByPidAndAid(in.getId(), use.getAid());
|
|
|
if (projectStaffRecords.size()>0){
|
|
|
throw new ServiceException(String.format("负责人[%s]存在打卡,不允许切换.", use.getAdminName()));
|