From b079910e5de15863c26e479ffab15cc45d706f1a Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期一, 19 五月 2025 16:25:22 +0800 Subject: [PATCH] 测试修复轮询出库、抽检流程的问题 --- Controllers/DebugController.cs | 45 +++------------------------------------------ 1 files changed, 3 insertions(+), 42 deletions(-) diff --git a/Controllers/DebugController.cs b/Controllers/DebugController.cs index f40ffe1..a4b1496 100644 --- a/Controllers/DebugController.cs +++ b/Controllers/DebugController.cs @@ -29,37 +29,15 @@ { return DebugService.AgvSeriesReports(model); } - + /// <summary> /// 鍒濆鍖栨暟鎹簱 /// </summary> /// <returns></returns> [HttpPost] [Route("CreateDatabase")] - public string CreateDatabase() { - return DebugService.CreateDatabase(); - } - - [HttpPost] - [Route("InsertLocation")] - public string InsertLocation(InsertLocationInfo model) { - try { - var db = DbHelper.GetDbClient(); - - var locList = new List<TN_Location>(); - locList.Add(new TN_Location { S_AREA_CODE = model.AreaCode, S_CODE = model.Code}); - - if (db.Insertable<TN_Location>(locList).ExecuteCommand() <= 0) { - return "澶辫触"; - } - - } - catch (Exception ex) { - LogHelper.Info($"鍙戠敓浜嗗紓甯�); - return "娣诲姞璐т綅閿欒" + ex.Message; - } - //return res ? "鎴愬姛" : "澶辫触"; - return "鎴愬姛"; + public string CreateDatabase(CoverInfo model) { + return DebugService.CreateDatabase(model.IsCover); } /// <summary> @@ -71,22 +49,5 @@ public string InsertLocCntrCg() { return DebugService.InsertLocCntrCg(); } - - } - - public class CgInfo { - public string ItemCode { get; set; } - public string CntId { get; set; } - public string LocId { get; set; } - } - - public class InsertLocationInfo { - public string Code { set; get; } - public string AreaCode { set; get; } - } - - public class UpdateTaskWeightInfo { - public string TaskID { set; get; } - public float Weight { set; get; } } } -- Gitblit v1.9.1