bug
This commit is contained in:
@@ -406,12 +406,7 @@ namespace Tnb.ProductionMgr
|
|||||||
List<PrdMaterialReceiptH> insertHList = new List<PrdMaterialReceiptH>();
|
List<PrdMaterialReceiptH> insertHList = new List<PrdMaterialReceiptH>();
|
||||||
List<PrdMaterialReceiptD> insertDList = new List<PrdMaterialReceiptD>();
|
List<PrdMaterialReceiptD> insertDList = new List<PrdMaterialReceiptD>();
|
||||||
string orgId = WmsWareHouseConst.AdministratorOrgId;
|
string orgId = WmsWareHouseConst.AdministratorOrgId;
|
||||||
string userId = WmsWareHouseConst.AdministratorUserId;
|
string userId = moTask.worker_id;
|
||||||
if (_userManager != null && _userManager.GetUserInfo() != null && _userManager.GetUserInfo().Result!=null)
|
|
||||||
{
|
|
||||||
orgId = _userManager.GetUserInfo().Result.organizeId;
|
|
||||||
userId = _userManager.UserId;
|
|
||||||
}
|
|
||||||
foreach(string carryId in input.carryIds)
|
foreach(string carryId in input.carryIds)
|
||||||
{
|
{
|
||||||
WmsCarryH carry = await db.Queryable<WmsCarryH>().SingleAsync(x => x.id == carryId);
|
WmsCarryH carry = await db.Queryable<WmsCarryH>().SingleAsync(x => x.id == carryId);
|
||||||
|
|||||||
@@ -74,8 +74,6 @@ namespace Tnb.WarehouseMgr
|
|||||||
}
|
}
|
||||||
|
|
||||||
CarryQueryOutput data = new();
|
CarryQueryOutput data = new();
|
||||||
try
|
|
||||||
{
|
|
||||||
WmsCarryH carry = await _db.Queryable<WmsCarryH>().FirstAsync(a => a.carry_code == input.carry_code && a.status == 1);
|
WmsCarryH carry = await _db.Queryable<WmsCarryH>().FirstAsync(a => a.carry_code == input.carry_code && a.status == 1);
|
||||||
if (carry.IsNull())
|
if (carry.IsNull())
|
||||||
{
|
{
|
||||||
@@ -117,12 +115,6 @@ namespace Tnb.WarehouseMgr
|
|||||||
}
|
}
|
||||||
data = carry.Adapt<CarryQueryOutput>();
|
data = carry.Adapt<CarryQueryOutput>();
|
||||||
data.wmsCarryCodes = carryCodes.Adapt<List<CarryCodeQueryOutput>>();
|
data.wmsCarryCodes = carryCodes.Adapt<List<CarryCodeQueryOutput>>();
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
await _db.Ado.RollbackTranAsync();
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user