...
|
...
|
@@ -166,8 +166,8 @@ public class ReleaseServiceImpl implements ReleaseService { |
|
|
if(handleType == HandleType.PASS){//通过测试
|
|
|
releaseWorkJob.setStatus(WorkStatus.TEST_PASS);
|
|
|
releaseWorkJobMapper.updateStatus(releaseWorkJob);
|
|
|
PendingJob newPendingJob = new PendingJob(WorkType.RELEASE_PROJECT, releaseWorkJob.getId(), releaseWorkJob.getTitle(), null, HandlerRole.OPERATOR, WorkStatus.TEST_PASS);
|
|
|
workSystemSupport.addPendingByRole(newPendingJob,true);
|
|
|
PendingJob newPendingJob = new PendingJob(WorkType.RELEASE_PROJECT, releaseWorkJob.getId(), releaseWorkJob.getTitle(), null, HandlerRole.LEADER, WorkStatus.TEST_PASS);
|
|
|
workSystemSupport.addPendingByRole(newPendingJob,false);
|
|
|
}else{//未通过测试
|
|
|
releaseWorkJob.setStatus(WorkStatus.CREATED);//置为初始状态
|
|
|
releaseWorkJobMapper.updateStatus(releaseWorkJob);
|
...
|
...
|
@@ -175,7 +175,7 @@ public class ReleaseServiceImpl implements ReleaseService { |
|
|
PendingJob newPendingJob = new PendingJob(WorkType.RELEASE_PROJECT, releaseWorkJob.getId(), releaseWorkJob.getTitle(), releaseWorkJob.getDevelop(), HandlerRole.DEVELOP, WorkStatus.CREATED);
|
|
|
workSystemSupport.addPending(newPendingJob,false);
|
|
|
}
|
|
|
}else if(currentStatus == WorkStatus.TEST_PASS) {//测试通过的工单
|
|
|
}else if(currentStatus == WorkStatus.LEADER_PASS) {//领导通过的工单
|
|
|
releaseWorkJob.setOperator(handledJob.getHandler());
|
|
|
if(handleType == HandleType.PASS){//发布成功
|
|
|
releaseWorkJob.setStatus(WorkStatus.EXE_SUCCESS);
|
...
|
...
|
@@ -185,6 +185,19 @@ public class ReleaseServiceImpl implements ReleaseService { |
|
|
workSystemSupport.workend(releaseWorkJob.getId(),WorkType.RELEASE_PROJECT,releaseWorkJob.getTitle(),WorkStatus.getCstatus(WorkStatus.EXE_FAILE));
|
|
|
}
|
|
|
releaseWorkJobMapper.updateResult(releaseWorkJob);//填写工单结果
|
|
|
}else if (currentStatus == WorkStatus.TEST_PASS){//测试通过
|
|
|
if(handleType == HandleType.PASS){//领导通过
|
|
|
releaseWorkJob.setStatus(WorkStatus.LEADER_PASS);
|
|
|
releaseWorkJobMapper.updateStatus(releaseWorkJob);
|
|
|
PendingJob newPendingJob = new PendingJob(WorkType.RELEASE_PROJECT, releaseWorkJob.getId(), releaseWorkJob.getTitle(), null, HandlerRole.OPERATOR, WorkStatus.LEADER_PASS);
|
|
|
workSystemSupport.addPendingByRole(newPendingJob,false);
|
|
|
}else{//领导未通过
|
|
|
releaseWorkJob.setStatus(WorkStatus.CREATED);//置为初始状态
|
|
|
releaseWorkJobMapper.updateStatus(releaseWorkJob);
|
|
|
//插入用户待处理工单表
|
|
|
PendingJob newPendingJob = new PendingJob(WorkType.RELEASE_PROJECT, releaseWorkJob.getId(), releaseWorkJob.getTitle(), releaseWorkJob.getDevelop(), HandlerRole.DEVELOP, WorkStatus.CREATED);
|
|
|
workSystemSupport.addPending(newPendingJob,false);
|
|
|
}
|
|
|
}
|
|
|
return 1;
|
|
|
}
|
...
|
...
|
|