From 7e2dd76bf3235cdd84dfe056a1414fd79323bd4f Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 12 Jun 2024 14:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=B9=B3=E5=8F=B0=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E6=8D=A2=E7=94=B5=E8=AE=A2=E5=8D=95=20=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/DbModel/Station/SwapOrderReportCloud.cs | 3 +++ Service/Mgr/SwapOrderMgr.cs | 1 + WebStarter/db/lxw0607.sql | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Entity/DbModel/Station/SwapOrderReportCloud.cs b/Entity/DbModel/Station/SwapOrderReportCloud.cs index 0c3993f..855ff17 100644 --- a/Entity/DbModel/Station/SwapOrderReportCloud.cs +++ b/Entity/DbModel/Station/SwapOrderReportCloud.cs @@ -238,6 +238,9 @@ namespace Entity.DbModel.Station /// [SugarColumn(ColumnName="swap_order_id")] public int SwapOrderId {get;set;} + + [SugarColumn(ColumnName="upload_time")] + public DateTime? UploadTime { get; set; } } } diff --git a/Service/Mgr/SwapOrderMgr.cs b/Service/Mgr/SwapOrderMgr.cs index 3d2a4bc..969220d 100644 --- a/Service/Mgr/SwapOrderMgr.cs +++ b/Service/Mgr/SwapOrderMgr.cs @@ -73,6 +73,7 @@ public class SwapOrderMgr updateDbOrder.Add(swapOrder); swapOrderReportClouds.TryGetValue(swapOrder.Id, out SwapOrderReportCloud value); value.CloudReportStatus = 1; + value.UploadTime=DateTime.Now; updateDbCloudReport.Add(value); } } diff --git a/WebStarter/db/lxw0607.sql b/WebStarter/db/lxw0607.sql index 6ce8b2c..be36973 100644 --- a/WebStarter/db/lxw0607.sql +++ b/WebStarter/db/lxw0607.sql @@ -40,3 +40,5 @@ CREATE TABLE `emeter_energy_change` ( `upload_flag` int DEFAULT NULL COMMENT '0未上传1上传', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='电表小时'; +-- 添加换电类型 +ALTER TABLE swap_order_report_cloud ADD `upload_time` datetime DEFAULT NULL COMMENT "上报时间" ; \ No newline at end of file