开票结果
This commit is contained in:
parent
434f63f5ed
commit
718e172761
|
@ -260,6 +260,27 @@ public class InvoiceServiceImpl extends BaseService<InvoiceEntity, String> imple
|
|||
saveTaskLivingDetails(entity.getSerial_number(), entity.getBusiness_no(), jsonObject.toJSONString(), resultJson.toJSONString(), false, "QueryInvoiceResultPluginInitializer");
|
||||
}
|
||||
}
|
||||
//开票成功,提交流程
|
||||
//查询待办,退回流程用,这里只处理退回的情况,如果要处理提交,要等开票成功后才能提交,去定时查开票结果的定时任务里做
|
||||
ApplyInvoiceEntity applyInvoice = new ApplyInvoiceEntity();
|
||||
applyInvoice.setId(entity.getSerial_number());
|
||||
applyInvoice.setDataSourceCode("HT-OA");
|
||||
ApplyInvoiceEntity applyInvoiceEntity = applyInvoiceService.queryAffair(applyInvoice);
|
||||
if (null != applyInvoiceEntity){
|
||||
String stepBack = applyInvoiceService.stepBackValueOf(applyInvoiceEntity.getWorkitem_id(), InvoiceState.invoiceStateGetValue(jsonResult.getString("resultStatus"));
|
||||
applyInvoiceService.process(stepBack,"8000590007");
|
||||
}
|
||||
}else {
|
||||
//开票失败,流程回退
|
||||
//查询待办,退回流程用,这里只处理退回的情况,如果要处理提交,要等开票成功后才能提交,去定时查开票结果的定时任务里做
|
||||
ApplyInvoiceEntity applyInvoice = new ApplyInvoiceEntity();
|
||||
applyInvoice.setId(entity.getSerial_number());
|
||||
applyInvoice.setDataSourceCode("HT-OA");
|
||||
ApplyInvoiceEntity applyInvoiceEntity = applyInvoiceService.queryAffair(applyInvoice);
|
||||
if (null != applyInvoiceEntity){
|
||||
String stepBack = applyInvoiceService.stepBackValueOf(applyInvoiceEntity.getWorkitem_id(), attribute.getString("resultMsg"));
|
||||
applyInvoiceService.process(stepBack,"8000590006");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue