|
@@ -381,7 +381,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
*/
|
|
*/
|
|
public List<String> getNextApproveUserIds(TFCustomTypeEnum type, FlowTaskResult flowTaskResult, TBSopInfoDetail tbSopInfoDetail) {
|
|
public List<String> getNextApproveUserIds(TFCustomTypeEnum type, FlowTaskResult flowTaskResult, TBSopInfoDetail tbSopInfoDetail) {
|
|
List<String> approveUserIds = null;
|
|
List<String> approveUserIds = null;
|
|
- if (type == TFCustomTypeEnum.OFFICE_SOP_FLOW) {//教务处sop流程待审核人
|
|
|
|
|
|
+ if (type == TFCustomTypeEnum.OFFICE_SOP_FLOW) {
|
|
if (flowTaskResult.getSetup().intValue() == 1) {
|
|
if (flowTaskResult.getSetup().intValue() == 1) {
|
|
approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getRegionUserId()));
|
|
approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getRegionUserId()));
|
|
} else if (flowTaskResult.getSetup().intValue() == 2 || flowTaskResult.getSetup().intValue() == 4) {
|
|
} else if (flowTaskResult.getSetup().intValue() == 2 || flowTaskResult.getSetup().intValue() == 4) {
|
|
@@ -390,7 +390,13 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
}
|
|
}
|
|
} else if (type == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {//研究生sop流程待审核人
|
|
} else if (type == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {//研究生sop流程待审核人
|
|
-
|
|
|
|
|
|
+ if (flowTaskResult.getSetup().intValue() == 1) {
|
|
|
|
+ approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getRegionUserId()));
|
|
|
|
+ } else if (flowTaskResult.getSetup().intValue() == 2 || flowTaskResult.getSetup().intValue() == 5) {
|
|
|
|
+ approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getLeadId()));
|
|
|
|
+ } else {
|
|
|
|
+ approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return approveUserIds;
|
|
return approveUserIds;
|
|
}
|
|
}
|
|
@@ -547,7 +553,37 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
execField = SystemConstant.SERVICE_FINISH_PLAN_DATE;
|
|
execField = SystemConstant.SERVICE_FINISH_PLAN_DATE;
|
|
}
|
|
}
|
|
} else if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {//研究生sop
|
|
} else if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {//研究生sop
|
|
-
|
|
|
|
|
|
+ if (tfFlowApprove.getSetup().intValue() == 2) {//项目关键信息
|
|
|
|
+ FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 1);
|
|
|
|
+ processLimitedTime = this.getProcessLimitedTime(flowTaskResult, SystemConstant.PROJECT_KEY_INFO_DATE);
|
|
|
|
+ execField = SystemConstant.PROJECT_KEY_INFO_DATE;
|
|
|
|
+ } else if (tfFlowApprove.getSetup().intValue() == 3 || tfFlowApprove.getSetup().intValue() == 4) {//大区经理内审或工程师内审
|
|
|
|
+ processLimitedTime = tfFlowApprove.getUpdateTime();
|
|
|
|
+ } else if (tfFlowApprove.getSetup().intValue() == 5) {//环境部署时间
|
|
|
|
+ FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 2);
|
|
|
|
+ processLimitedTime = this.getProcessLimitedTime(flowTaskResult, SystemConstant.ENV_DEPLOYMENT_TIME);
|
|
|
|
+ execField = SystemConstant.ENV_DEPLOYMENT_TIME;
|
|
|
|
+ } else if (tfFlowApprove.getSetup().intValue() == 7) {//扫描准备
|
|
|
|
+ FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 2);
|
|
|
|
+ processLimitedTime = this.getProcessLimitedTime(flowTaskResult, SystemConstant.SCAN_START_TIME);
|
|
|
|
+ execField = SystemConstant.SCAN_START_TIME;
|
|
|
|
+ } else if (tfFlowApprove.getSetup().intValue() == 8) {//校验收尾
|
|
|
|
+ FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 2);
|
|
|
|
+ processLimitedTime = this.getProcessLimitedTime(flowTaskResult, SystemConstant.SCAN_END_TIME);
|
|
|
|
+ execField = SystemConstant.SCAN_END_TIME;
|
|
|
|
+ } else if (tfFlowApprove.getSetup().intValue() == 9) {//评卷准备
|
|
|
|
+ FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 2);
|
|
|
|
+ processLimitedTime = this.getProcessLimitedTime(flowTaskResult, SystemConstant.MARK_START_TIME);
|
|
|
|
+ execField = SystemConstant.MARK_START_TIME;
|
|
|
|
+ } else if (tfFlowApprove.getSetup().intValue() == 10) {//成绩复核
|
|
|
|
+ FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 2);
|
|
|
|
+ processLimitedTime = this.getProcessLimitedTime(flowTaskResult, SystemConstant.MARK_END_TIME);
|
|
|
|
+ execField = SystemConstant.MARK_END_TIME;
|
|
|
|
+ } else if (tfFlowApprove.getSetup().intValue() == 12) {//设备入库登记
|
|
|
|
+ FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 1);
|
|
|
|
+ processLimitedTime = this.getProcessLimitedTime(flowTaskResult, SystemConstant.SERVICE_FINISH_PLAN_DATE);
|
|
|
|
+ execField = SystemConstant.SERVICE_FINISH_PLAN_DATE;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
List<TSJobRemind> tsJobRemindList = new ArrayList<>();
|
|
List<TSJobRemind> tsJobRemindList = new ArrayList<>();
|
|
if (Objects.nonNull(task.getAssignee())) {
|
|
if (Objects.nonNull(task.getAssignee())) {
|