|
|
@ -133,19 +133,6 @@ public class AsyncFactory { |
|
|
|
finishedParam.setPolicyId(policyId); |
|
|
|
operationService.doFinished(finishedParam); |
|
|
|
} |
|
|
|
DataAffairCommitService commitService = SpringUtils.getBean(DataAffairCommitService.class); |
|
|
|
// 获取最后一条审批判断结果:TbsAffairCommitBo.state 0-否定,1-同意,2-退回
|
|
|
|
Integer state = commitService.getState(operationService.getTemplateCode(),policyId+""); |
|
|
|
//调用成功回调方法
|
|
|
|
TbsAffairCommitBo doParam = new TbsAffairCommitBo(); |
|
|
|
doParam.setPolicyId(policyId); |
|
|
|
if (state==null||state==1){ |
|
|
|
operationService.doFinished(doParam); |
|
|
|
}else if (state==2){ |
|
|
|
operationService.doBacked(doParam); |
|
|
|
}else if (state==0){ |
|
|
|
operationService.doRefuse(doParam); |
|
|
|
} |
|
|
|
log.debug("--------------------------SubmitPolicy CallbackTimer summeryResult:{}------------------------------",summeryResult); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
@ -175,18 +162,10 @@ public class AsyncFactory { |
|
|
|
TbsBudgetChangeOperationServiceImpl applyOperationService = SpringUtils.getBean(TbsBudgetChangeOperationServiceImpl.class); |
|
|
|
|
|
|
|
String summeryResult = applyOperationService.checkAffairSummery(budgetId); |
|
|
|
DataAffairCommitService commitService = SpringUtils.getBean(DataAffairCommitService.class); |
|
|
|
// 获取最后一条审批判断结果:TbsAffairCommitBo.state 0-否定,1-同意,2-退回
|
|
|
|
Integer state = commitService.getState(applyOperationService.getTemplateCode(),budgetId+""); |
|
|
|
//调用成功回调方法
|
|
|
|
if(summeryResult.equals(TzcPolicyOperationServiceImpl.SummeryState_Success)){ |
|
|
|
TbsAffairCommitBo doParam = new TbsAffairCommitBo(); |
|
|
|
doParam.setTargetId(budgetId); |
|
|
|
if (state==null||state==1){ |
|
|
|
applyOperationService.doFinished(doParam); |
|
|
|
}else if (state==2){ |
|
|
|
applyOperationService.doBacked(doParam); |
|
|
|
}else if (state==0){ |
|
|
|
applyOperationService.doRefuse(doParam); |
|
|
|
} |
|
|
|
log.debug("--------------------------SubmitBudgetApply CallbackTimer summeryResult:{} ------------------------------",summeryResult); |
|
|
|
} catch (Exception e) { |
|
|
@ -212,18 +191,10 @@ public class AsyncFactory { |
|
|
|
TbsBudgetBatchOperationServiceImpl operationService = SpringUtils.getBean(TbsBudgetBatchOperationServiceImpl.class); |
|
|
|
|
|
|
|
String summeryResult = operationService.checkAffairSummery(batchId); |
|
|
|
DataAffairCommitService commitService = SpringUtils.getBean(DataAffairCommitService.class); |
|
|
|
// 获取最后一条审批判断结果:TbsAffairCommitBo.state 0-否定,1-同意,2-退回
|
|
|
|
Integer state = commitService.getState(operationService.getTemplateCode(),batchId+""); |
|
|
|
//调用成功回调方法
|
|
|
|
if(summeryResult.equals(TzcPolicyOperationServiceImpl.SummeryState_Success)){ |
|
|
|
TbsAffairCommitBo doParam = new TbsAffairCommitBo(); |
|
|
|
doParam.setTargetId(batchId); |
|
|
|
if (state==null||state==1){ |
|
|
|
operationService.doFinished(doParam); |
|
|
|
}else if (state==2){ |
|
|
|
operationService.doBacked(doParam); |
|
|
|
}else if (state==0){ |
|
|
|
operationService.doRefuse(doParam); |
|
|
|
} |
|
|
|
log.debug("--------------------------SubmitBudgetApply CallbackTimer summeryResult:{} ------------------------------",summeryResult); |
|
|
|
|
|
|
@ -249,21 +220,10 @@ public class AsyncFactory { |
|
|
|
Thread.sleep(3*1000); |
|
|
|
TbsBudgetApplyOperationServiceImpl applyOperationService = SpringUtils.getBean(TbsBudgetApplyOperationServiceImpl.class); |
|
|
|
String summeryResult = applyOperationService.checkAffairSummery(budgetId); |
|
|
|
DataAffairCommitService commitService = SpringUtils.getBean(DataAffairCommitService.class); |
|
|
|
// TbsAffairCommitBo.state 0-否定,1-同意,2-退回
|
|
|
|
Integer state = commitService.getState(applyOperationService.getTemplateCode(),budgetId+""); |
|
|
|
//获取最后一条审批判断结果
|
|
|
|
if(state==null){ |
|
|
|
return; |
|
|
|
} |
|
|
|
if(summeryResult.equals(TzcPolicyOperationServiceImpl.SummeryState_Success)){ |
|
|
|
TbsAffairCommitBo doParam = new TbsAffairCommitBo(); |
|
|
|
doParam.setTargetId(budgetId); |
|
|
|
if (state == 1){ |
|
|
|
applyOperationService.doFinished(doParam); |
|
|
|
}else if (state==2){ |
|
|
|
applyOperationService.doBacked(doParam); |
|
|
|
}else if (state==0){ |
|
|
|
applyOperationService.doRefuse(doParam); |
|
|
|
} |
|
|
|
log.debug("--------------------------SubmitBudgetApply CallbackTimer summeryResult:{} ------------------------------",summeryResult); |
|
|
|
} catch (Exception e) { |
|
|
|