禅道bug#1615修复

This commit is contained in:
gaoqr
2026-06-03 13:43:01 +08:00
parent 36df7cd265
commit ece90b7d35
5 changed files with 11 additions and 5 deletions
@@ -13,7 +13,7 @@ public class ErrorCodeConstants {
// ========== 订单开料排单 // ========== 订单开料排单
public static final ErrorCode PLAN_NOT_EXISTS = new ErrorCode(1_003_107_000, "订单开料排单不存在"); public static final ErrorCode PLAN_NOT_EXISTS = new ErrorCode(1_003_107_000, "订单开料排单不存在");
public static final ErrorCode PLAN_NOT_ALLOW_DELETE = new ErrorCode(1_003_107_001, "排单号:{},已开料不予许删除"); public static final ErrorCode PLAN_NOT_ALLOW_DELETE = new ErrorCode(1_003_107_001, "plan.not.allow.delete");
public static final ErrorCode PLAN_PLATE_IS_ALL_CUT = new ErrorCode(1_003_107_006, "排单号:{} 的板材已全部开料,禁止删除!"); public static final ErrorCode PLAN_PLATE_IS_ALL_CUT = new ErrorCode(1_003_107_006, "排单号:{} 的板材已全部开料,禁止删除!");
public static final ErrorCode PLAN_NOT_DATA_EXISTS = new ErrorCode(1_003_107_007, "排单号:{} 不存在,无法进行操作,请检查排单数据"); public static final ErrorCode PLAN_NOT_DATA_EXISTS = new ErrorCode(1_003_107_007, "排单号:{} 不存在,无法进行操作,请检查排单数据");
@@ -276,7 +276,7 @@ public class PlanServiceImpl implements PlanService {
// 获取排单下的订单号集合 // 获取排单下的订单号集合
planDOS.forEach(f -> { planDOS.forEach(f -> {
if (f.getStatus().equals(PlanStatusEnum.OPENING.getStatus()) || f.getStatus().equals(PlanStatusEnum.OPENED.getStatus())) { if (f.getStatus().equals(PlanStatusEnum.OPENING.getStatus()) || f.getStatus().equals(PlanStatusEnum.OPENED.getStatus())) {
throw new ServiceException(PLAN_NOT_ALLOW_DELETE, f.getId()); throw new ServiceException(PLAN_NOT_ALLOW_DELETE, String.valueOf(f.getId()));
} }
}); });
@@ -99,3 +99,5 @@ parts.pack.num.not.enough=配件可打包數量不足,請重繪後再次打包
parts.pack.item.source.not.exist=配件打包數據异常,請重繪後再次打包 parts.pack.item.source.not.exist=配件打包數據异常,請重繪後再次打包
parts.heapsplit.num.not.enough=配件可分堆數量不足,請重繪後再次分堆 parts.heapsplit.num.not.enough=配件可分堆數量不足,請重繪後再次分堆
parts.heapsplit.item.source.not.exist=配件分堆數據异常,請重繪後再次分堆 parts.heapsplit.item.source.not.exist=配件分堆數據异常,請重繪後再次分堆
plan.not.allow.delete=排單號:{0}已開料無法刪除
@@ -99,3 +99,5 @@ parts.pack.num.not.enough=The number of accessories that can be packaged is insu
parts.pack.item.source.not.exist=Abnormal accessory packaging data, please refresh and package again parts.pack.item.source.not.exist=Abnormal accessory packaging data, please refresh and package again
parts.heapsplit.num.not.enough=The number of accessories that can be stacked is insufficient. Please refresh and stack again parts.heapsplit.num.not.enough=The number of accessories that can be stacked is insufficient. Please refresh and stack again
parts.heapsplit.item.source.not.exist=Abnormal accessory stacking data, please refresh and stack again parts.heapsplit.item.source.not.exist=Abnormal accessory stacking data, please refresh and stack again
plan.not.allow.delete=Plan number: {0} has been cut and cannot be deleted
@@ -99,3 +99,5 @@ parts.pack.num.not.enough=配件可打包数量不足,请刷新后再次打包
parts.pack.item.source.not.exist=配件打包数据异常,请刷新后再次打包 parts.pack.item.source.not.exist=配件打包数据异常,请刷新后再次打包
parts.heapsplit.num.not.enough=配件可分堆数量不足,请刷新后再次分堆 parts.heapsplit.num.not.enough=配件可分堆数量不足,请刷新后再次分堆
parts.heapsplit.item.source.not.exist=配件分堆数据异常,请刷新后再次分堆 parts.heapsplit.item.source.not.exist=配件分堆数据异常,请刷新后再次分堆
plan.not.allow.delete=排单号:{0}已开料无法删除