删除为引用的函数及变量成员

This commit is contained in:
alex
2023-07-03 16:52:34 +08:00
parent 01e337cac8
commit b68970b5b1
3 changed files with 29 additions and 33 deletions

View File

@@ -17,6 +17,7 @@ using JNPF.VisualDev.Interfaces;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using SqlSugar.DbConvert;
using Tnb.BasicData.Entities;
using Tnb.WarehouseMgr.Entities;
using Tnb.WarehouseMgr.Entities.Attributes;
@@ -283,13 +284,23 @@ namespace Tnb.WarehouseMgr
[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();
//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 = "";
}
@@ -482,11 +493,21 @@ namespace Tnb.WarehouseMgr
}
}
[SugarTable("test_tt")]
public class TestTT
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int id { get; set; }
[SugarColumn()]
//[SugarColumn( SqlParameterDbType = typeof(CommonPropertyConvert))]
public int status { get; set; }
}
public enum EnumTestType
{
Normal = 1,
Error = 2,
Warn = 4,
Info = 8,
Faild = 16,
}
}