预订表查询物料为空返回空集合

This commit is contained in:
汤锦科 2024-12-20 10:30:57 +08:00
parent 3d9d42019f
commit 7c3a232e11

View File

@ -833,7 +833,9 @@ public class BaseKnifeController extends BaseController {
// 查询该物料编码的锁定记录 // 查询该物料编码的锁定记录
BaseKnifeLocked baseKnifeLockedWrapper = new BaseKnifeLocked(); BaseKnifeLocked baseKnifeLockedWrapper = new BaseKnifeLocked();
baseKnifeLockedWrapper.setItemCode(mdItemCode); baseKnifeLockedWrapper.setItemCode(mdItemCode);
baseKnifeLockedWrapper.setStatus(0);
List<BaseKnifeLocked> baseKnifeLockedList = baseKnifeLockedMapper.selectBaseKnifeLockedList(baseKnifeLockedWrapper); List<BaseKnifeLocked> baseKnifeLockedList = baseKnifeLockedMapper.selectBaseKnifeLockedList(baseKnifeLockedWrapper);
if (baseKnifeLockedList.isEmpty()) return new ArrayList<>();
// 根据台账ID进行分组 // 根据台账ID进行分组
Map<Long, List<BaseKnifeLocked>> groupBaseKnifeLocked = new HashMap<>(); Map<Long, List<BaseKnifeLocked>> groupBaseKnifeLocked = new HashMap<>();