feat(wms): 添加钢卷复活功能

- 在 IWmsMaterialCoilService 中新增 reviveCoil 方法定义
- 在 WmsMaterialCoilController 中添加 /reviveCoil/{coilId} 接口
- 在 WmsMaterialCoilServiceImpl 中实现复活逻辑
- 实现将 dataType=0 的历史钢卷恢复为 dataType=1 的当前钢卷
- 添加实际库位绑定清空和钢卷号重复检查功能
- 完善异常处理和事务回滚机制
This commit is contained in:
2026-01-19 14:11:06 +08:00
parent e2d0f07b40
commit 2d9795e16a
3 changed files with 105 additions and 0 deletions

View File

@@ -148,5 +148,15 @@ public interface IWmsMaterialCoilService {
* }
*/
Map<String, Object> getDuplicateCoilGroups();
/**
* 复活历史钢卷
* 将dataType=0的历史钢卷恢复为dataType=1的当前钢卷
* 同时清空实际库位绑定,并检查当前钢卷号是否重复
*
* @param coilId 钢卷ID
* @return 复活结果包含success状态和错误信息
*/
Map<String, Object> reviveCoil(@NotNull(message = "钢卷ID不能为空") Long coilId);
}