fix(wms): 解决分卷操作取消时的状态检查问题
- 添加了对pendingAction备注字段的检查 - 防止已经开始的分卷操作被取消 - 确保只有未开始的操作才能被取消
This commit is contained in:
@@ -3490,6 +3490,9 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
||||
throw new RuntimeException("该分卷操作已完成,无法取消");
|
||||
}
|
||||
|
||||
if (pendingAction.getRemark() != null) {
|
||||
throw new RuntimeException("该分卷操作已开始,请勿取消");
|
||||
}
|
||||
// 删除待操作记录
|
||||
coilPendingActionService.deleteWithValidByIds(Arrays.asList(pendingActionId), false);
|
||||
// 3. 查询母卷
|
||||
|
||||
Reference in New Issue
Block a user