fix(wms): 修复钢卷回滚功能中的删除标志判断错误
- 将删除标志的判断从 2 改为 0,确保只有未删除的数据才能被回滚 - 修正了历史数据和当前数据的删除状态检查逻辑
This commit is contained in:
@@ -2779,7 +2779,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
||||
throw new RuntimeException("只能回滚当前数据,不能回滚历史数据");
|
||||
}
|
||||
|
||||
if (!currentCoil.getDelFlag().equals(2)) {
|
||||
if (!currentCoil.getDelFlag().equals(0)) {
|
||||
throw new RuntimeException("当前钢卷已删除,无法回滚");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user