|
@@ -1185,14 +1185,23 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
|
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
FlowResult flowResultParam = JSONObject.parseObject(sopSaveParam.getFormProperties(), FlowResult.class);
|
|
|
+
|
|
|
LinkedHashMap<String, FlowTaskResult> setupParamMap = flowResultParam.getSetupMap();
|
|
|
+ FlowTaskResult flowTaskResultNew = null;
|
|
|
for (Map.Entry<String, FlowTaskResult> entry : setupParamMap.entrySet()) {
|
|
|
- if (entry.getValue().getSetup() != 0) {//更新动态表单字段和处理时限
|
|
|
+ if (entry.getValue().getSetup().intValue() != 0) {//更新动态表单字段和处理时限
|
|
|
tbSopInfoService.saveDynamicSop(tfCustomFlow, tfCustomFlowEntity.getCode(),
|
|
|
tfCustomFlowEntity.getFlowId(), entry.getValue());
|
|
|
+ if (entry.getValue().getSetup().intValue() == 1) {
|
|
|
+ flowTaskResultNew = entry.getValue();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ ServiceScopeEnum scopeEnum = tbSopInfoService.findServiceScope(tfCustomFlow.getType(), flowTaskResultNew);
|
|
|
+
|
|
|
FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
|
+ FlowTaskResult flowTaskResultOld = this.getFormProperties(tfCustomFlowEntity, 1);
|
|
|
+ ServiceScopeEnum scopeOldEnum = tbSopInfoService.findServiceScope(tfCustomFlow.getType(), flowTaskResultOld);
|
|
|
LinkedHashMap<String, FlowTaskResult> setupMap = flowResult.getSetupMap();
|
|
|
for (Map.Entry<String, FlowTaskResult> entry : setupMap.entrySet()) {
|
|
|
if (Objects.nonNull(setupParamMap.get(entry.getKey()))) {
|
|
@@ -1269,8 +1278,8 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
tbSopLogService.save(tbSopLog);
|
|
|
}
|
|
|
|
|
|
- ServiceScopeEnum scopeEnum = tbSopInfoService.findServiceScope(tfCustomFlow.getType(), flowTaskResult);
|
|
|
- if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW) {//教务处sop流程待审核人
|
|
|
+ if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW
|
|
|
+ && scopeEnum != scopeOldEnum) {//教务处sop流程待审核人
|
|
|
List<AllocationParam> allocationParams = new ArrayList<>();
|
|
|
Task task = taskService.createTaskQuery().processInstanceId(tfCustomFlowEntity.getFlowId().toString())
|
|
|
.singleResult();
|