diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java index 6fb7fa7..455bbe6 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java @@ -833,7 +833,9 @@ public class BaseKnifeController extends BaseController { // 查询该物料编码的锁定记录 BaseKnifeLocked baseKnifeLockedWrapper = new BaseKnifeLocked(); baseKnifeLockedWrapper.setItemCode(mdItemCode); + baseKnifeLockedWrapper.setStatus(0); List baseKnifeLockedList = baseKnifeLockedMapper.selectBaseKnifeLockedList(baseKnifeLockedWrapper); + if (baseKnifeLockedList.isEmpty()) return new ArrayList<>(); // 根据台账ID进行分组 Map> groupBaseKnifeLocked = new HashMap<>();