开票成功,流程提交
This commit is contained in:
parent
cdc1078f77
commit
3cf56761e5
|
@ -263,18 +263,23 @@ public class InvoiceServiceImpl extends BaseService<InvoiceEntity, String> imple
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//开票成功,提交流程
|
//开票成功,提交流程
|
||||||
//查询待办,退回流程用,这里只处理退回的情况,如果要处理提交,要等开票成功后才能提交,去定时查开票结果的定时任务里做
|
if (StrUtil.isNotEmpty(entity.getSerial_number())){
|
||||||
// ApplyInvoiceEntity applyInvoice = new ApplyInvoiceEntity();
|
try {
|
||||||
// applyInvoice.setId(entity.getSerial_number());
|
ApplyInvoiceEntity applyInvoice = new ApplyInvoiceEntity();
|
||||||
// applyInvoice.setDataSourceCode("HT-OA");
|
applyInvoice.setId(entity.getSerial_number());
|
||||||
// ApplyInvoiceEntity applyInvoiceEntity = applyInvoiceService.queryAffair(applyInvoice);
|
applyInvoice.setDataSourceCode("HT-OA");
|
||||||
// if (null != applyInvoiceEntity){
|
ApplyInvoiceEntity applyInvoiceEntity = applyInvoiceService.queryAffair(applyInvoice);
|
||||||
// String stepBack = applyInvoiceService.stepBackValueOf(applyInvoiceEntity.getWorkitem_id(), InvoiceState.invoiceStateGetValue(jsonResult.getString("resultStatus"));
|
if (null != applyInvoiceEntity){
|
||||||
// applyInvoiceService.process(stepBack,"8000590007");
|
String finish = applyInvoiceService.finishValueOf(applyInvoiceEntity.getWorkitem_id(), InvoiceState.invoiceStateGetValue(jsonResult.getString("resultStatus")));
|
||||||
// }
|
applyInvoiceService.process(finish,"8000590007","ZZZH");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("开票成功,流程提交报错:{}}",e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
//开票失败,流程回退
|
//开票失败,流程回退 暂时先不回退 还不稳定,等稳定了再说
|
||||||
//查询待办,退回流程用,这里只处理退回的情况,如果要处理提交,要等开票成功后才能提交,去定时查开票结果的定时任务里做
|
//查询待办,退回流程用,这里只处理退回的情况,如果要处理提交,要等开票成功后才能提交,
|
||||||
ApplyInvoiceEntity applyInvoice = new ApplyInvoiceEntity();
|
ApplyInvoiceEntity applyInvoice = new ApplyInvoiceEntity();
|
||||||
applyInvoice.setId(entity.getSerial_number());
|
applyInvoice.setId(entity.getSerial_number());
|
||||||
applyInvoice.setDataSourceCode("HT-OA");
|
applyInvoice.setDataSourceCode("HT-OA");
|
||||||
|
@ -284,8 +289,8 @@ public class InvoiceServiceImpl extends BaseService<InvoiceEntity, String> imple
|
||||||
if (StrUtil.isEmpty(resultMsg)){
|
if (StrUtil.isEmpty(resultMsg)){
|
||||||
resultMsg = "开票失败";
|
resultMsg = "开票失败";
|
||||||
}
|
}
|
||||||
String stepBack = applyInvoiceService.stepBackValueOf(applyInvoiceEntity.getWorkitem_id(), resultMsg);
|
// String stepBack = applyInvoiceService.stepBackValueOf(applyInvoiceEntity.getWorkitem_id(), resultMsg);
|
||||||
applyInvoiceService.process(stepBack,"8000590006","ZZZH");
|
// applyInvoiceService.process(stepBack,"8000590006","ZZZH");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue