|
@@ -605,9 +605,12 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
log.debug("校验-订单提交完毕,从map中清空当前订单锁,订单ID:{}", id);
|
|
|
productOrderLock.remove(id);
|
|
|
}
|
|
|
- //订单更新完后,更新坯料计划对应的字段
|
|
|
- Thread thread = new Thread(() -> updateNeedUpdateColumnAll(id));
|
|
|
- thread.start();
|
|
|
+ try {
|
|
|
+ //订单更新完后,更新坯料计划对应的字段
|
|
|
+ updateNeedUpdateColumnAll(id);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("更新字段失败");
|
|
|
+ }
|
|
|
|
|
|
return R.ok();
|
|
|
}
|
|
@@ -1270,9 +1273,13 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
log.debug("修改-订单提交完毕,从map中清空当前订单锁,订单ID:{}", id);
|
|
|
productOrderLock.remove(id);
|
|
|
}
|
|
|
- //订单更新完后,更新坯料计划对应的字段
|
|
|
- Thread thread = new Thread(() -> updateNeedUpdateColumnAll(id));
|
|
|
- thread.start();
|
|
|
+ try {
|
|
|
+ //订单更新完后,更新坯料计划对应的字段
|
|
|
+ updateNeedUpdateColumnAll(id);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("更新字段失败");
|
|
|
+ }
|
|
|
+
|
|
|
return R.ok();
|
|
|
}
|
|
|
|