wms 消除warning
This commit is contained in:
@@ -68,7 +68,7 @@ namespace Tnb.WarehouseMgr
|
||||
var carry = await _db.Queryable<WmsCarryH>().SingleAsync(it => it.id == input.carryId);
|
||||
if (carry != null)
|
||||
{
|
||||
if (carry.location_id.IsNotEmptyOrNull())
|
||||
if (carry!.location_id!.IsNotEmptyOrNull())
|
||||
{
|
||||
var loc = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == carry.location_id);
|
||||
loc.is_use = (int)EnumCarryStatus.空闲;
|
||||
@@ -77,7 +77,7 @@ namespace Tnb.WarehouseMgr
|
||||
carry.location_id = null;
|
||||
carry.location_code = null;
|
||||
await _db.Updateable(carry).UpdateColumns(it => new { it.location_id, it.location_code }).ExecuteCommandAsync();
|
||||
var disTask = await _db.Queryable<WmsDistaskH>().SingleAsync(it => it.id == input.disTaskId);
|
||||
WmsDistaskH? disTask = await _db.Queryable<WmsDistaskH>().SingleAsync(it => it.id == input.disTaskId);
|
||||
if (disTask != null)
|
||||
{
|
||||
if (_dicBizType.ContainsKey(disTask.biz_type))
|
||||
@@ -86,33 +86,11 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
loginType = "web",
|
||||
bizTypeId = disTask.biz_type,
|
||||
requireId = disTask.require_id,
|
||||
requireId = disTask!.require_id!,
|
||||
carryIds = new List<string> { input.carryId },
|
||||
distaskCodes = input.distaskCodes
|
||||
};
|
||||
await DoUpdate(upInput); //回更业务
|
||||
//switch (_dicBizType[disTask.biz_type])
|
||||
//{
|
||||
// case "空载具出库":
|
||||
// case "寄存出库":
|
||||
// case "齐套出库":
|
||||
// case "一般出库":
|
||||
// {
|
||||
|
||||
// WareHouseUpInput upInput = new() { loginType = "web", bizTypeId = disTask.biz_type, requireId = disTask.require_id, carryIds = new List<string> { input.carryId }, distaskCodes = input.distaskCodes };
|
||||
// await DoUpdate(upInput); //回更业务
|
||||
|
||||
|
||||
// }
|
||||
// break;
|
||||
// case "载具移出":
|
||||
// {
|
||||
// WareHouseUpInput upInput = new() { loginType = "web", bizTypeId = disTask.biz_type, requireId = disTask.require_id, carryIds = new List<string> { input.carryId }, distaskCodes = input.distaskCodes };
|
||||
// await DoUpdate(upInput); //回更业务
|
||||
// }
|
||||
// break;
|
||||
|
||||
//}
|
||||
}
|
||||
disTask.is_sign = 1;
|
||||
await _db.Updateable(disTask).UpdateColumns(it => it.is_sign).ExecuteCommandAsync();
|
||||
|
||||
Reference in New Issue
Block a user