fix(wms): 修复钢卷回滚逻辑处理合卷分卷操作

- 移除冗余的parent_coil_ids检查逻辑
- 简化合卷操作的回滚判断条件
- 统一合卷分卷操作的处理流程
- 添加代码注释说明分卷合卷操作的处理逻辑
This commit is contained in:
2026-01-20 13:05:58 +08:00
parent e1c8c4461e
commit dc4d4ad302

View File

@@ -2959,18 +2959,14 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
}
}
// 无论是分卷还是合卷 当前逻辑应该是可以继续的 此处先进行跳过 只回滚当前工序的
// 对于合卷操作检查parent_coil_ids
if ("合卷".equals(step.get("operation"))) {
Object parentCoilIdsObj = step.get("parent_coil_ids");
if (parentCoilIdsObj != null) {
String parentCoilIdsStr = parentCoilIdsObj.toString();
if (parentCoilIdsStr.contains(currentCoilIdStr)) {
// 当前钢卷是合卷的产物返回null表示无法继续回滚
return null;
}
}
// 当前钢卷是合卷的产物返回null表示无法继续回滚
return null;
}
// 对于分卷操作检查new_current_coil_nos是否包含多个钢卷号
if ("分卷".equals(step.get("operation"))) {
// 当前钢卷是分卷操作产生的子钢卷,无法回滚