From b079910e5de15863c26e479ffab15cc45d706f1a Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期一, 19 五月 2025 16:25:22 +0800 Subject: [PATCH] 测试修复轮询出库、抽检流程的问题 --- Services/DebugService.cs | 38 ++++++++++++++++++++------------------ 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/Services/DebugService.cs b/Services/DebugService.cs index cbc8c2a..8537315 100644 --- a/Services/DebugService.cs +++ b/Services/DebugService.cs @@ -80,35 +80,37 @@ /// 鍒濆鏁版嵁搴撳缓绔� /// </summary> /// <returns></returns> - public static string CreateDatabase(bool cover = true) { + public static string CreateDatabase(bool cover = false) { try { var db = DbHelper.GetDbClient(); var entityTypes = new Type[] { - typeof(TN_CAR_IN), - typeof(TN_CG_Detail), - typeof(TN_Container), - typeof(TN_Loc_Container), - typeof(TN_Location), - typeof(TN_Task), - typeof(TN_Task_Action), - typeof(SysHelper.OI_SYS_MAXID), + //typeof(TN_CAR_IN), + //typeof(TN_CG_Detail), + //typeof(TN_Container), + //typeof(TN_Loc_Container), + //typeof(TN_Location), + //typeof(TN_Task), + //typeof(TN_Task_Action), + //typeof(SysHelper.OI_SYS_MAXID), - typeof(TN_Inbound_Order), + //typeof(TN_Inbound_Order), typeof(TN_Check_Detail), - typeof(TN_Check_Order), - typeof(TN_CNTR_ITEM), - typeof(TN_Outbound_Detail), - typeof(TN_Outbound_Order), + //typeof(TN_Check_Order), + //typeof(TN_CNTR_ITEM), + //typeof(TN_Outbound_Detail), + //typeof(TN_Outbound_Order), + //typeof(TN_Shift_Order), + //typeof(TN_Shift_Detail) }; using (var tran = db.Ado.UseTran()) { if (cover) { // 鍒犻櫎鎵�湁琛紙鎸変緷璧栧叧绯诲�搴忥級 - var tables = db.DbMaintenance.GetTableInfoList(); - foreach (var table in tables.OrderByDescending(t => t.Name)) { - db.DbMaintenance.DropTable(table.Name); - } + //var tables = db.DbMaintenance.GetTableInfoList(); + //foreach (var table in tables.OrderByDescending(t => t.Name)) { + // db.DbMaintenance.DropTable(table.Name); + //} // 鍒涘缓鏂拌〃 db.CodeFirst.InitTables(entityTypes); -- Gitblit v1.9.1