|
@@ -316,7 +316,6 @@ public class WorkOrderServiceImpl extends ServiceImpl<WorkOrderMapper, WorkOrder
|
|
|
|
|
|
}
|
|
|
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public void reschedule(Long id) {
|
|
|
|
|
@@ -861,11 +860,13 @@ public class WorkOrderServiceImpl extends ServiceImpl<WorkOrderMapper, WorkOrder
|
|
|
workOrder.setUseRatio(fixationStrategy.getUseRatio());
|
|
|
workOrder.setMaxLength(fixationStrategy.getMaxLength());
|
|
|
|
|
|
- if (!notSchedulingSku.isEmpty()) {
|
|
|
- orderSkuService.updateBatchById(notSchedulingSku);
|
|
|
- }
|
|
|
- updateById(workOrder);
|
|
|
- workOrderDetailService.saveOrUpdateBatch(workOrderDetailList);
|
|
|
+ TransactionUtil.execute(() -> {
|
|
|
+ if (!notSchedulingSku.isEmpty()) {
|
|
|
+ orderSkuService.updateBatchById(notSchedulingSku);
|
|
|
+ }
|
|
|
+ updateById(workOrder);
|
|
|
+ workOrderDetailService.saveOrUpdateBatch(workOrderDetailList);
|
|
|
+ });
|
|
|
}
|
|
|
// 非固定尺寸排版
|
|
|
else {
|