From 452b9b63ada7ef220952412613552d36ed477adc Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期一, 19 五月 2025 17:30:29 +0800 Subject: [PATCH] 测试,修复部分数据表问题 --- Services/DebugService.cs | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Services/DebugService.cs b/Services/DebugService.cs index 4374a10..4684196 100644 --- a/Services/DebugService.cs +++ b/Services/DebugService.cs @@ -189,8 +189,7 @@ if (locCntrRel == null) { var newLocCntrRel = new TN_Loc_Container { S_LOC_CODE = locCntrCg.LocCode, - S_CNTR_CODE = locCntrCg.CntrCode, - S_CNTR_TYPE = locCntrCg.CntrType ?? "" + S_CNTR_CODE = locCntrCg.CntrCode }; loc.N_CURRENT_NUM = 1; @@ -233,5 +232,23 @@ return $"Error reading CSV file: {ex.Message}"; } } + + public static string SetTaskWeight(SetTaskWeightInfo model) { + var db = DbHelper.GetDbClient(); + + try { + if (db.Updateable<TN_Task>().SetColumns(it => it.F_WEIGHT == model.Weight).Where(it => it.S_CODE == model.TaskNo) + .ExecuteCommand() <= 0 ) { + return "淇敼澶辫触"; + } + return "淇敼鎴愬姛"; + + } + catch (Exception ex) { + + return ex.Message; + } + + } } } -- Gitblit v1.9.1