refactor(wms): 移除钢卷数据类型检查限制
- 删除了对历史数据类型的验证逻辑 - 简化了钢卷更新时的数据校验流程 - 移除了 dataType 等于 0 时的异常抛出机制
This commit is contained in:
@@ -984,10 +984,6 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
||||
if (oldCoil == null) {
|
||||
throw new RuntimeException("钢卷不存在");
|
||||
}
|
||||
// 判断数据类型 0=历史数据 1=正常数据
|
||||
if (oldCoil.getDataType() == 0) {
|
||||
throw new RuntimeException("原钢卷已被更新");
|
||||
}
|
||||
|
||||
// 若修改实际库位,先进行校验
|
||||
if (bo.getActualWarehouseId() != null) {
|
||||
|
||||
Reference in New Issue
Block a user