|
|
@ -161,7 +161,6 @@ public class AsyncFactory { |
|
|
|
TbsBudgetChangeOperationServiceImpl applyOperationService = SpringUtils.getBean(TbsBudgetChangeOperationServiceImpl.class); |
|
|
|
|
|
|
|
String summeryResult = applyOperationService.checkAffairSummery(budgetId); |
|
|
|
if(summeryResult.equals(SeeYonOperationService.SummeryState_Success)){ |
|
|
|
DataAffairCommitService commitService = SpringUtils.getBean(DataAffairCommitService.class); |
|
|
|
// 获取最后一条审批判断结果:TbsAffairCommitBo.state 0-否定,1-同意,2-退回
|
|
|
|
Integer state = commitService.getState(applyOperationService.getTemplateCode(),budgetId+""); |
|
|
@ -171,12 +170,10 @@ public class AsyncFactory { |
|
|
|
if (state==null||state==1){ |
|
|
|
applyOperationService.doFinished(doParam); |
|
|
|
}else if (state==2){ |
|
|
|
applyOperationService.doCommitBacked(budgetId); |
|
|
|
applyOperationService.doBacked(doParam); |
|
|
|
}else if (state==0){ |
|
|
|
applyOperationService.doRefuse(doParam); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
log.debug("--------------------------SubmitBudgetApply CallbackTimer summeryResult:{} ------------------------------",summeryResult); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
@ -201,7 +198,6 @@ public class AsyncFactory { |
|
|
|
TbsBudgetBatchOperationServiceImpl operationService = SpringUtils.getBean(TbsBudgetBatchOperationServiceImpl.class); |
|
|
|
|
|
|
|
String summeryResult = operationService.checkAffairSummery(batchId); |
|
|
|
if(summeryResult.equals(SeeYonOperationService.SummeryState_Success)){ |
|
|
|
DataAffairCommitService commitService = SpringUtils.getBean(DataAffairCommitService.class); |
|
|
|
// 获取最后一条审批判断结果:TbsAffairCommitBo.state 0-否定,1-同意,2-退回
|
|
|
|
Integer state = commitService.getState(operationService.getTemplateCode(),batchId+""); |
|
|
@ -211,12 +207,10 @@ public class AsyncFactory { |
|
|
|
if (state==null||state==1){ |
|
|
|
operationService.doFinished(doParam); |
|
|
|
}else if (state==2){ |
|
|
|
operationService.doCommitBacked(batchId); |
|
|
|
operationService.doBacked(doParam); |
|
|
|
}else if (state==0){ |
|
|
|
operationService.doRefuse(doParam); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
log.debug("--------------------------SubmitBudgetApply CallbackTimer summeryResult:{} ------------------------------",summeryResult); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
@ -241,7 +235,6 @@ public class AsyncFactory { |
|
|
|
Thread.sleep(3*1000); |
|
|
|
TbsBudgetApplyOperationServiceImpl applyOperationService = SpringUtils.getBean(TbsBudgetApplyOperationServiceImpl.class); |
|
|
|
String summeryResult = applyOperationService.checkAffairSummery(budgetId); |
|
|
|
if(summeryResult.equals(TbsCostApplyOperationServiceImpl.SummeryState_Success)){ |
|
|
|
DataAffairCommitService commitService = SpringUtils.getBean(DataAffairCommitService.class); |
|
|
|
// TbsAffairCommitBo.state 0-否定,1-同意,2-退回
|
|
|
|
Integer state = commitService.getState(applyOperationService.getTemplateCode(),budgetId+""); |
|
|
@ -254,11 +247,10 @@ public class AsyncFactory { |
|
|
|
if (state == 1){ |
|
|
|
applyOperationService.doFinished(doParam); |
|
|
|
}else if (state==2){ |
|
|
|
applyOperationService.doCommitBacked(budgetId); |
|
|
|
applyOperationService.doBacked(doParam); |
|
|
|
}else if (state==0){ |
|
|
|
applyOperationService.doRefuse(doParam); |
|
|
|
} |
|
|
|
} |
|
|
|
log.debug("--------------------------SubmitBudgetApply CallbackTimer summeryResult:{} ------------------------------",summeryResult); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
@ -316,9 +308,8 @@ public class AsyncFactory { |
|
|
|
if(!verification.getVerificationState().equals(VtbVerificationState.Commiting.getCode())){ |
|
|
|
return; |
|
|
|
} |
|
|
|
VtbVerificationOperationServiceImpl verificationOperationService = SpringUtils.getBean(VtbVerificationOperationServiceImpl.class); |
|
|
|
String summeryResult = verificationOperationService.checkAffairSummery(verification.getId().toString()); |
|
|
|
if( summeryResult.equals(VtbVerificationOperationServiceImpl.SummeryState_Success)){ |
|
|
|
//VtbVerificationOperationServiceImpl verificationOperationService = SpringUtils.getBean(VtbVerificationOperationServiceImpl.class);
|
|
|
|
//String summeryResult = verificationOperationService.checkAffairSummery(verification.getId().toString());
|
|
|
|
VtbVerificationApplication verificationApplication = SpringUtils.getBean(VtbVerificationApplication.class); |
|
|
|
if(state.equals(1)){ |
|
|
|
//调用成功回调方法
|
|
|
@ -333,7 +324,6 @@ public class AsyncFactory { |
|
|
|
if(realaseFlag){ |
|
|
|
vtbVerificationService.release(verification.getActivityId(),userCode,false); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|