From 2aa6ffae020b4dab66ac30ee4436346aa15ff3cb Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期二, 15 七月 2025 17:26:54 +0800 Subject: [PATCH] 修复绑定解绑可能导致的信息丢失问题 --- api/DebugController.cs | 33 +++++++++++++++++++++------------ 1 files changed, 21 insertions(+), 12 deletions(-) diff --git a/api/DebugController.cs b/api/DebugController.cs index 109a250..e2c950a 100644 --- a/api/DebugController.cs +++ b/api/DebugController.cs @@ -101,6 +101,27 @@ } /// <summary> + /// 鍒濆鍖栨暟鎹簱 + /// </summary> + /// <returns></returns> + [HttpPost] + [Route("CreateDatabase")] + public string CreateDatabase() { + try { + var db = new SqlHelper<object>().GetInstance(); + + var entityTypes = new Type[] { }; + + //db.CodeFirst.InitTables(entityTypes); + } + catch (Exception ex) { + LogHelper.Info($"鍙戠敓浜嗗紓甯�); + return "鍒濆鍖栨暟鎹簱閿欒" + ex.Message; + } + return "鎴愬姛"; + } + + /// <summary> /// DEBUG锛氭牴鎹换鍔″彿璁剧疆鐗╂枡閲嶉噺 /// </summary> /// <param name="model"></param> @@ -159,14 +180,6 @@ public List<GzResult> GzResultList { set; get; } } - public class LocCntrCg { - public string LocCode { get; set; } - public string LocArea { get; set; } - public string CntrCode { get; set; } - public string ItemCode { get; set; } - public string BatchNo { get; set; } - } - /// <summary> /// 妯℃嫙 AGV 浼犻�淇″彿锛岀敤浜庢洿鏀逛换鍔$姸鎬� /// </summary> @@ -183,10 +196,6 @@ /// AGV 涓嬩竴涓姸鎬� /// </summary> public int NextState { set; get; } - } - - public class CoverInfo { - public bool IsCover { set; get; } = true; } public class SetTaskWeightInfo { -- Gitblit v1.9.1