|
|
|
@ -90,7 +90,7 @@ public class ZbFactoryDataController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 增加对请求日志的数据存储
|
|
|
|
|
|
|
|
|
|
if(zbFactoryProperties.getSendSystem().contains("old")){ |
|
|
|
|
ZbFactoryLogEntity zbFactoryLogEntity = new ZbFactoryLogEntity(); |
|
|
|
|
zbFactoryLogEntity.setType(1); |
|
|
|
|
zbFactoryLogEntity.setSaxStatus(0); |
|
|
|
@ -102,26 +102,25 @@ public class ZbFactoryDataController {
|
|
|
|
|
zbFactoryLogService.save(zbFactoryLogEntity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// orderStatusLogService.save(orderStatusLog);
|
|
|
|
|
// orderStatusLogService.save(orderStatusLog);
|
|
|
|
|
|
|
|
|
|
// //判断数据是否已存入
|
|
|
|
|
// //判断数据是否已存入
|
|
|
|
|
Long orderId = null; |
|
|
|
|
try { |
|
|
|
|
orderId = zbFactoryDataService.saveData(zbReceiptDTO); |
|
|
|
|
// orderStatusLog.setStatus(0);
|
|
|
|
|
// orderStatusLog.setStatus(0);
|
|
|
|
|
zbFactoryLogEntity.setSaxStatus(1); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("############data: 保存数据失败", e); |
|
|
|
|
//修改保存数据的状态
|
|
|
|
|
// orderStatusLog.setStatus(2);
|
|
|
|
|
// orderStatusLog.setStatus(2);
|
|
|
|
|
zbFactoryLogEntity.setSaxStatus(2); |
|
|
|
|
} |
|
|
|
|
// orderStatusLogService.saveOrUpdate(orderStatusLog);
|
|
|
|
|
// orderStatusLogService.saveOrUpdate(orderStatusLog);
|
|
|
|
|
zbFactoryLogService.saveOrUpdate(zbFactoryLogEntity); |
|
|
|
|
|
|
|
|
|
//开启异步线程处理数据
|
|
|
|
|
if (!Objects.isNull(orderId)) { |
|
|
|
|
if(zbFactoryProperties.getSendSystem().contains("old")){ |
|
|
|
|
syncDataService.handlerZbDataToHt(orderId); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|