fix(wms): 修复分卷操作取消逻辑中的空值判断问题
- 使用 StringUtils.isNotBlank 替换 null 检查来验证备注字段 - 防止因空字符串导致的意外业务逻辑触发 - 确保分卷操作状态检查的准确性
This commit is contained in:
@@ -3493,7 +3493,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
||||
throw new RuntimeException("该分卷操作已完成,无法取消");
|
||||
}
|
||||
|
||||
if (pendingAction.getRemark() != null) {
|
||||
if (StringUtils.isNotBlank(pendingAction.getRemark())) {
|
||||
throw new RuntimeException("该分卷操作已开始,请勿取消");
|
||||
}
|
||||
// 删除待操作记录
|
||||
|
||||
Reference in New Issue
Block a user