|
@@ -567,17 +567,17 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
tbSopInfoService.updateFlowInfo(sopAllocationParam.getAllocationParams(), tfCustomFlow, tfCustomFlowEntity,
|
|
|
tfFlowApprove, tbCrmDetail);
|
|
|
tbUserArchivesAllocationService.editCrmAllocation(new UserArchivesAllocationParam(sopAllocationParam));
|
|
|
-// FlowResult flowResult = JSONObject.parseObject(tfCustomFlow.getFlowProcessVar(), FlowResult.class);
|
|
|
-// FlowResult flowResultEntity = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
|
-// LinkedHashMap<String, FlowTaskResult> setupMap = flowResult.getSetupMap();
|
|
|
-// LinkedHashMap<String, FlowTaskResult> setupEntityMap = flowResultEntity.getSetupMap();
|
|
|
-// FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, tfFlowApprove.getSetup());
|
|
|
-// FlowTaskResult currFlowTaskResult = GsonUtil.fromJson(
|
|
|
-// GsonUtil.toJson(setupMap.get(flowTaskResult.getTaskKey())), FlowTaskResult.class);
|
|
|
-// setupEntityMap.put(flowTaskResult.getTaskKey(), currFlowTaskResult);
|
|
|
-// flowResultEntity.setSetupMap(setupEntityMap);
|
|
|
-// tfCustomFlowEntity.setFlowProcessVar(JacksonUtil.parseJson(flowResultEntity));
|
|
|
-// tfCustomFlowEntityService.updateById(tfCustomFlowEntity);
|
|
|
+ // FlowResult flowResult = JSONObject.parseObject(tfCustomFlow.getFlowProcessVar(), FlowResult.class);
|
|
|
+ // FlowResult flowResultEntity = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
|
+ // LinkedHashMap<String, FlowTaskResult> setupMap = flowResult.getSetupMap();
|
|
|
+ // LinkedHashMap<String, FlowTaskResult> setupEntityMap = flowResultEntity.getSetupMap();
|
|
|
+ // FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, tfFlowApprove.getSetup());
|
|
|
+ // FlowTaskResult currFlowTaskResult = GsonUtil.fromJson(
|
|
|
+ // GsonUtil.toJson(setupMap.get(flowTaskResult.getTaskKey())), FlowTaskResult.class);
|
|
|
+ // setupEntityMap.put(flowTaskResult.getTaskKey(), currFlowTaskResult);
|
|
|
+ // flowResultEntity.setSetupMap(setupEntityMap);
|
|
|
+ // tfCustomFlowEntity.setFlowProcessVar(JacksonUtil.parseJson(flowResultEntity));
|
|
|
+ // tfCustomFlowEntityService.updateById(tfCustomFlowEntity);
|
|
|
tbSopInfoService.sopProxySystemApprove(tfCustomFlowEntity.getFlowId(), tfCustomFlowEntity.getCode());
|
|
|
return true;
|
|
|
}
|
|
@@ -948,7 +948,8 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
new FlowApproveParam(Long.parseLong(taskNew.getId()), FlowApprovePassEnum.PASS,
|
|
|
this.getNextApproveUserIds(tfCustomFlow.getType(), nextFlowTaskResult,
|
|
|
nextFlowTaskResult, crmProjectResult, crmDetailId), crmNo,
|
|
|
- SystemConstant.SYSTEM_AUTO_APPROVE, JacksonUtil.parseJson(nextFlowTaskResult)));
|
|
|
+ SystemConstant.SYSTEM_AUTO_APPROVE, JacksonUtil.parseJson(nextFlowTaskResult),
|
|
|
+ Collections.singletonMap(SystemConstant.APPROVE_AUTO, SystemConstant.APPROVE_AUTO)));
|
|
|
}
|
|
|
}
|
|
|
}
|