执行代码清理,修复warning

This commit is contained in:
2023-11-06 19:59:12 +08:00
parent c6b8dfc861
commit 1dbb17f103
118 changed files with 5046 additions and 4111 deletions

View File

@@ -57,7 +57,7 @@ namespace Tnb.WarehouseMgr
}
if (!materialCode.IsNullOrEmpty() && seq > 0)
{
var item = await _repository.GetFirstAsync(it => it.material_code == materialCode && it.seq == seq);
WmsCollocationSchemeH item = await _repository.GetFirstAsync(it => it.material_code == materialCode && it.seq == seq);
if (item != null)
{
throw new AppFriendlyException($"物料+顺序【{materialCode}{seq}】,在数据库中已存在", 500);
@@ -83,7 +83,11 @@ namespace Tnb.WarehouseMgr
//[NonUnify]
public async Task<dynamic?> MESCollocationSchemeQuery(MESCollocationSchemeQueryInput input)
{
if (input.IsNull()) throw new ArgumentNullException("input");
if (input.IsNull())
{
throw new ArgumentNullException("input");
}
SqlSugarPagedList<CollocationSchemeOutput> pageData = new();
try
{