wms 消除warning
This commit is contained in:
@@ -119,7 +119,7 @@ namespace Tnb.WarehouseMgr
|
||||
x.bill_d_id = wmsInstockD.id;
|
||||
});
|
||||
}
|
||||
isOk = await _update(wmsInstockD, wmsInstockCodes);
|
||||
isOk = await _update(wmsInstockD, wmsInstockCodes!);
|
||||
break;
|
||||
case EnumInOutStockType.Out:
|
||||
var wmsOutstockD = input.Adapt<WmsOutstockD>();
|
||||
@@ -143,12 +143,11 @@ namespace Tnb.WarehouseMgr
|
||||
/// <summary>
|
||||
/// 根据明细Id获取出入库明细信息
|
||||
/// </summary>
|
||||
/// <param name="billDId"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<dynamic> GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input)
|
||||
public async Task<dynamic?> GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input)
|
||||
{
|
||||
dynamic result = null;
|
||||
dynamic? result = null;
|
||||
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
|
||||
switch (input.inoutStockType)
|
||||
{
|
||||
@@ -175,7 +174,7 @@ namespace Tnb.WarehouseMgr
|
||||
all_amount = a.all_amount,
|
||||
CodeDetails = SqlFunc.Subqueryable<WmsInstockCode>().Where(it => it.bill_d_id == a.id).ToList(),
|
||||
})
|
||||
.Mapper(it => it.line_status = dic.ContainsKey(it.line_status) ? dic[it.line_status]?.ToString()! : "")
|
||||
.Mapper(it => it.line_status = dic.ContainsKey(it.line_status!) ? dic[it.line_status!]?.ToString()! : "")
|
||||
.ToListAsync();
|
||||
|
||||
break;
|
||||
@@ -218,9 +217,8 @@ namespace Tnb.WarehouseMgr
|
||||
items = await _db.Queryable<BasLocation>().Where(it => it.wh_id == input.warehouse_id && it.is_lock == 0 && it.is_type == "0" && it.is_use == (int)EnumCarryStatus.空闲).OrderBy(it => new { it.layers, it.loc_line, it.loc_column }, OrderByType.Asc).ToListAsync();
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
throw;
|
||||
}
|
||||
return items.Take(input.Size).ToList();
|
||||
@@ -232,7 +230,7 @@ namespace Tnb.WarehouseMgr
|
||||
[HttpGet]
|
||||
public async Task<dynamic> OutStockStrategy()
|
||||
{
|
||||
return Task.FromResult<dynamic>(true);
|
||||
return await Task.FromResult<dynamic>(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// 生成任务执行
|
||||
@@ -475,11 +473,12 @@ namespace Tnb.WarehouseMgr
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH { is_lock = 0, location_id = multiList[i].endlocation_id, location_code = multiList[i].endlocation_code }).Where(it => it.id == multiList[i].carry_id).ExecuteCommandAsync();
|
||||
//更新条码的库位和仓库信息
|
||||
var carryCodes = await _db.Queryable<WmsCarryCode>().Where(it => it.id == multiList[i].carry_id).ToListAsync();
|
||||
if (carryCodes?.Count>0) {
|
||||
if (carryCodes?.Count > 0)
|
||||
{
|
||||
var loc = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == multiList[i].endlocation_id);
|
||||
await _db.Updateable<WmsCarryCode>().SetColumns(it => new WmsCarryCode { warehouse_id = loc.wh_id, location_id = multiList[i].endlocation_id, location_code = multiList[i].endlocation_code }).Where(it => it.id == multiList[i].carry_id).ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
//更新库位信息,使用状态为 使用,锁定状态为未锁定
|
||||
@@ -503,7 +502,7 @@ namespace Tnb.WarehouseMgr
|
||||
foreach (var dt in disTasks)
|
||||
{
|
||||
var disTaskCodes = await _db.Queryable<WmsDistaskCode>().Where(it => it.bill_id == dt.id).ToListAsync();
|
||||
var upInput = new WareHouseUpInput { bizTypeId = dt.biz_type, requireId = dt.require_id, distaskCodes = disTaskCodes, carryIds = disTasks.Select(x => x.carry_id).ToList() };
|
||||
var upInput = new WareHouseUpInput { bizTypeId = dt.biz_type, requireId = dt.require_id!, distaskCodes = disTaskCodes, carryIds = disTasks.Select(x => x.carry_id).ToList() };
|
||||
upInput.loginType = !_userManager.LoginType.IsNullOrEmpty() ? "app" : "web";
|
||||
if (dt.is_sign == 1 && dt.chain_type == "3")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user