mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
webcad拆单更新自定义版编号feign请求置于事务最后
This commit is contained in:
+3
-2
@@ -288,6 +288,9 @@ public class WebCadOrderImportAsyncFactory {
|
|||||||
|
|
||||||
// 更新导入任务为成功
|
// 更新导入任务为成功
|
||||||
updateTaskSuccess(taskId);
|
updateTaskSuccess(taskId);
|
||||||
|
|
||||||
|
// 所有自定义板编号生成完成后更新配置到生产单
|
||||||
|
customPlateNoGenerateService.updateCustomPlateNoGenerateConfig(plateNoGenerateConfigVO, orderDO);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (esInsert) {
|
if (esInsert) {
|
||||||
CompletableFuture.runAsync(() -> {
|
CompletableFuture.runAsync(() -> {
|
||||||
@@ -583,8 +586,6 @@ public class WebCadOrderImportAsyncFactory {
|
|||||||
}
|
}
|
||||||
reader.endArray();
|
reader.endArray();
|
||||||
orderPlateBatchInsertWithinThreshold(plateDOS, true);
|
orderPlateBatchInsertWithinThreshold(plateDOS, true);
|
||||||
// 所有自定义板编号生成完成后更新配置到生产单
|
|
||||||
customPlateNoGenerateService.updateCustomPlateNoGenerateConfig(plateNoGenerateConfigVO, orderDO);
|
|
||||||
// 批量插入造型数据
|
// 批量插入造型数据
|
||||||
orderModelsBatchInsertWithinThreshold(true);
|
orderModelsBatchInsertWithinThreshold(true);
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -245,6 +245,9 @@ public class WebCadOrderImportFactory {
|
|||||||
saveData();
|
saveData();
|
||||||
log.debug("====================【cad拆单全局保存结束】====================");
|
log.debug("====================【cad拆单全局保存结束】====================");
|
||||||
|
|
||||||
|
// 所有自定义板编号生成完成后更新配置到生产单
|
||||||
|
customPlateNoGenerateService.updateCustomPlateNoGenerateConfig(plateNoGenerateConfigVO, orderDO);
|
||||||
|
|
||||||
if (plateNumReachThreshold) {
|
if (plateNumReachThreshold) {
|
||||||
log.warn(ServiceExceptionUtil.exception(WEBCAD_ORDER_IMPORT_ORDER_PLATENUM_REACH_THRESHOLD_ERROR, orderId, cadImportPlateNumThreshold).getMessage());
|
log.warn(ServiceExceptionUtil.exception(WEBCAD_ORDER_IMPORT_ORDER_PLATENUM_REACH_THRESHOLD_ERROR, orderId, cadImportPlateNumThreshold).getMessage());
|
||||||
}
|
}
|
||||||
@@ -510,8 +513,6 @@ public class WebCadOrderImportFactory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
orderPlateBatchInsertWithinThreshold(plateDOS, true);
|
orderPlateBatchInsertWithinThreshold(plateDOS, true);
|
||||||
// 所有自定义板编号生成完成后更新配置到生产单
|
|
||||||
customPlateNoGenerateService.updateCustomPlateNoGenerateConfig(plateNoGenerateConfigVO, orderDO);
|
|
||||||
// 批量插入造型数据
|
// 批量插入造型数据
|
||||||
orderModelsBatchInsertWithinThreshold(true);
|
orderModelsBatchInsertWithinThreshold(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user