feat: 包装管理和车次管理接口功能增强
- 新增包装分类获取接口 - 包装列表增加分类信息、包装内数量和车次关联筛选 - 保存包装支持分类字段 - 车次关联包装增加重复校验
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BLL
|
||||
@@ -53,6 +53,11 @@ namespace BLL
|
||||
{
|
||||
throw new Exception("当前包装状态不可修改车次号");
|
||||
}
|
||||
// 检查包装是否已关联其他车次
|
||||
if (!string.IsNullOrEmpty(packModel.TrainNumberId) && packModel.TrainNumberId != trainNumberId)
|
||||
{
|
||||
throw new Exception("该包装已在其他车次中存在,不能重复添加");
|
||||
}
|
||||
packModel.TrainNumberId = trainNumberId;
|
||||
HJGLPackagingmanageService.UpdateHJGL_PackagingManage(packModel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user