diff --git a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java index f3cf4693..c3513d8e 100644 --- a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java +++ b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java @@ -629,6 +629,9 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService { proOrderWorkorderMapper.updateProOrderWorkorder(proOrderWorkorder); + // 删除工单下批次信息 + proOrderWorkorderBatchMapper.deleteProOrderWorkorderBatchByWorkorderId(proOrderWorkorder.getWorkorderId()); + workBatch.setWorkorderId(proOrderWorkorder.getWorkorderId()); // 生成批次表信息并更新至数据库