From 1c043a5eca3aa3baadbc66183d44d640e01a8fa3 Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Fri, 27 Sep 2024 09:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E6=AC=A1=E6=94=B9=E4=B8=BA=E5=BC=80?= =?UTF-8?q?=E5=B7=A5=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index aaf12156..fc41e357 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -2076,7 +2076,7 @@ namespace Tnb.ProductionMgr if (changeBatchFlag) { EqpEquipment equipment = await _db.Queryable().SingleAsync(x => x.id == prdMoTask.eqp_id); - batch = $"{equipment.code.Substring(equipment.code.Length - 2, 2)}{DateTime.Now.ToString("yyMMdd")}"; + batch = $"{equipment.code.Substring(equipment.code.Length - 2, 2)}{prdMoTask.act_start_date.Value.ToString("yyMMdd")}"; await db.Updateable() .SetColumns(x => x.batch == batch) .SetColumns(x=>x.change_batch_count_by_day==changeCountNumByDay) @@ -2096,7 +2096,7 @@ namespace Tnb.ProductionMgr { EqpEquipment equipment = await _db.Queryable().SingleAsync(x => x.id == prdMoTask.eqp_id); ToolMolds toolMolds = await _db.Queryable().SingleAsync(x => x.id == prdMoTask.mold_id); - batch = $"{toolMolds.mold_code.Substring(toolMolds.mold_code.Length - 2, 2)}{equipment.code.Substring(equipment.code.Length - 2, 2)}{DateTime.Now.ToString("yyMMdd")}"; + batch = $"{toolMolds.mold_code.Substring(toolMolds.mold_code.Length - 2, 2)}{equipment.code.Substring(equipment.code.Length - 2, 2)}{prdMoTask.act_start_date.Value.ToString("yyMMdd")}"; await db.Updateable() .SetColumns(x => x.batch == batch) .SetColumns(x=>x.change_batch_count_by_day==changeCountNumByDay)