|
|
|
@ -272,11 +272,11 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
// maxLayer > 0:有层数托盘(9宫格、4宫格等) |
|
|
|
// 每个位置每层只能放一个东西 |
|
|
|
|
|
|
|
// 检查该位置该层是否已有东西 |
|
|
|
List<Map<String, Object>> existingDetails = wcsIntegrationMapper.getPalletDetails(site, palletId, position, layer); |
|
|
|
if (!existingDetails.isEmpty()) { |
|
|
|
throw new Exception("该位置第" + layer + "层已有物料,每层只能放一个物料"); |
|
|
|
} |
|
|
|
// 检查该位置该层是否已有东西 暂时注掉 |
|
|
|
// List<Map<String, Object>> existingDetails = wcsIntegrationMapper.getPalletDetails(site, palletId, position, layer); |
|
|
|
// if (!existingDetails.isEmpty()) { |
|
|
|
// throw new Exception("该位置第" + layer + "层已有物料,每层只能放一个物料"); |
|
|
|
// } |
|
|
|
} else { |
|
|
|
// maxLayer = 0:混装托盘 |
|
|
|
// 只能选第1层,但可以放多个东西 |
|
|
|
|