Skip to content

Commit ee9aff6

Browse files
author
wuxw7
committed
影响 正常查询的逻辑 处理完成
1 parent 29c927b commit ee9aff6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CenterService/src/main/java/com/java110/center/smo/impl/CenterServiceSMOImpl.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,10 @@ private void doSynchronousBusinesses(DataFlow dataFlow) throws BusinessException
796796
*/
797797
private void doDeleteOrderAndInstanceData(DataFlow dataFlow, List<Business> deleteBusinesses) {
798798

799+
if(deleteBusinesses == null || deleteBusinesses.size() == 0){
800+
return ;
801+
}
802+
799803
//1.0 在c_business 表中加入 撤单记录
800804
centerServiceDaoImpl.saveBusiness(DataFlowFactory.getDeleteOrderBusiness(dataFlow,"业务系统实例失败,发起撤单"));
801805
//2.0 作废 c_orders 和 c_business 数据
@@ -862,6 +866,10 @@ private void doBusinessTableDataInfoToInstanceTable(DataFlow dataFlow, List<Busi
862866
saveLogMessage(requestBusinessJson,responseJson);
863867
}
864868

869+
if(dataFlow.getCurrentBusiness() == null){
870+
return ;
871+
}
872+
865873
service = DataFlowFactory.getService(dataFlow,dataFlow.getCurrentBusiness().getServiceCode());
866874
if(CommonConstant.INSTANCE_Y.equals(service.getIsInstance())){
867875
//判断业务动作是否都竣工,主要考虑 请求报文中 有异步也有同步的情况

0 commit comments

Comments
 (0)