fix(wms): 添加质量状态检查防止不合格钢卷发货
- 实现质量状态为O时的发货限制功能 - 添加"当前钢卷为质检未通过,请勿发货!"错误提示 - 确保只有合格钢卷才能进行发货操作
This commit is contained in:
@@ -2539,6 +2539,10 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
||||
WmsMaterialCoilVo wmsMaterialCoilVo = queryById(coilId);
|
||||
Long oldActualWarehouseId = wmsMaterialCoilVo != null ? wmsMaterialCoilVo.getActualWarehouseId() : null;
|
||||
|
||||
// 如果质量状态为O的提示不能发货
|
||||
if (wmsMaterialCoilVo != null && Objects.equals(wmsMaterialCoilVo.getQualityStatus(), "O")) {
|
||||
throw new RuntimeException("当前钢卷为质检未通过,请勿发货!");
|
||||
}
|
||||
// 如果当前钢卷为历史数据应该抛异常
|
||||
if (wmsMaterialCoilVo != null && wmsMaterialCoilVo.getDataType() == 0) {
|
||||
throw new RuntimeException("当前数据为历史数据,请勿发货!");
|
||||
|
||||
Reference in New Issue
Block a user