日志分表 任务日志 操作日志 接口日志
添加对应的日志文件 修改主子表的表结构信息 删除无关字段信息 测试添加数据到历史表中
This commit is contained in:
1 parent
ebdd40c518
commit
4f2ba2a3ee
101 files changed
+1004
-418
No files matched your search
@@ -66,32 +66,6 @@ namespace HHWMS.Web.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrEmpty(vm.Entity.UniqueCode))
|
||||
{
|
||||
return FFResult().Alert($"唯一码不能为空!");
|
||||
}
|
||||
var header = _unitwork.FindSingle<ShipmentHeader>(x => x.ID == vm.Entity.ShipmentHeaderId);
|
||||
if (header != null && header.FirstStatus != ShipStatusEnum.新建)
|
||||
{
|
||||
return FFResult().Alert($"非新建状态的出库单,无法新建明细!");
|
||||
}
|
||||
var inv = _unitwork.FindSingle<Inventory>(x => x.UniqueCode == vm.Entity.UniqueCode
|
||||
&& x.TaskStatus != InventoryTaskStatus.任务中);
|
||||
if(inv == null)
|
||||
{
|
||||
return FFResult().Alert($"{vm.Entity.UniqueCode}不存在或已有任务,检查后重新添加!");
|
||||
}
|
||||
if(_unitwork.IsExit<ShipmentDetail>(x => x.UniqueCode == vm.Entity.UniqueCode))
|
||||
{
|
||||
return FFResult().Alert($"{vm.Entity.UniqueCode}已在出库单内,请勿重复添加!");
|
||||
}
|
||||
vm.Entity.MaterialCode = inv.MaterialCode;
|
||||
vm.Entity.MaterialName = inv.MaterialName;
|
||||
vm.Entity.MaterialSpec = inv.MaterialSpec;
|
||||
vm.Entity.MaterialUnit = inv.MaterialUnit;
|
||||
vm.Entity.MaterialType = inv.MaterialType;
|
||||
vm.Entity.Batch = inv.Batch;
|
||||
vm.Entity.Qty = inv.Qty;
|
||||
vm.Entity.Status = ShipStatusEnum.新建;
|
||||
vm.DoAdd();
|
||||
if (!ModelState.IsValid)
|
||||
|
||||
Reference in new issue
Block a user