This commit is contained in:
2024-09-10 17:55:24 +08:00
parent ea9d330724
commit 95958a96ed
3 changed files with 12 additions and 1 deletions

View File

@@ -9,6 +9,15 @@
public string code { get; set; } public string code { get; set; }
public string name { get; set; } public string name { get; set; }
public string material_group { get; set; } public string material_group { get; set; }
/// <summary>
/// 物料规格
/// </summary>
public string? material_specification { get; set; }
/// <summary>
/// 物料型号
/// </summary>
public string? material_standard { get; set; }
public int real_cavity_qty { get; set; } public int real_cavity_qty { get; set; }
} }
/// <summary> /// <summary>

View File

@@ -43,6 +43,8 @@ namespace Tnb.EquipMgr
code = a.code, code = a.code,
name = a.name, name = a.name,
material_group = b.material_group, material_group = b.material_group,
material_specification = a.material_specification,
material_standard = a.material_standard,
real_cavity_qty = b.real_cavity_qty.HasValue ? b.real_cavity_qty.Value : 0 real_cavity_qty = b.real_cavity_qty.HasValue ? b.real_cavity_qty.Value : 0
}).ToListAsync(); }).ToListAsync();
return list; return list;

View File

@@ -350,7 +350,7 @@ namespace Tnb.QcMgr
await db.Ado.BeginTranAsync(); await db.Ado.BeginTranAsync();
QcCheckExecH.qty = int.Parse(CheckTaskInput.checknum) - rqty; QcCheckExecH.qty = int.Parse(CheckTaskInput.checknum) - rqty;
QcCheckExecH.rqty = rqty; QcCheckExecH.rqty = rqty;
_ = await db.Updateable(QcCheckExecH).ExecuteCommandAsync(); //_ = await db.Updateable(QcCheckExecH).ExecuteCommandAsync();
await db.Updateable<QcCheckExecH>() await db.Updateable<QcCheckExecH>()
.SetColumns(x => x.checknum == QcCheckExecH.checknum) .SetColumns(x => x.checknum == QcCheckExecH.checknum)
.SetColumns(x => x.status == QcCheckExecH.status) .SetColumns(x => x.status == QcCheckExecH.status)