From 5718a77be623becb877ba00df9d5a04fd15309bc Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Mon, 26 Jan 2026 14:22:13 +0800 Subject: [PATCH] =?UTF-8?q?style(wms):=20=E4=BF=AE=E6=94=B9=E5=88=86?= =?UTF-8?q?=E5=8D=B7=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E6=9B=B4=E5=8A=A0?= =?UTF-8?q?=E4=BA=BA=E6=80=A7=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将"钢卷正在进行其他操作,无法开始单步分卷"简化为"钢卷正在进行操作" - 将"创建待操作记录失败"简化为"创建待操作失败" - 将"母卷不存在"统一为"钢卷不存在" - 将"母卷未处于单步分卷状态"修改为"钢卷未处于分卷状态" - 将"母卷已成为历史数据,无法取消分卷"修改为"该钢卷已成为历史数据,无法取消分卷" - 将"母卷未处于单步分卷状态,无法取消"修改为"钢卷未处于分卷状态,无法取消" - 将"取消单步分卷成功"修改为"取消分卷成功" --- .../impl/WmsMaterialCoilServiceImpl.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java b/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java index 725ebcbc..54e6a333 100644 --- a/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java +++ b/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java @@ -3263,7 +3263,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { // 3. 检查是否已被锁定或已有相同类型的待处理操作 if (coil.getExclusiveStatus() != null && coil.getExclusiveStatus() != 0) { - throw new RuntimeException("钢卷正在进行其他操作,无法开始单步分卷"); + throw new RuntimeException("钢卷正在进行操作"); } // // 3.1 检查是否已经有相同类型的待处理操作(防止重复领料) @@ -3293,7 +3293,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { Boolean insertResult = coilPendingActionService.insertByBo(pendingActionBo); if (!insertResult) { - throw new RuntimeException("创建待操作记录失败"); + throw new RuntimeException("创建待操作失败"); } return true; @@ -3308,12 +3308,12 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { // 1. 查询母卷信息 WmsMaterialCoil parentCoil = baseMapper.selectById(parentCoilId); if (parentCoil == null) { - throw new RuntimeException("母卷不存在"); + throw new RuntimeException("钢卷不存在"); } // 2. 验证独占状态 if (parentCoil.getExclusiveStatus() == null || parentCoil.getExclusiveStatus() != 1) { - throw new RuntimeException("母卷未处于单步分卷状态"); + throw new RuntimeException("钢卷未处于分卷状态"); } // 3. 查询待操作记录 @@ -3418,7 +3418,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { Long parentCoilId = pendingAction.getCoilId(); WmsMaterialCoil parentCoil = baseMapper.selectById(parentCoilId); if (parentCoil == null) { - throw new RuntimeException("母卷不存在"); + throw new RuntimeException("钢卷不存在"); } // 3. 获取所有子卷ID @@ -3519,16 +3519,16 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { // 3. 查询母卷 WmsMaterialCoil parentCoil = baseMapper.selectById(pendingAction.getCoilId()); if (parentCoil == null) { - throw new RuntimeException("母卷不存在"); + throw new RuntimeException("钢卷不存在"); } if (parentCoil.getDataType() == 0) { - throw new RuntimeException("母卷已成为历史数据,无法取消分卷"); + throw new RuntimeException("该钢卷已成为历史数据,无法取消分卷"); } // 4. 校验母卷是否处于“单步分卷中” if (Objects.equals(parentCoil.getExclusiveStatus(), 0)) { - throw new RuntimeException("母卷未处于单步分卷状态,无法取消"); + throw new RuntimeException("钢卷未处于分卷状态,无法取消"); } // 释放母卷独占锁 @@ -3540,7 +3540,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { } result.put("success", true); - result.put("message", "取消单步分卷成功"); + result.put("message", "取消分卷成功"); return result; }