fix: 跨机台下卷错误

This commit is contained in:
2025-01-13 18:34:13 +08:00
parent 3824e6ebde
commit faa5ce683f

View File

@@ -530,7 +530,7 @@ public class SlitterServiceImpl implements SlitterService {
// 获取分切对接位没任务的空位置
List<BstIvtCutpointivt> emptyPoints = slitterMapper.getEmptyCutPointNotTask(area,
device.getSort_seq(),
getPointLocationInCutDevice(getNumberByResourceCode(demoPlan.getResource_name()), area));
getPointLocationInCutDevice(getNumberByResourceCode(actualDeviceCode), area));
if (emptyPoints.size() == 0) {
log.error("分切机【" + device.getExt_code() + "】找不到对应的对接位, 或已存在任务!");
throw new BadRequestException("分切机【" + device.getExt_code() + "】找不到对应的对接位,或已存在任务!");