生产提报日志优化

This commit is contained in:
2024-06-29 16:16:55 +08:00
parent d05b6a596c
commit 4fb28a1fe3

View File

@@ -1609,6 +1609,7 @@ namespace Tnb.ProductionMgr
[HttpPost]
public async Task<dynamic> PrdReport(PrdReportCrInput input)
{
Log.Information($"生产提报参数:{JsonConvert.SerializeObject(input)}");
ISqlSugarClient db = _repository.AsSugarClient();
PrdMoTask? prdMoTask = await db.Queryable<PrdMoTask>().SingleAsync(x => x.id == input.mo_task_id);
EqpEquipment equip = await db.Queryable<EqpEquipment>().SingleAsync(x => x.id == prdMoTask.eqp_id);
@@ -1691,6 +1692,7 @@ namespace Tnb.ProductionMgr
report.reported_qty = input.reported_qty;
report.weight = input.weight;
report.material_box_code = input.material_box_code;
Log.Information($"任务单数据:{JsonConvert.SerializeObject(prdMoTask)}");
if (prdMoTask.schedule_type == 2)
{
// if (dic.TryGetValue(prdMoTask.workline_id, out string value))