From 9488c6b6ca39c9481e988e397403dba2b649480f Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 6 Jul 2023 17:00:36 +0800 Subject: [PATCH] =?UTF-8?q?WmsOutStockService=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tnb.WarehouseMgr/WmsOutStockService.cs | 48 +------------------ 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs index 28b5f30a..20732d0c 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs @@ -281,32 +281,6 @@ namespace Tnb.WarehouseMgr return items; } - /// - /// 测试 - /// - /// - [HttpGet] - public async Task Testxx() - { - //var carryCodePropNames = typeof(WmsCarryCode).GetProperties().Select(p => p.Name); - //var outStockCodePropNames = typeof(WmsSetsortingCode).GetProperties().Select(p => p.Name); - //var intersects = carryCodePropNames.Intersect(outStockCodePropNames).ToList(); - //var excepts = carryCodePropNames.Except(outStockCodePropNames).ToList(); - //var excepts2 = outStockCodePropNames.Except(carryCodePropNames).ToList(); - - //bill_id,bill_line,bill_d_id,bill_d_line,code_qty - - //try - //{ - // var dddd = await _db.Queryable().Where(it => it.status == 8).ToListAsync(); - //} - //catch (Exception ex) - //{ - - // throw; - //} - //var str = ""; - } /// /// 生产出库接口 /// @@ -319,9 +293,9 @@ namespace Tnb.WarehouseMgr { await _db.Ado.BeginTranAsync(); //出库申请主表 - WmsOutstockH outstock = input.outstock; + WmsOutstockH outstock = input.outstock!; //出库申请明细表 - List outstockDs = input.outstockDs; + List outstockDs = input.outstockDs!; //如果数据不全, if (outstock.IsNull() || outstock.location_id.IsNullOrWhiteSpace() || outstockDs?.Count < 1) { @@ -709,22 +683,4 @@ namespace Tnb.WarehouseMgr } } } - - [SugarTable("test_tt")] - public class TestTT - { - [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] - public int id { get; set; } - //[SugarColumn( SqlParameterDbType = typeof(CommonPropertyConvert))] - public int status { get; set; } - } - - public enum EnumTestType - { - Normal = 1, - Error = 2, - Warn = 4, - Info = 8, - Faild = 16, - } }