refactor(WmsMaterialCoilService): 简化合卷操作逻辑
- 移除冗余的parent_coil_ids检查代码 - 直接返回MERGE_PRODUCT状态值 - 优化合卷操作的判断流程
This commit is contained in:
@@ -3053,13 +3053,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
||||
|
||||
// 2. 检查合卷操作(最新操作优先)
|
||||
if ("合卷".equals(operation)) {
|
||||
Object parentCoilIdsObj = step.get("parent_coil_ids");
|
||||
if (parentCoilIdsObj != null) {
|
||||
String parentCoilIdsStr = parentCoilIdsObj.toString();
|
||||
if (parentCoilIdsStr.contains(currentCoilIdStr)) {
|
||||
return "MERGE_PRODUCT";
|
||||
}
|
||||
}
|
||||
return "MERGE_PRODUCT";
|
||||
}
|
||||
|
||||
// 3. 检查分卷操作
|
||||
|
||||
Reference in New Issue
Block a user