WmsOutStockService 删除测试代码
This commit is contained in:
@@ -281,32 +281,6 @@ namespace Tnb.WarehouseMgr
|
||||
return items;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测试
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[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<TestTT>().Where(it => it.status == 8).ToListAsync();
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
|
||||
// throw;
|
||||
//}
|
||||
//var str = "";
|
||||
}
|
||||
/// <summary>
|
||||
/// 生产出库接口
|
||||
/// </summary>
|
||||
@@ -319,9 +293,9 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
await _db.Ado.BeginTranAsync();
|
||||
//出库申请主表
|
||||
WmsOutstockH outstock = input.outstock;
|
||||
WmsOutstockH outstock = input.outstock!;
|
||||
//出库申请明细表
|
||||
List<WmsOutstockD> outstockDs = input.outstockDs;
|
||||
List<WmsOutstockD> 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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user